{% load i18n creme_widgets %}{% load blockjsondata from creme_core_tags %} {% if button.is_allowed %} {% widget_icon name='invoice' size='instance-button' label=_('Invoice number') %} {{button.verbose_name}} {% blockjsondata %}{ "options": { "confirm": "{% translate 'Do you really want to generate an invoice number?' %}" } }{% endblockjsondata %} {% else %} {% widget_icon name='invoice' size='instance-button' label=_('Invoice number') %} {{button.verbose_name}} {% endif %} {% comment %} {% load i18n creme_widgets %}{% load blockjsondata from creme_core_tags %} {% widget_icon name='invoice' size='instance-button' label=_('Invoice number') %} {% translate 'Generate the number of the Invoice' %} {% blockjsondata %}{ "options": { "confirm": "{% translate 'Do you really want to generate an invoice number?' %}" } }{% endblockjsondata %} {% endcomment %}