forked from fixin.me/fixin.me
Don't wrap form labels
This commit is contained in:
parent
c1643030a2
commit
13c1d5684b
@ -29,7 +29,7 @@ module ApplicationHelper
|
|||||||
|
|
||||||
def labelled_row_for(method, options)
|
def labelled_row_for(method, options)
|
||||||
@template.content_tag :tr do
|
@template.content_tag :tr do
|
||||||
@template.content_tag(:td, label_for(method, options)) +
|
@template.content_tag(:td, label_for(method, options), class: "unwrappable") +
|
||||||
@template.content_tag(:td, options.delete(:readonly) ? @object.public_send(method) : yield,
|
@template.content_tag(:td, options.delete(:readonly) ? @object.public_send(method) : yield,
|
||||||
@object&.errors[method].present? ?
|
@object&.errors[method].present? ?
|
||||||
{class: "error", data: {content: @object&.errors.delete(method).join(" and ")}} :
|
{class: "error", data: {content: @object&.errors.delete(method).join(" and ")}} :
|
||||||
|
Loading…
x
Reference in New Issue
Block a user