12345678910111213141516171819202122232425262728293031323334353637383940 |
- {% load crispy_forms_tags %}
- <div class="modal-dialog modal-lg" role="document">
- <div class="modal-content">
- {% if item.PIC_L_Statut == "PREPROD" %}
- <div class="modal-header border-success bg-success">
- {% elif item.PIC_L_Statut == "EN STOCK" %}
- <div class="modal-header border-info bg-info">
- {% elif item.PIC_L_Statut == "HS" %}
- <div class="modal-header border-warning bg-warning">
- {% elif item.PIC_L_Statut == "ADEPROD" %}
- <div class="modal-header border-danger bg-danger">
- {% else%}
- <div class="modal-header">
- {% endif %}
- <h5 class="modal-title">Détail d'un poste client</h5>
- <button type="button" class="btn btn-sm btn-dark close" data-dismiss="modal" aria-label="Close">
- <span aria-hidden="true">×</span>
- </button>
- </div>
- <div class="modal-body">
- <form id="form_edit_user" action="{% url 'parc_info_user_edit_info' item.id %}{% if get_search != "" %}?get_search={{get_search}}{% endif %}" method="post">
- {% csrf_token %}
- {{ form|crispy }}
- </form>
- </div>
- {% if item.PIC_L_Statut == "PREPROD" %}
- <div class="modal-footer border-success bg-success">
- {% elif item.PIC_L_Statut == "EN STOCK" %}
- <div class="modal-footer border-info bg-info">
- {% elif item.PIC_L_Statut == "HS" %}
- <div class="modal-footer border-warning bg-warning">
- {% elif item.PIC_L_Statut == "ADEPROD" %}
- <div class="modal-footer border-danger bg-danger">
- {% else%}
- <div class="modal-footer">
- {% endif %}
- <button type="button" class="btn btn-dark" onclick="bt_send_edit_user_info()"><i class="far fa-check-square"></i> Valider</button>
- </div>
- </div>
- </div>
|