summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/toastertable-simple.html112
1 files changed, 112 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/toastertable-simple.html b/bitbake/lib/toaster/toastergui/templates/toastertable-simple.html
new file mode 100644
index 0000000000..98cad64a01
--- /dev/null
+++ b/bitbake/lib/toaster/toastergui/templates/toastertable-simple.html
@@ -0,0 +1,112 @@
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">&nbsp;</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" id="no-results-{{table_name}}" style="display:none">
46 <div class="alert">
47 <form class="no-results input-append">
48 <input class="input-xlarge" id="new-search-input-{{table_name}}" name="search" type="text" placeholder="Search {{title|lower}}" value="{{request.GET.search}}"/>
49 <a href="#" class="add-on btn remove-search-btn-{{table_name}}" tabindex="-1">
50 <i class="icon-remove"></i>
51 </a>
52 <button class="btn search-submit-{{table_name}}" >Search</button>
53 <button class="btn btn-link remove-search-btn-{{table_name}}">Show {{title|lower}}
54 </button>
55 </form>
56 </div>
57</div>
58
59
60<div id="table-container-{{table_name}}">
61 <!-- control header -->
62 <div class="row-fluid" id="table-chrome-{{table_name}}">
63 <div class="navbar-search input-append pull-left">
64
65 <input class="input-xlarge" id="search-input-{{table_name}}" name="search" type="text" placeholder="Search {{title|lower}}" value="{{request.GET.search}}"/>
66 <a href="#" style="display:none" class="add-on btn remove-search-btn-{{table_name}}" tabindex="-1">
67 <i class="icon-remove"></i>
68 </a>
69 <button class="btn" id="search-submit-{{table_name}}" >Search</button>
70 </div>
71
72 <div class="pull-right">
73
74 <div style="display:inline">
75 <span class="divider-vertical"></span>
76 <span class="help-inline" style="padding-top:5px;">Show rows:</span>
77 <select style="margin-top:5px;margin-bottom:0px;" class="pagesize-{{table_name}}">
78 {% with "10 25 50 100 150" as list%}
79 {% for i in list.split %}
80 <option value="{{i}}">{{i}}</option>
81 {% endfor %}
82 {% endwith %}
83 </select>
84 </div>
85 </div>
86 </div>
87
88 <!-- The actual table -->
89 <table class="table table-bordered table-hover tablesorter" id="{{table_name}}">
90 <thead>
91 <tr><th></th></tr>
92 </thead>
93 <tbody></tbody>
94 </table>
95
96 <!-- Pagination controls -->
97 <div class="pagination pagination-centered">
98 <ul id="pagination-{{table_name}}" class="pagination" style="display: block-inline">
99 </ul>
100
101 <div class="pull-right">
102 <span class="help-inline" style="padding-top:5px;">Show rows:</span>
103 <select style="margin-top:5px;margin-bottom:0px;" class="pagesize-{{table_name}}">
104 {% with "10 25 50 100 150" as list%}
105 {% for i in list.split %}
106 <option value="{{i}}">{{i}}</option>
107 {% endfor %}
108 {% endwith %}
109 </select>
110 </div>
111 </div>
112</div>