Açıklama Yok

modal_add_customer.html 3.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <div class="modal-header">
  2. <div class="col md-12">
  3. <div class="row">
  4. <div class="col">
  5. <h4 class="modal-title mt-1 mr-4">{% if customer.client_id %}Edit customer #{{ customer.client_id }}{% else %}Add customer{% endif %}</h4>
  6. <small><a class="text-muted">{% if customer.client_uuid %}#{{ customer.client_uuid }}{% endif %}</a></small>
  7. </div>
  8. {% include 'modals/modal_attributes_nav.html' %}
  9. <div class="col ">
  10. <div class="row float-right">
  11. <button type="button" class="pull-right btn bg-transparent" data-dismiss="modal" aria-label="Close"><span
  12. aria-hidden="true"><i class="fa fa-times"></i></span></button>
  13. </div>
  14. </div>
  15. </div>
  16. </div>
  17. </div>
  18. <div class="modal-body">
  19. <div role="tabpanel">
  20. <div class="tab-content">
  21. <div class="tab-pane active" id="details">
  22. <div class="container col-md-12">
  23. <form method="post" action="" id="form_new_customer" enctype="multipart/form-data">
  24. <div class="col-md-12 col-lg-12 col-sm-12">
  25. {{ form.hidden_tag() }}
  26. <div class="form-group">
  27. <label for="customer" class="mr-4">Name *</label>
  28. {{ form.customer_name(class='form-control', autocomplete="off") }}
  29. </div>
  30. <div class="form-group">
  31. <label for="description" class="mr-4">Description</label>
  32. {{ form.customer_description(class='form-control', autocomplete="off") }}
  33. </div>
  34. <div class="form-group">
  35. <label for="sla" class="mr-4">SLAs</label>
  36. {{ form.customer_sla(class='form-control', autocomplete="off") }}
  37. </div>
  38. </div>
  39. </form>
  40. </div>
  41. </div>
  42. {% include 'modals/modal_attributes_tabs.html' %}
  43. </div>
  44. {% if customer.client_id %}
  45. <button
  46. type="button"
  47. class="btn btn-outline-danger mt-5"
  48. onclick="delete_customer('{{ customer.client_id }}');"
  49. >
  50. Delete
  51. </button>
  52. <button
  53. type="button"
  54. class="btn btn-outline-success ml-4 mt-5 float-right"
  55. id="submit_new_customer"
  56. >
  57. Update
  58. </button>
  59. {% else %}
  60. <button
  61. type="button"
  62. class="btn btn-outline-success ml-4 mt-5 float-right"
  63. id="submit_new_customer"
  64. >
  65. Save
  66. </button>
  67. {% endif %}
  68. </div>
  69. </div>