Martin Renvoize
6d62f77e95
This patch restores the customisability of description for system restriction types. Translatability is not affected as you can translate the defaults via template translation and assuming the end users leave their descriptions at the default, the translations will be picked. Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
10 lines
400 B
HTML
10 lines
400 B
HTML
[%- BLOCK restriction_type_description -%]
|
|
[% ddisplay = restriction.display_text %]
|
|
[% SWITCH ddisplay %]
|
|
[% CASE 'Manual' %]<span>Manual</span>
|
|
[% CASE 'Overdues' %]<span>Overdues</span>
|
|
[% CASE 'Suspension' %]<span>Suspension</span>
|
|
[% CASE 'Discharge' %]<span>Discharge</span>
|
|
[% CASE %]<span>[% ddisplay | html %]</span>
|
|
[% END %]
|
|
[%- END -%]
|