templates/tenants/tenant1/parts/premium-form/frequencyBlock.html.twig line 1

Open in your IDE?
  1. {% with { showOneTime: showOneTime ?? true } %}
  2.     <div class="form-aside__tabs-nav tabs-nav frequencyContainer">
  3.         <!-- Для активной кнопки задать класс active -->
  4.         <button class="tabs-nav__button{% if app.request.get('frequency') != 'oneTime' %} active{% endif %}" type="button" data-value="month">Monthly</button>
  5.         <button class="tabs-nav__button" type="button" data-value="year">Yearly</button>
  6.         <button class="tabs-nav__button{% if app.request.get('frequency') == 'oneTime' %} active{% endif %}" type="button" data-value="oneTime" {% if not showOneTime %}disabled style="background-color: white; opacity: 0.25" {% endif %}>One time</button>
  7.     </div>
  8. {% endwith %}