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.

80 lines
3.5 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>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. maxlength="100"
  25. value="{{ check.name }}"
  26. placeholder="unnamed"
  27. class="input-name form-control" />
  28. <span class="help-block">
  29. Give this check a human-friendly name,
  30. so you can easily recognize it later.
  31. </span>
  32. </div>
  33. </div>
  34. <div class="form-group">
  35. <label for="update-tags-input" class="col-sm-2 control-label">
  36. Tags
  37. </label>
  38. <div class="col-sm-10">
  39. <input
  40. id="update-tags-input"
  41. name="tags"
  42. type="text"
  43. maxlength="500"
  44. data-all-tags="{{ all_tags }}"
  45. value="{{ check.tags }}" />
  46. <span class="help-block">
  47. Use tags for easy filtering and for status badges.
  48. Separate multiple tags with spaces.
  49. </span>
  50. </div>
  51. </div>
  52. <div class="form-group">
  53. <label for="update-desc-input" class="col-sm-2 control-label">
  54. Description
  55. </label>
  56. <div class="col-sm-10">
  57. <textarea
  58. id="update-desc-input"
  59. class="form-control"
  60. rows="5"
  61. name="desc">{{ check.desc }}</textarea>
  62. <span class="help-block">
  63. Additional notes for your own reference. Will appear
  64. in email alerts about this check going down and in
  65. Slack notifications.
  66. </span>
  67. </div>
  68. </div>
  69. </div>
  70. <div class="modal-footer">
  71. <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
  72. <button type="submit" class="btn btn-primary">Save</button>
  73. </div>
  74. </div>
  75. </form>
  76. </div>
  77. </div>