Merge "UX Enhancement: Date Time Picker"
This commit is contained in:
commit
f41495f1f3
@ -2,10 +2,7 @@
|
||||
|
||||
{% block help_message %}
|
||||
<h4>{% blocktrans %}Start and End Date Time{% endblocktrans %}</h4>
|
||||
<p>{% blocktrans %}Set a start date and time to execute jobs in ISO format:{% endblocktrans %}</p>
|
||||
<ul>
|
||||
<li>YYYY-MM-DDThh:mm:ss</li>
|
||||
</ul>
|
||||
<p>{% blocktrans %}Set a start date and time to execute jobs{% endblocktrans %}</p>
|
||||
|
||||
<h4>{% blocktrans %}Interval{% endblocktrans %}</h4>
|
||||
<p>{% blocktrans %}Set the interval in the following format:{% endblocktrans %}</p>
|
||||
@ -18,4 +15,8 @@
|
||||
<li>N seconds</li>
|
||||
</ul>
|
||||
|
||||
<script type='text/javascript' src='{{ STATIC_URL }}freezer/js/vendor/moment.js'></script>
|
||||
<script type='text/javascript' src='{{ STATIC_URL }}freezer/js/vendor/bootstrap-datetimepicker.js'></script>
|
||||
<script type='text/javascript' src='{{ STATIC_URL }}freezer/js/freezer.datetimepicker.js'></script>
|
||||
|
||||
{% endblock %}
|
13
freezer_ui/static/freezer/js/freezer.datetimepicker.js
Normal file
13
freezer_ui/static/freezer/js/freezer.datetimepicker.js
Normal file
@ -0,0 +1,13 @@
|
||||
/*global $*/
|
||||
|
||||
"use strict";
|
||||
|
||||
$(function () {
|
||||
$('#id_schedule_start_date').datetimepicker({
|
||||
format: 'YYYY-MM-DDThh:mm:ss'
|
||||
});
|
||||
|
||||
$('#id_schedule_end_date').datetimepicker({
|
||||
format: 'YYYY-MM-DDThh:mm:ss'
|
||||
});
|
||||
});
|
21
freezer_ui/static/freezer/js/vendor/LICENSE
vendored
Normal file
21
freezer_ui/static/freezer/js/vendor/LICENSE
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015 Jonathan Peterson (@Eonasdan)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
2552
freezer_ui/static/freezer/js/vendor/bootstrap-datetimepicker.js
vendored
Normal file
2552
freezer_ui/static/freezer/js/vendor/bootstrap-datetimepicker.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
3195
freezer_ui/static/freezer/js/vendor/moment.js
vendored
Normal file
3195
freezer_ui/static/freezer/js/vendor/moment.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user