{% load i18n creme_widgets %}{% load has_perm_to from creme_core_tags %}{% has_perm_to link object as link_perm %} {% if button.is_allowed and link_perm %} {% widget_icon name='opportunity' size='instance-button' label=_('Opportunity') %} {{button.verbose_name}} {% else %} {% widget_icon name='opportunity' size='instance-button' label=_('Opportunity') %} {{button.verbose_name}} {% endif %} {% comment %} {% load i18n creme_widgets %}{% load has_perm_to from creme_core_tags %}{% has_perm_to link object as link_perm %} {% if has_perm and link_perm %} {% widget_icon name='opportunity' size='instance-button' label=_('Opportunity') %} {% translate 'Create a linked opportunity' %} {% else %} {% widget_icon name='opportunity' size='instance-button' label=_('Opportunity') %} {% translate 'Create a linked opportunity' %} {% endif %} {% endcomment %}