diff options
author | Patrick Williams <patrick@stwcx.xyz> | 2016-08-17 14:31:25 -0500 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2016-08-22 16:43:26 +0000 |
commit | 60f9d69e016b11c468c98ea75ba0a60c44afbbc4 (patch) | |
tree | ecb49581a9e41a37943c22cd9ef3f63451b20ee7 /import-layers/yocto-poky/bitbake/lib/toaster/toastergui/templates/toastertable.html | |
parent | e18c61205e0234b03697129c20cc69c9b3940efc (diff) | |
download | blackbird-openbmc-60f9d69e016b11c468c98ea75ba0a60c44afbbc4.tar.gz blackbird-openbmc-60f9d69e016b11c468c98ea75ba0a60c44afbbc4.zip |
yocto-poky: Move to import-layers subdir
We are going to import additional layers, so create a subdir to
hold all of the layers that we import with git-subtree.
Change-Id: I6f732153a22be8ca663035c518837e3cc5ec0799
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Diffstat (limited to 'import-layers/yocto-poky/bitbake/lib/toaster/toastergui/templates/toastertable.html')
-rw-r--r-- | import-layers/yocto-poky/bitbake/lib/toaster/toastergui/templates/toastertable.html | 105 |
1 files changed, 105 insertions, 0 deletions
diff --git a/import-layers/yocto-poky/bitbake/lib/toaster/toastergui/templates/toastertable.html b/import-layers/yocto-poky/bitbake/lib/toaster/toastergui/templates/toastertable.html new file mode 100644 index 000000000..21c3d36c7 --- /dev/null +++ b/import-layers/yocto-poky/bitbake/lib/toaster/toastergui/templates/toastertable.html @@ -0,0 +1,105 @@ + +{% load static %} +{% load projecttags %} + +<script src="{% static 'js/table.js' %}"></script> +<script src="{% static 'js/layerBtn.js' %}"></script> +<script> + $(document).ready(function() { + (function(){ + + var ctx = { + tableName : "{{table_name}}", + url : "{{ xhr_table_url }}?format=json", + title : "{{title}}", + }; + + try { + tableInit(ctx); + } catch (e) { + document.write("Problem loading table widget: " + e); + } + })(); + }); +</script> + +{% include 'toastertable-filter.html' %} + +<div class="row-fluid" id="no-results-{{table_name}}" style="display:none"> + <div class="alert"> + <form class="no-results input-append"> + <input class="input-xxlarge" id="new-search-input-{{table_name}}" name="search" type="text" placeholder="Search {{title|lower}}" value="{%if request.GET.search %}{{request.GET.search}}{%endif%}"/> + <a href="#" class="add-on btn remove-search-btn-{{table_name}}" tabindex="-1"> + <i class="icon-remove"></i> + </a> + <button class="btn search-submit-{{table_name}}"> + Search + </button> + <button class="btn btn-link show-all-{{table_name}} remove-search-btn-{{table_name}}"> + Show all + </button> + </form> + </div> +</div> + +<div id="table-container-{{table_name}}" style="visibility: hidden"> + <!-- control header --> + <div class="navbar" id="table-chrome-{{table_name}}"> + <div class="navbar-inner"> + <div class="navbar-search input-append pull-left span6"> + + <input id="search-input-{{table_name}}" name="search" type="text" placeholder="Search {{title|lower}}" value="{%if request.GET.search%}{{request.GET.search}}{%endif%}"/> + <a href="#" style="display:none" class="add-on btn remove-search-btn-{{table_name}}" tabindex="-1"> + <i class="icon-remove"></i> + </a> + <button class="btn" id="search-submit-{{table_name}}" >Search</button> + </div> + + <div class="pull-right"> + <div class="btn-group"> + <button id="edit-columns-button" class="btn dropdown-toggle" data-toggle="dropdown">Edit columns + <span class="caret"></span> + </button> + <ul class="dropdown-menu editcol"> + </ul> + </div> + <div style="display:inline"> + <span class="divider-vertical"></span> + <span class="help-inline" style="padding-top:5px;">Show rows:</span> + <select style="margin-top:5px;margin-bottom:0px;" class="pagesize-{{table_name}}"> + {% with "10 25 50 100 150" as list%} + {% for i in list.split %} + <option value="{{i}}">{{i}}</option> + {% endfor %} + {% endwith %} + </select> + </div> + </div> + </div> + </div> + + <!-- The actual table --> + <table class="table table-bordered table-hover tablesorter" id="{{table_name}}"> + <thead> + <tr><th></th></tr> + </thead> + <tbody></tbody> + </table> + + <!-- Pagination controls --> + <div class="pagination pagination-centered" id="pagination-{{table_name}}"> + <ul class="pagination" style="display: block-inline"> + </ul> + + <div class="pull-right"> + <span class="help-inline" style="padding-top:5px;">Show rows:</span> + <select style="margin-top:5px;margin-bottom:0px;" class="pagesize-{{table_name}}"> + {% with "10 25 50 100 150" as list%} + {% for i in list.split %} + <option value="{{i}}">{{i}}</option> + {% endfor %} + {% endwith %} + </select> + </div> + </div> +</div> |