{% load static i18n%}
{% load i18n %}


{% if objective_form.non_field_errors %}
<!-- form non field errors  -->
<div class="oh-wrapper">
    <div class="oh-alert-container">
        {% for error in objective_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" >
        {% trans "Add assignees" %}
      </h2>

    <button type="button" class="oh-modal__close--custom" onclick="$('#objectDetailsModal').removeClass('oh-modal--show');">
      <ion-icon name="close-outline" role="img" aria-label="close outline"></ion-icon>
    </button>
  </div>
  <div class="oh-modal__dialog-body">
      <form
        hx-post="{%url 'add-assignees' objective.id %}"
        hx-target="#objectDetailsModalTarget"
        id="objectiveForm"
      >

      {% csrf_token %}
      {{form.as_p}}
    </form>
  </div>
