Update toolbars in some pages.
This commit is contained in:
parent
356435c785
commit
86b95a521b
2 changed files with 13 additions and 34 deletions
|
@ -3,11 +3,20 @@
|
|||
|
||||
{% block title %}{{ title }}{% endblock %}
|
||||
|
||||
{% block precontent %}
|
||||
{{ toolbars.render_toolbar(
|
||||
id='search',
|
||||
left = breadcrumbs.breadcrumb_header(
|
||||
title=title
|
||||
)
|
||||
) }}
|
||||
{% if not results['inventory']['rows'] and not results['users']['rows'] and not results['worklog']['rows'] %}
|
||||
<div class="alert alert-danger">There are no results for "{{ query }}".</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
{{ breadcrumbs.breadcrumb_header(
|
||||
title=title,
|
||||
) }}
|
||||
|
||||
<div class="container">
|
||||
{% if results['inventory']['rows'] %}
|
||||
|
@ -43,9 +52,6 @@ title=title,
|
|||
)}}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if not results['inventory']['rows'] and not results['users']['rows'] and not results['worklog']['rows'] %}
|
||||
<div>There are no results for "{{ query }}".</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
window.location.href = '/{{ entry_route }}/new';
|
||||
{% endset %}
|
||||
{{ toolbars.render_toolbar(
|
||||
'test',
|
||||
'table',
|
||||
left = breadcrumbs.breadcrumb_header(
|
||||
title=title,
|
||||
breadcrumbs=breadcrumb,
|
||||
|
@ -17,33 +17,6 @@
|
|||
right = buttons.render_button(id='create', icon='plus-lg', logic=createButtonLogic)
|
||||
) }}
|
||||
{% endblock %}
|
||||
{#
|
||||
<nav class="row d-flex mb-3 justify-content-between">
|
||||
{% if save_button or delete_button or create_button %}
|
||||
<div class="col text-end">
|
||||
<div class="btn-group">
|
||||
{% if save_button %}
|
||||
<button type="submit" class="btn btn-primary" id="saveButton">{{ icons.render_icon('floppy', 16) }}</button>
|
||||
{% endif %}
|
||||
{% if delete_button %}
|
||||
<button type="submit" class="btn btn-danger" id="deleteButton">{{ icons.render_icon('trash', 16) }}</button>
|
||||
{% endif %}
|
||||
{% if create_button %}
|
||||
<button type="submit" class="btn btn-primary" id="createButton">{{ icons.render_icon('plus', 16) }}</button>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
</nav>
|
||||
#}
|
||||
{% block content %}
|
||||
|
||||
|
||||
{# { breadcrumbs.breadcrumb_header(
|
||||
title=title,
|
||||
breadcrumbs=breadcrumb,
|
||||
create_button=True
|
||||
) } #}
|
||||
|
||||
{{ tables.render_table(headers=header, rows=rows, id='table', entry_route=entry_route) }}
|
||||
{% endblock %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue