add_time_kind.html 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 type="text/javascript">
  7. webshim.setOptions('forms-ext', {
  8. 'types': 'datetime-local',
  9. 'datetime-local': {
  10. 'classes': 'show-uparrow inputbtns-outside',
  11. 'openOnFocus': false,
  12. 'yearSelect' : true,
  13. 'stepfactor': 60,
  14. }
  15. });
  16. webshim.polyfill('forms-ext');
  17. </script>
  18. {{super()}}
  19. {%endblock%}
  20. {% block title %}Larigira - DB add time "{{kind}}" {%endblock%}
  21. {% block content %}
  22. {% if form.errors %}
  23. <div class="alert alert-danger">
  24. <strong>There were some error in your form;</strong> please fix them, then
  25. resubmit
  26. </div>
  27. {% endif %}
  28. {% if mode == 'edit' %}
  29. <div class="alert alert-info">
  30. <strong>Note:</strong> You can change parameters, but you cannot change the <em>kind</em> of this alarm (yet)
  31. </div>
  32. {% endif %}
  33. <div class="container-fluid">
  34. {{wtf.quick_form(form)}}
  35. </div>
  36. {% if mode == 'edit' %}
  37. <div class="container-fluid">
  38. <div class="alert alert-danger">
  39. <form method="POST"
  40. onsubmit="return confirm('Are you sure you want to delete?');"
  41. action="{{ url_for ('db.delete_alarm', alarmid=alarmid) }}" >
  42. <input type="submit" value="Cancella" class="btn btn-danger" />
  43. </form>
  44. </div>
  45. </div>
  46. {% endif %}
  47. {% endblock content %}
  48. {# vim: set ts=2 sw=2 noet: #}