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.

78 lines
3.5 KiB

6 years ago
  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. 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. value="{{ check.tags }}"
  45. placeholder="production www"
  46. class="form-control" />
  47. <span class="help-block">
  48. Use tags for easy filtering and for status badges.
  49. Separate multiple tags with spaces.
  50. </span>
  51. </div>
  52. </div>
  53. <div class="form-group">
  54. <label for="update-desc-input" class="col-sm-2 control-label">
  55. Description
  56. </label>
  57. <div class="col-sm-10">
  58. <textarea
  59. id="update-desc-input"
  60. class="form-control"
  61. rows="5"
  62. placeholder="Additional notes for your own reference.
  63. Will appear in email alerts about this check going DOWN and in Slack notifications."
  64. name="desc">{{ check.desc }}</textarea>
  65. </div>
  66. </div>
  67. </div>
  68. <div class="modal-footer">
  69. <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
  70. <button type="submit" class="btn btn-primary">Save</button>
  71. </div>
  72. </div>
  73. </form>
  74. </div>
  75. </div>