You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
3.2 KiB

  1. <div id="update-name-modal" class="modal">
  2. <div class="modal-dialog">
  3. <form
  4. id="update-name-form"
  5. {% if check %}action="{% url 'hc-update-name' check.code %}"{% endif %}
  6. class="form-horizontal"
  7. method="post">
  8. {% csrf_token %}
  9. <div class="modal-content">
  10. <div class="modal-header">
  11. <button type="button" class="close" data-dismiss="modal">&times;</button>
  12. <h4 class="update-timeout-title">Name and Tags</h4>
  13. </div>
  14. <div class="modal-body">
  15. <div class="form-group">
  16. <label for="update-name-input" class="col-sm-2 control-label">
  17. Name
  18. </label>
  19. <div class="col-sm-10">
  20. <input
  21. id="update-name-input"
  22. name="name"
  23. type="text"
  24. value="{{ check.name }}"
  25. placeholder="unnamed"
  26. class="input-name form-control" />
  27. <span class="help-block">
  28. Give this check a human-friendly name,
  29. so you can easily recognize it later.
  30. </span>
  31. </div>
  32. </div>
  33. <div class="form-group">
  34. <label for="update-tags-input" class="col-sm-2 control-label">
  35. Tags
  36. </label>
  37. <div class="col-sm-10">
  38. <input
  39. id="update-tags-input"
  40. name="tags"
  41. type="text"
  42. value="{{ check.tags }}"
  43. placeholder="production www"
  44. class="form-control" />
  45. <span class="help-block">
  46. Use tags for easy filtering and for status badges.
  47. Separate multiple tags with spaces.
  48. </span>
  49. </div>
  50. </div>
  51. <div class="form-group">
  52. <label for="update-desc-input" class="col-sm-2 control-label">
  53. Description
  54. </label>
  55. <div class="col-sm-10">
  56. <textarea
  57. id="update-desc-input"
  58. class="form-control"
  59. rows="5"
  60. name="desc">{{ check.desc }}</textarea>
  61. </div>
  62. </div>
  63. </div>
  64. <div class="modal-footer">
  65. <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
  66. <button type="submit" class="btn btn-primary">Save</button>
  67. </div>
  68. </div>
  69. </form>
  70. </div>
  71. </div>