{% extends "partials/_generic_modal.html" %}

{% block modal_id %}org-invite-revoke-modal{% endblock %}
{% block modal_event_id %}org-invite-revoke-modal{% endblock %}
{% block modal_event_id_close %}org-invite-revoke-modal{% endblock %}

{% block modal_header %}{% endblock %}

{% block modal_size_class %}sm:max-w-lg{% endblock %}

{% block modal_icon_bg %}bg-red-100{% endblock %}
{% block modal_icon_color %}text-red-600{% endblock %}
{% block modal_icon %}
<svg class="h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" aria-hidden="true">
  <path stroke-linecap="round" stroke-linejoin="round" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" />
 </svg>
{% endblock %}

{% block modal_body_title %}
<h3 class="text-lg leading-6 font-medium text-gray-900" id="modal-title">
  Revoke Invitation
  </h3>
{% endblock %}

{% block modal_content_margin %}sm:ml-4{% endblock %}

{% block modal_body %}
<div class="mt-2">
  <p class="text-sm text-gray-600">
    Are you sure you want to revoke this organization invitation? The invitee will no longer be able to accept it.
  </p>
</div>
{% endblock %}

{% block modal_footer_bg %}bg-gray-50{% endblock %}

{% block modal_footer %}
<form :action="actionUrl" method="post" class="inline-flex">
  {% csrf_token %}
  <button type="submit"
    class="w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-red-600 text-base font-medium text-white hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm">
    Confirm Revoke
  </button>
</form>
<button type="button"
  class="mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"
  @click="$dispatch('close-modal', { id: 'org-invite-revoke-modal' })">
  Cancel
</button>
{% endblock %}
