{% if coupon_button_text and nid %}
  {# coupon_button_ally_text #}
  {# Need to add attrs to altcom_ajax_button call for accessibility #}
  {# For now, we can use attrs_string and add inline attrs #}

  {% set ajax_attrs = altcom_ajax_attrs_string(
    'coupon_code', 'coupon',
    { 'nid': nid },
    0, 0, 1)
  %}
  <div id="coupon">
    <button class="btn btn-default btn-sm" {{ ajax_attrs|raw }}>{{ coupon_button_text }} <i class="d-none fas fa-circle-notch"></i></button>
  </div>
{% endif %}
