mvc/views - minor regression in c8adc29212, allownew needs a default

This commit is contained in:
Ad Schellevis 2024-03-28 11:29:32 +01:00
parent 489b5d6c2e
commit 9b981b7e03

View File

@ -92,7 +92,7 @@
<a href="#" class="text-danger" id="clear-options_{{ id }}"><i class="fa fa-times-circle"></i> <small>{{ lang._('Clear All') }}</small></a>
{% if "tokenize" in this_style %}&nbsp;&nbsp;<a href="#" class="text-danger" id="copy-options_{{ id }}"><i class="fa fa-copy"></i> <small>{{ lang._('Copy') }}</small></a>
&nbsp;&nbsp;<a href="#" class="text-danger" id="paste-options_{{ id }}" style="display:none"><i class="fa fa-paste"></i> <small>{{ lang._('Paste') }}</small></a>
{% if allownew %}
{% if allownew|default("false") %}
&nbsp;&nbsp;<a href="#" class="text-danger" id="to-text_{{ id }}" ><i class="fa fa-file-text-o"></i> <small>{{ lang._('Text') }}</small> </a>
{% endif %}
{% endif %}