aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Reyna <David.Reyna@windriver.com>2015-04-15 20:37:38 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-04-17 11:53:34 +0100
commit294ea99263385525a1434bc6df690b653ee1f81b (patch)
treef56d86938be18933667f3d9d57617b37533affdf
parentee5c569ebe21c065508cd816ae8cb8842baf0b7e (diff)
downloadbitbake-294ea99263385525a1434bc6df690b653ee1f81b.tar.gz
toaster: date range filter for project builds page
Port date range filter initialization code to the project builds page. [YOCTO #7578] Signed-off-by: David Reyna <David.Reyna@windriver.com>
-rw-r--r--lib/toaster/toastergui/templates/projectbuilds.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/toaster/toastergui/templates/projectbuilds.html b/lib/toaster/toastergui/templates/projectbuilds.html
index 07595f237..18b24955d 100644
--- a/lib/toaster/toastergui/templates/projectbuilds.html
+++ b/lib/toaster/toastergui/templates/projectbuilds.html
@@ -6,8 +6,24 @@
<li>Project builds</li>
{% endblock %}
+{% block extraheadcontent %}
+<link rel="stylesheet" href="/static/css/jquery-ui.min.css" type='text/css'>
+<link rel="stylesheet" href="/static/css/jquery-ui.structure.min.css" type='text/css'>
+<link rel="stylesheet" href="/static/css/jquery-ui.theme.min.css" type='text/css'>
+<script src="/static/js/jquery-ui.min.js"></script>
+<script src="/static/js/filtersnippet.js"></script>
+{% endblock %}
+
{% block projectinfomain %}
+<script>
+ // initialize the date range controls
+ $(document).ready(function () {
+ date_init('created','{{last_date_from}}','{{last_date_to}}','{{dateMin_created}}','{{dateMax_created}}','{{daterange_selected}}');
+ date_init('updated','{{last_date_from}}','{{last_date_to}}','{{dateMin_updated}}','{{dateMax_updated}}','{{daterange_selected}}');
+ });
+</script>
+
<div class="page-header">
<h1>
{% if request.GET.filter and objects.paginator.count > 0 or request.GET.search and objects.paginator.count > 0 %}