List error template attributes
This commit is contained in:
@ -7,4 +7,25 @@ h1
|
|||||||
- [:signature, :description, :hint].each do |attribute|
|
- [:signature, :description, :hint].each do |attribute|
|
||||||
= row(label: "error_template.#{attribute}", value: @error_template.send(attribute))
|
= row(label: "error_template.#{attribute}", value: @error_template.send(attribute))
|
||||||
|
|
||||||
//todo: list attributes
|
h3
|
||||||
|
= t 'error_templates.attributes'
|
||||||
|
|
||||||
|
.table-responsive
|
||||||
|
table.sortable.table
|
||||||
|
thead
|
||||||
|
tr
|
||||||
|
th
|
||||||
|
th = t('activerecord.attributes.error_template_attributes.key')
|
||||||
|
th = t('activerecord.attributes.error_template_attributes.description')
|
||||||
|
th = t('activerecord.attributes.error_template_attributes.regex')
|
||||||
|
tbody
|
||||||
|
- @error_template.error_template_attributes.order(:important).each do |attribute|
|
||||||
|
tr
|
||||||
|
td
|
||||||
|
- if attribute.important
|
||||||
|
span class="fa fa-star" aria-hidden="true"
|
||||||
|
- else
|
||||||
|
span class="fa fa-star-o" aria-hidden="true"
|
||||||
|
td = attribute.key
|
||||||
|
td = attribute.description
|
||||||
|
td = attribute.regex
|
||||||
|
@ -114,6 +114,11 @@ de:
|
|||||||
signature: Regulärer Ausdruck
|
signature: Regulärer Ausdruck
|
||||||
description: Beschreibung
|
description: Beschreibung
|
||||||
hint: Hinweis
|
hint: Hinweis
|
||||||
|
error_template_attributes:
|
||||||
|
important: "Wichtig"
|
||||||
|
key: "Name"
|
||||||
|
description: "Beschreibung"
|
||||||
|
regex: "Regulärer Ausdruck"
|
||||||
models:
|
models:
|
||||||
code_harbor_link:
|
code_harbor_link:
|
||||||
one: CodeHarbor-Link
|
one: CodeHarbor-Link
|
||||||
@ -588,3 +593,4 @@ 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 \"/\""
|
||||||
|
attributes: "Attribute"
|
||||||
|
@ -135,6 +135,11 @@ en:
|
|||||||
signature: Signature Regular Expression
|
signature: Signature Regular Expression
|
||||||
description: Description
|
description: Description
|
||||||
hint: Hint
|
hint: Hint
|
||||||
|
error_template_attributes:
|
||||||
|
important: "Important"
|
||||||
|
key: "Identifier"
|
||||||
|
description: "Description"
|
||||||
|
regex: "Regular Expression"
|
||||||
models:
|
models:
|
||||||
code_harbor_link:
|
code_harbor_link:
|
||||||
one: CodeHarbor Link
|
one: CodeHarbor Link
|
||||||
@ -609,3 +614,4 @@ 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 \"/\""
|
||||||
|
attributes: "Attributes"
|
||||||
|
Reference in New Issue
Block a user