summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates/toastertable.html
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/toastertable.html')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/toastertable.html117
1 files changed, 117 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/toastertable.html b/bitbake/lib/toaster/toastergui/templates/toastertable.html
new file mode 100644
index 0000000000..05ec3662b2
--- /dev/null
+++ b/bitbake/lib/toaster/toastergui/templates/toastertable.html
@@ -0,0 +1,117 @@
1
2{% load static %}
3{% load projecttags %}
4
5<script src="{% static 'js/table.js' %}"></script>
6<script src="{% static 'js/layerBtn.js' %}"></script>
7<script>
8 $(document).ready(function() {
9 (function(){
10
11 var ctx = {
12 tableName : "{{table_name}}",
13 url : "{{ xhr_table_url }}",
14 title : "{{title}}",
15 projectLayers : {{projectlayers|json}},
16 };
17
18 try {
19 tableInit(ctx);
20 } catch (e) {
21 document.write("Problem loading table widget: " + e);
22 }
23 })();
24 });
25</script>
26
27<!-- filter modal -->
28<div id="filter-modal" class="modal hide fade" tabindex="-1" role="dialog" aria-hidden="false">
29 <form id="filter-modal-form" style="margin-bottom: 0px">
30 <div class="modal-header">
31 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
32 <h3 id="filter-modal-title"></h3>
33 </div>
34 <div class="modal-body">
35 <p>Show:</p>
36 <span id="filter-actions"></span>
37 </div>
38 <div class="modal-footer">
39 <button class="btn btn-primary" type="submit">Apply</button>
40 </div>
41 </form>
42</div>
43<button id="clear-filter-btn" style="display:none"></button>
44
45<div class="row-fluid alert" id="no-results-{{table_name}}" style="display:none">
46 <form class="no-results input-append">
47 <input class="input-xxlarge" id="new-search-input-{{table_name}}" name="search" type="text" placeholder="Search {{title|lower}}" value="{{request.GET.search}}"/>
48 <a href="#" class="add-on btn remove-search-btn-{{table_name}}" tabindex="-1">
49 <i class="icon-remove"></i>
50 </a>
51 <button class="btn search-submit-{{table_name}}" >Search</button>
52 <button class="btn btn-link remove-search-btn-{{table_name}}">Show {{title|lower}}
53 </button>
54 </form>
55</div>
56
57<div id="table-container-{{table_name}}">
58 <!-- control header -->
59 <div class="navbar" id="table-chrome-{{table_name}}">
60 <div class="navbar-inner">
61 <div class="navbar-search input-append pull-left">
62
63 <input class="input-xxlarge" id="search-input-{{table_name}}" name="search" type="text" placeholder="Search {{title|lower}}" value="{{request.GET.search}}"/>
64 <a href="#" style="display:none" class="add-on btn remove-search-btn-{{table_name}}" tabindex="-1">
65 <i class="icon-remove"></i>
66 </a>
67 <button class="btn" id="search-submit-{{table_name}}" >Search</button>
68 </div>
69
70 <div class="pull-right">
71 <div class="btn-group">
72 <button class="btn dropdown-toggle" data-toggle="dropdown">Edit columns
73 <span class="caret"></span>
74 </button>
75 <ul class="dropdown-menu editcol">
76 </ul>
77 </div>
78 <div style="display:inline">
79 <span class="divider-vertical"></span>
80 <span class="help-inline" style="padding-top:5px;">Show rows:</span>
81 <select style="margin-top:5px;margin-bottom:0px;" class="pagesize">
82 {% with "10 25 50 100 150" as list%}
83 {% for i in list.split %}
84 <option value="{{i}}">{{i}}</option>
85 {% endfor %}
86 {% endwith %}
87 </select>
88 </div>
89 </div>
90 </div>
91 </div>
92
93 <!-- The actual table -->
94 <table class="table table-bordered table-hover tablesorter" id="{{table_name}}">
95 <thead>
96 <tr></tr>
97 </thead>
98 <tbody></tbody>
99 </table>
100
101 <!-- Pagination controls -->
102 <div class="pagination pagination-centered">
103 <ul id="pagination-{{table_name}}" class="pagination" style="display: block-inline">
104 </ul>
105
106 <div class="pull-right">
107 <span class="help-inline" style="padding-top:5px;">Show rows:</span>
108 <select style="margin-top:5px;margin-bottom:0px;" class="pagesize">
109 {% with "10 25 50 100 150" as list%}
110 {% for i in list.split %}
111 <option value="{{i}}">{{i}}</option>
112 {% endfor %}
113 {% endwith %}
114 </select>
115 </div>
116 </div>
117</div>