Add a new argument to the SourceColumn class to flag a column as sortable. The SourceColum will generate a request querystring to be used as the table header archor href. The SingleObjectListView will capture the querystring and call the order_by on the queryset to sort it. Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
19 lines
743 B
HTML
19 lines
743 B
HTML
{% load i18n %}
|
|
|
|
{% load common_tags %}
|
|
|
|
<div class="pull-left">
|
|
<div class="btn-toolbar" role="toolbar">
|
|
<div class="btn-group">
|
|
{% if multi_item_actions %}
|
|
<a class="btn btn-default btn-sm check-all" data-checked=false data-icon-checked="fa fa-check-square" data-icon-unchecked="far fa-square" title="{% trans 'Select/Deselect all' %}">
|
|
<i class="far fa-square"></i>
|
|
</a>
|
|
{% endif %}
|
|
<a class="btn btn-default btn-sm" href="{% get_list_mode_querystring %}" title="{% trans 'Toggle list display mode' %}">
|
|
{% get_list_mode_icon as list_mode_icon %}{{ list_mode_icon.render }}
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|