Add help text to new/edit actions
This commit is contained in:
@ -16,4 +16,5 @@
|
|||||||
.form-group
|
.form-group
|
||||||
= f.label(:hint)
|
= f.label(:hint)
|
||||||
= f.text_field(:hint, class: 'form-control')
|
= f.text_field(:hint, class: 'form-control')
|
||||||
|
.help-block == t('error_templates.hints.hint_templates')
|
||||||
.actions = render('shared/submit_button', f: f, object: @error_template)
|
.actions = render('shared/submit_button', f: f, object: @error_template)
|
||||||
|
@ -666,6 +666,7 @@ de:
|
|||||||
error_templates:
|
error_templates:
|
||||||
hints:
|
hints:
|
||||||
signature: "Ein regulärer Ausdruck in Ruby-Syntax und ohne führende und schließende \"/\""
|
signature: "Ein regulärer Ausdruck in Ruby-Syntax und ohne führende und schließende \"/\""
|
||||||
|
hint_templates: 'Attributnamen in {{doppelten geschweiften Klammern}} werden zur Laufzeit durch die jeweiligen Attributwerte ersetzt. Beispiel: "Der Fehler ist in Zeile {{Line}}." --(StructuredError: {Line: 4})--> "Der Fehler ist in Zeile 4."'
|
||||||
attributes: "Attribute"
|
attributes: "Attribute"
|
||||||
add_attribute: "Attribut hinzufügen"
|
add_attribute: "Attribut hinzufügen"
|
||||||
comments:
|
comments:
|
||||||
|
@ -666,6 +666,7 @@ en:
|
|||||||
error_templates:
|
error_templates:
|
||||||
hints:
|
hints:
|
||||||
signature: "A regular expression in Ruby syntax without leading and trailing \"/\""
|
signature: "A regular expression in Ruby syntax without leading and trailing \"/\""
|
||||||
|
hint_templates: 'Attribute names in {{double curly braces}} are replaced by the corresponding attribute value at runtime, e.g. "The error occurs in line {{Line}}." --(StructuredError: {Line: 4})--> "The error occurs in line 4."'
|
||||||
attributes: "Attributes"
|
attributes: "Attributes"
|
||||||
add_attribute: "Add attribute"
|
add_attribute: "Add attribute"
|
||||||
comments:
|
comments:
|
||||||
|
Reference in New Issue
Block a user