templates/shared/ui/button/button.html.twig line 1

Open in your IDE?
  1. {% if outlined is defined and outlined == true %}
  2.     <button data-invalid="false"
  3.             id="{% if buttonId is defined and buttonId != '' %}{{ buttonId }}{% else %}button{% endif %}"
  4.             type="submit"
  5.             {% if number is defined %} data-number="{{ number }}"{% endif %}
  6.             {% if isKyivstar is defined and isKyivstar == true %}
  7.                 data-is-kyivstar="true"
  8.             {% else %}
  9.                 data-is-kyivstar="false"
  10.             {% endif %}
  11.             {% if disableOnClick is not defined or disableOnClick == true %}onclick="this.form.submit(); this.disabled=true;"{% endif %}
  12.             class="js--handleClick drop-shadow-[0_7px_5px_rgba(0,0,0,0.25)] hover:drop-shadow-none w-full text-center py-[6px] block h-[52px] bg-transparent border rounded-[10px] focus:ring-4 focus:ring-blue-300 font-semibold text-[16px] focus:outline-none disabled:drop-shadow-none disabled:!border-[#E2E2E9] disabled:!text-[#909299]"
  13.             style="{{ inlineStyles(app.request.get('companyInner'), constant('App\\Constants\\SettingConstants::NOT_FILLED_BUTTON_STYLES')) }}"
  14.     >
  15.         {% if iconChek is defined %}
  16.             <div class="flex flex-row items-center justify-center">
  17.                 <svg class="w-[16px] min-w-[16px] h-[20px] mr-[20px]" style="fill: {{ companyStyles.linkTextColor }}">
  18.                     <use href="{{ asset('build/sprite.svg#check') }}"></use>
  19.                 </svg>
  20.                 {% if text is defined %}{{ text }}{% endif %}
  21.             </div>
  22.         {% else %}
  23.             {% if text is defined %}{{ text }}{% endif %}
  24.         {% endif %}
  25.     </button>
  26. {% else %}
  27.     <button
  28.             data-invalid="false"
  29.             {% if number is defined %} data-number="{{ number }}"{% endif %}
  30.             {% if isKyivstar is defined and isKyivstar == true %}
  31.                 data-is-kyivstar="true"
  32.             {% else %}
  33.                 data-is-kyivstar="false"
  34.             {% endif %}
  35.             onclick="this.form.submit(); this.disabled=true;"
  36.             id="{% if buttonId is defined and buttonId != '' %}{{ buttonId }}{% else %}button{% endif %}"
  37.             type="{% if isSubmit is defined %}submit{% else %}button{% endif %}"
  38.             style="{{ inlineStyles(app.request.get('companyInner'), constant('App\\Constants\\SettingConstants::FILLED_BUTTON_STYLES')) }}"
  39.             {% if isDisabled is defined and isDisabled == true %}disabled{% endif %}
  40.             class="js--handleClick {% if height is defined %}min-h-[{{ height }}px]{% else %}min-h-[48px]{% endif %}  drop-shadow-[0_7px_5px_rgba(0,0,0,0.25)] hover:drop-shadow-none transition ease-in-out duration-150 hover:!opacity-90 disabled:drop-shadow-none disabled:!bg-[#E2E2E9] disabled:!text-[#909299] w-full hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 font-semibold text-[16px] px-5 py-2.5 focus:outline-none"
  41.     >
  42.         {% if text is defined %}{{ text }}{% endif %}
  43.     </button>
  44. {% endif %}