Merge "UX Enhancement: Date Time Picker"

This commit is contained in:
Jenkins 2015-10-12 14:40:27 +00:00 committed by Gerrit Code Review
commit f41495f1f3
5 changed files with 5786 additions and 4 deletions

View File

@ -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 %}

View 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'
});
});

View 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.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff