{% load i18n %}
{% if form.errors %}
<!-- form errors  -->
<div class="oh-wrapper">
  <div class="oh-alert-container">
    {% for error in form.non_field_errors %}
    <div class="oh-alert oh-alert--animated oh-alert--danger">{{ error }}</div>
    {% endfor %}
  </div>
</div>
{% endif %}
<div class="oh-modal__dialog-header">
  <h2 class="oh-modal__dialog-title" id="createTitle">
    {% trans "Create Leave Allocation Request" %}
  </h2>
  <button class="oh-modal__close" aria-label="Close">
    <ion-icon name="close-outline"></ion-icon>
  </button>
</div>
<div class="oh-modal__dialog-body" id="createTarget">
  <form
    hx-post="{% url 'leave-allocation-request-create' %}"
    hx-target="#objectCreateModalTarget"
    hx-encoding="multipart/form-data"
  >
    {% csrf_token %} {{form.as_p}}
  </form>
</div>
