{{ attach_library('social_event_an_enroll/event_an_enroll') }}

<div{{ attributes.addClass('event_an_enroll','row') }}>
  <div class="col-md">
    <h5>{% trans %}Enroll with account{% endtrans %}</h5>

    <p>
      {% if links.register is defined %}
        <a class="btn-lg btn btn-primary" href="{{ links.register.uri }}" title="{% trans %}Create an account{% endtrans %}">{% trans %}Create an account{% endtrans %}</a>
      {% endif %}
      <a class="btn-lg btn btn-default" href="{{ links.login.uri }}" title="{% trans %}Login{% endtrans %}">{% trans %}Log in{% endtrans %}</a>
    </p>
  </div>
  <div class="col-md">
    <h5>{% trans %}Enroll without account{% endtrans %}</h5>
    <p><a class="btn-lg btn btn-accent use-ajax"
          href="{{ links.guest.uri }}"
          data-dialog-options="{&quot;width&quot;:400}"
          data-dialog-type="modal"
          title="{% trans %}Enroll as guest{% endtrans %}">{% trans %}Enroll as guest{% endtrans %}</a></p>
  </div>
</div>
