|
|
|
|
|
|
|
|
{% if is_dropdown %} |
|
|
|
|
|
<a class="btn dropdown-item {{ action.css_class|default('btn-default') }}" |
|
|
|
|
|
href="{{ action_href }}{{ action.hub is defined ? '&hub='~action.hub : '' }}" target="{{ action.target }}"> |
|
|
|
|
|
{%- if action.icon %}<i class="fa fa-fw fa-{{ action.icon }}"></i> {% endif -%} |
|
|
|
|
|
{{ action.label|trans(arguments = trans_parameters|merge({ '%entity_id%': item_id }), domain = translation_domain) }} |
|
|
|
|
|
</a> |
|
|
|
|
|
{% else %} |
|
|
|
|
|
|
|
|
{% if is_dropdown %} |
|
|
|
|
|
<a class="btn dropdown-item {{ action.css_class|default('btn-default') }}" |
|
|
|
|
|
href="{{ action_href }}{{ action.hub is defined ? '&hub='~action.hub : '' }}" target="{{ action.target }}"> |
|
|
|
|
|
{%- if action.icon %}<i class="fa fa-fw fa-{{ action.icon }}"></i> {% endif -%} |
|
|
|
|
|
{{ action.label|trans(arguments = trans_parameters|merge({ '%entity_id%': item_id }), domain = translation_domain) }} |
|
|
|
|
|
</a> |
|
|
|
|
|
{% else %} |
|
|
|
|
|
{% if action.hub is defined %} |
|
|
{% set trad = action.label~action.hub|uc_first %} |
|
|
{% set trad = action.label~action.hub|uc_first %} |
|
|
<a class="btn {{ is_dropdown|default(false) ? 'dropdown-item' }} {{ action.css_class|default('btn-default') }}" |
|
|
|
|
|
data-toggle="tooltip" |
|
|
|
|
|
title="{{ action.label|trans(arguments = trans_parameters|merge({ '%entity_id%': item_id }), domain = translation_domain) }}" |
|
|
|
|
|
href="{{ action_href }}{{ action.hub is defined ? '&hub='~action.hub : '' }}" target="{{ action.target }}"> |
|
|
|
|
|
{%- if action.icon %}<i class="fa fa-fw fa-{{ action.icon }}"></i> {% endif -%} |
|
|
|
|
|
</a> |
|
|
|
|
|
|
|
|
{% else %} |
|
|
|
|
|
{% set trad = action.label %} |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
|
|
|
<a class="btn {{ is_dropdown|default(false) ? 'dropdown-item' }} {{ action.css_class|default('btn-default') }}" |
|
|
|
|
|
data-toggle="tooltip" |
|
|
|
|
|
title="{{ action.label|trans(arguments = trans_parameters|merge({ '%entity_id%': item_id }), domain = translation_domain) }}" |
|
|
|
|
|
href="{{ action_href }}{{ action.hub is defined ? '&hub='~action.hub : '' }}" target="{{ action.target }}"> |
|
|
|
|
|
{%- if action.icon %}<i class="fa fa-fw fa-{{ action.icon }}"></i> {% endif -%} |
|
|
|
|
|
</a> |
|
|
|
|
|
{% endif %} |