<div class="np-training-session-cta">
  <div class="np-training-session-cta-buttons">
    <form
      action="{{ training_session.cta.url }}"
      method="post"
    >
      {% form_authenticity_token %}

      {% if training_session.show_calendar_links? %}
        {% include "training_session_calendars" %}
      {% endif %}

      {% if training_session.cta.undo? %}
        <input type="hidden" name="_method" value="delete" />
      {% endif %}

      {% if training_session.cta.label %}
        <button
          type="submit"
          class="
            np-top-button
            np-button
            np-button-big

            {% if training_session.show_calendar_links? %}
              np-button-secondary
            {% endif %}
          "
        >
          {{ training_session.cta.label }}
        </button>
      {% endif %}
    </form>
  </div>
</div>
