dxpr_theme-5.0.1/templates/input--submit.html.twig

templates/input--submit.html.twig
{#
/**
 * @file
 * Theme override for an 'input' #type form element.
 *
 * Available variables:
 * - attributes: A list of HTML attributes for the input element.
 * - children: Optional additional rendered elements.
 *
 * @see template_preprocess_input()
 */
#}

{%
  set classes = [
  'btn',
  icon  ? 'btn-link' : 'btn-primary',
  type == 'submit' ? 'js-form-submit',
]
%}
{% block input %}
  {% if icon %}
    <span class="input-group-btn">
      <button{{ attributes.addClass(classes, 'icon-only') }}>
      <span class="sr-only">{{ label }}</span>
        <svg xmlns="http://www.w3.org/2000/svg" width="16" height="20" fill="currentColor" class="bi bi-search" viewBox="-1 1 18 18">
          <path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z" stroke="currentColor" stroke-width="1.5"/>
        </svg>
      </button>
    </span>
  {% else %}
    {% if attributes.hasClass('button') and not attributes.hasClass('field-add-more-submit') %}
      <input{{ attributes.addClass('btn btn-primary') }} />
    {% else %}
      <input{{ attributes.addClass('form-control') }} />
    {% endif %}
    {{ children }}
  {% endif %}
  {{ children }}
{% endblock %}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc