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.

61 lines
2.8 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-9">
  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-9">
  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>
  52. <div class="modal-footer">
  53. <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
  54. <button type="submit" class="btn btn-primary">Save</button>
  55. </div>
  56. </div>
  57. </form>
  58. </div>
  59. </div>