No Description

modal_case_state.html 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <div class="modal-header">
  2. <h4>Case state</h4>
  3. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
  4. aria-hidden="true">&times;</span></button>
  5. </div>
  6. <div class="modal-body">
  7. <div class="container col-md-12">
  8. <form method="post" action="" id="form_new_case_state" enctype="multipart/form-data">
  9. <div class="col-md-12 col-lg-12 col-sm-12">
  10. {{ form.hidden_tag() }}
  11. <div class="form-group">
  12. <label for="name" class="mr-4">State name
  13. </label>
  14. {{ form.state_name(class='form-control', autocomplete="off") }}
  15. </div>
  16. <div class="form-group mt-3">
  17. <label for="description" class="placeholder">State description</label>
  18. {{ form.state_description(class='form-control', autocomplete="off") }}
  19. </div>
  20. {% if not case_state.protected %}
  21. {% if case_state.state_id %}
  22. <button type="button" class="btn btn-outline-danger mt-5"
  23. onclick="delete_case_state('{{ case_state.state_id }}');">Delete</button>
  24. <button type="button" class="btn btn-outline-success ml-4 mt-5 float-right"
  25. id="submit_new_case_state">Update</button>
  26. {% else %}
  27. <button type="button" class="btn btn-outline-success ml-4 mt-5 float-right"
  28. id="submit_new_case_state">Save</button>
  29. {% endif %}
  30. {% else %}
  31. <i class="fa fa-lock mt-4 mr-2 ml-3 text-danger mb-4" aria-hidden="true"></i> This state is protected and cannot be deleted or updated.
  32. {% endif %}
  33. </div>
  34. </form>
  35. </div>
  36. </div>