add_time_kind.html 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. {% extends "dbadmin_base.html" %}
  2. {% import "bootstrap/wtf.html" as wtf %}
  3. {%block scripts%}
  4. <script src="{{url_for('static', filename='webshim/polyfiller.js')}}"
  5. type="text/javascript"></script>
  6. <script src="{{url_for('static', filename='datetime.js')}}"
  7. type="text/javascript"></script>
  8. {{super()}}
  9. {%endblock%}
  10. {% block title %}Larigira - DB add time "{{kind}}" {%endblock%}
  11. {% block content %}
  12. {% if form.errors %}
  13. <div class="alert alert-danger">
  14. <strong>There were some error in your form;</strong> please fix them, then
  15. resubmit
  16. </div>
  17. {% endif %}
  18. {% if mode == 'edit' %}
  19. <div class="alert alert-info">
  20. <strong>Note:</strong> You can change parameters, but you cannot change the <em>kind</em> of this alarm (yet)
  21. </div>
  22. {% endif %}
  23. <div class="container-fluid">
  24. {{wtf.quick_form(form)}}
  25. </div>
  26. {% if mode == 'edit' %}
  27. <div class="container-fluid">
  28. <div class="alert alert-danger">
  29. <form method="POST"
  30. onsubmit="return confirm('Are you sure you want to delete?');"
  31. action="{{ url_for ('db.delete_alarm', alarmid=alarmid) }}" >
  32. <input type="submit" value="Cancella" class="btn btn-danger" />
  33. </form>
  34. </div>
  35. </div>
  36. {% endif %}
  37. {% endblock content %}
  38. {# vim: set ts=2 sw=2 noet: #}