Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

12345678910111213141516171819202122
  1. {# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #}
  2. {# @var action \EasyCorp\Bundle\EasyAdminBundle\Dto\ActionDto #}
  3. {# @var entity \EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto #}
  4. {% if 'a' == action.htmlElement %}
  5. {% for _locale in app_locales %}
  6. <a class="{{ isIncludedInDropdown|default(false) ? 'dropdown-item' }} {{ action.cssClass }}"
  7. href="{{ action.linkUrl }}&_locale={{ _locale }}"
  8. {% for name, value in action.htmlAttributes %}{{ name }}="{{ value|e('html_attr') }}" {% endfor %}>
  9. {%- if action.icon %}<i class="action-icon {{ action.icon }}"></i> {% endif -%}
  10. {%- if action.label is not empty -%}{{ action.label }} {%- endif -%}
  11. {{ _locale }}
  12. </a>
  13. {% endfor %}
  14. {% elseif 'button' == action.htmlElement %}
  15. <button class="{{ action.cssClass }}" {% for name, value in action.htmlAttributes %}{{ name }}="{{ value|e('html_attr') }}" {% endfor %}>
  16. <span class="btn-label">
  17. {%- if action.icon %}<i class="action-icon {{ action.icon }}"></i> {% endif -%}
  18. {%- if action.label is not empty -%}{{ action.label }}{%- endif -%}
  19. </span>
  20. </button>
  21. {% endif %}