diff options
Diffstat (limited to 'ishtar_common/templates/blocks/DataTables-content.html')
-rw-r--r-- | ishtar_common/templates/blocks/DataTables-content.html | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/ishtar_common/templates/blocks/DataTables-content.html b/ishtar_common/templates/blocks/DataTables-content.html index dc699fa91..029ebd84c 100644 --- a/ishtar_common/templates/blocks/DataTables-content.html +++ b/ishtar_common/templates/blocks/DataTables-content.html @@ -16,7 +16,7 @@ <div class="btn-group btn-group-sm" role="group"> <button type='button' class="btn btn-secondary" data-toggle="modal" data-target="#modal_grid_{{name}}"> - {% trans "Expand table" %} <i class="fa fa-expand" aria-hidden="true"></i> + {% trans "Expand table" %} <i class="fa fa-expand" aria-hidden="true"></i> </button> </div> </div> @@ -82,4 +82,36 @@ </thead> </table> </div> + + <div id='foot_{{name}}_{{source_id}}' class="sources sources-{{source_id}} gridfooter row toolbar"> + <div class='col col-sm-2'> + <div class="btn-group btn-group-sm" role="group"> + <button type='button' class="btn btn-secondary" data-toggle="modal" + data-target="#modal_grid_{{name}}_{{source_id}}"> + {% trans "Expand table" %} <i class="fa fa-expand" aria-hidden="true"></i> + </button> + </div> + </div> + <div class="col"> + <div class="btn-group btn-group-sm" role="group"> + <button id="export-{{name}}-" type="button" + class="btn btn-secondary dropdown-toggle table-export" data-toggle="dropdown" + aria-haspopup="true" aria-expanded="false"> + {% trans 'Export'%} + </button> + <div class="dropdown-menu" aria-labelledby="export-{{name}}"> + <a class="dropdown-item {{sname}}-csv" href="{{source}}csv" target="_blank" title="{% trans 'Export as CSV' %}">{% trans "CSV" %}</a> + </div> + <div class="input-group-append"> + <div class="selected-lines input-group-text" id="btnGroupAddon"> + <span class="sl-whole">{% trans "whole table" %}</span> + <span class="sl-selected"><span class="sl-number"></span> {% trans "selected item(s)" %}</span> + </div> + </div> + </div> + </div> + </div> + + + {% endfor %} |