[bitbake-devel] [PATCH 8/8] toaster: date range filter for project builds page
Alex DAMIAN
alexandru.damian at intel.com
Thu Apr 16 14:47:41 UTC 2015
From: David Reyna <David.Reyna at windriver.com>
Port date range filter initialization code to the project builds page.
[YOCTO #7578]
Signed-off-by: David Reyna <David.Reyna at windriver.com>
---
lib/toaster/toastergui/templates/projectbuilds.html | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/lib/toaster/toastergui/templates/projectbuilds.html b/lib/toaster/toastergui/templates/projectbuilds.html
index 07595f23..18b2495 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 %}
--
1.9.1
More information about the bitbake-devel
mailing list