You are here

insert-button-widget.html.twig in Insert 8

Same filename and directory in other branches
  1. 8.2 templates/insert-button-widget.html.twig

Template file for the insert button.

File

templates/insert-button-widget.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Template file for the insert button.
  5. */
  6. #}
  7. {% if insert_rotate %}
  8. <div class="insert-rotate">
  9. <label>{{ 'Rotate'|trans }}</label>
  10. <span class="insert-rotate-controls">
  11. <span class="insert-rotate-controls-left"><a href="{{ url('insert.rotate', {'fid': fid, 'degree': 270, 'nid': nid, 'absolute': insert_absolute}) }}">↺</a></span>
  12. <span class="insert-rotate-controls-right"><a href="{{ url('insert.rotate', {'fid': fid, 'degree': 90, 'nid': nid, 'absolute': insert_absolute}) }}">↻</a></span>
  13. </span>
  14. </div>
  15. {% endif %}
  16. {% if insert_styles|length > 1 %}
  17. <div class="insert-style-select">
  18. <label for="insert-{{ fid }}">{{ 'Style'|trans }}</label>
  19. <select id="insert-{{ fid }}" class="insert-style">
  20. {% for value, style in insert_styles %}
  21. <option value="{{ value }}"{% if value == default_style %}{{ 'selected="selected"' }}{% endif %}>{{ style }}</option>
  22. {% endfor %}
  23. </select>
  24. </div>
  25. {% else %}
  26. <input type="hidden" class="insert-style" value="{{ default_style }}" />
  27. {% endif %}
  28. <span class="insert-button-wrapper"><span class="insert-button-overlay"></span><input type="submit" class="button js-form-submit form-submit insert-button" onclick="return false;" value="{{ 'Insert'|trans }}" /></span>