deb91996a8
Add data-locale in table tag Add bootstrap-table-locale-all-min-js Remove bootstrap-table locale dir
37 lines
2.0 KiB
HTML
37 lines
2.0 KiB
HTML
{% extends "layout.html" %}
|
|
{% block header %}
|
|
<link href="{{ url_for('static', filename='css/libs/bootstrap-table.min.css') }}" rel="stylesheet">
|
|
{% endblock %}
|
|
{% block body %}
|
|
<div class="discover">
|
|
<h2>{{_('Tasks')}}</h2>
|
|
<table class="table table-no-bordered" id="tasktable" data-url="{{ url_for('web.get_email_status_json') }}" data-sort-name="starttime" data-sort-order="asc" data-locale="{{ g.user.locale }}">
|
|
<thead>
|
|
<tr>
|
|
{% if g.user.role_admin() %}
|
|
<th data-halign="right" data-align="right" data-field="user" data-sortable="true">{{_('User')}}</th>
|
|
{% endif %}
|
|
<th data-halign="right" data-align="right" data-field="taskMessage" data-sortable="true">{{_('Task')}}</th>
|
|
<th data-halign="right" data-align="right" data-field="status" data-sortable="true">{{_('Status')}}</th>
|
|
<th data-halign="right" data-align="right" data-field="progress" data-sortable="true" data-sorter="elementSorter">{{_('Progress')}}</th>
|
|
<th data-halign="right" data-align="right" data-field="runtime" data-sortable="true" data-sort-name="rt">{{_('Run Time')}}</th>
|
|
<th data-halign="right" data-align="right" data-field="starttime" data-sortable="true" data-sort-name="id">{{_('Start Time')}}</th>
|
|
<th data-field="id" data-visible="false"></th>
|
|
<th data-field="rt" data-visible="false"></th>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
<!--div class="btn btn-default" id="tasks_delete">{{_('Delete finished tasks')}}</div>
|
|
<div class="btn btn-default" id="tasks_hide">{{_('Hide all tasks')}}</div-->
|
|
</div>
|
|
{% endblock %}
|
|
{% block js %}
|
|
<script src="{{ url_for('static', filename='js/libs/bootstrap-table/bootstrap-table.min.js') }}"></script>
|
|
<script src="{{ url_for('static', filename='js/libs/bootstrap-table/bootstrap-table-locale-all.min.js') }}"></script>
|
|
<script src="{{ url_for('static', filename='js/table.js') }}"></script>
|
|
<script>
|
|
// ToDo: Move to js file
|
|
</script>
|
|
|
|
{% endblock %}
|