parc_info_api_user_statut.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {% load crispy_forms_tags %}
  2. <div class="modal-dialog modal-lg" role="document">
  3. <div class="modal-content">
  4. {% if item.PIC_L_Statut == "PREPROD" %}
  5. <div class="modal-header border-success bg-success">
  6. {% elif item.PIC_L_Statut == "EN STOCK" %}
  7. <div class="modal-header border-info bg-info">
  8. {% elif item.PIC_L_Statut == "HS" %}
  9. <div class="modal-header border-warning bg-warning">
  10. {% elif item.PIC_L_Statut == "ADEPROD" %}
  11. <div class="modal-header border-danger bg-danger">
  12. {% else%}
  13. <div class="modal-header">
  14. {% endif %}
  15. <h5 class="modal-title">Détail d'un poste client</h5>
  16. <button type="button" class="btn btn-sm btn-dark close" data-dismiss="modal" aria-label="Close">
  17. <span aria-hidden="true">&times;</span>
  18. </button>
  19. </div>
  20. <div class="modal-body">
  21. <form id="form_edit_user" action="{% url 'parc_info_user_edit_statut' item.id %}{% if get_search != "" %}?get_search={{get_search}}{% endif %}" method="post">
  22. {% csrf_token %}
  23. {{ form|crispy }}
  24. </form>
  25. </div>
  26. {% if item.PIC_L_Statut == "PREPROD" %}
  27. <div class="modal-footer border-success bg-success">
  28. {% elif item.PIC_L_Statut == "EN STOCK" %}
  29. <div class="modal-footer border-info bg-info">
  30. {% elif item.PIC_L_Statut == "HS" %}
  31. <div class="modal-footer border-warning bg-warning">
  32. {% elif item.PIC_L_Statut == "ADEPROD" %}
  33. <div class="modal-footer border-danger bg-danger">
  34. {% else%}
  35. <div class="modal-footer">
  36. {% endif %}
  37. <button type="button" class="btn btn-dark" onclick="bt_send_edit_user_statut()"><i class="far fa-check-square"></i> Valider</button>
  38. </div>
  39. </div>
  40. </div>