1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-11-08 21:21:06 +00:00
AdvLabDB/advlabdb/templates/admin/model/edit.html

41 lines
1.2 KiB
HTML
Raw Normal View History

2021-05-17 19:34:49 +00:00
{% extends 'admin/master.html' %}
{% import 'admin/lib.html' as lib with context %}
{% from 'admin/lib.html' import extra with context %} {# backward compatible #}
{% block head %}
{{ super() }}
{{ lib.form_css() }}
{% endblock %}
{% block body %}
{% block navlinks %}
<ul class="nav nav-tabs">
2022-03-02 22:35:20 +00:00
<li class="nav-item">
<a href="{{ return_url }}" class="nav-link">{{ _gettext('List') }}</a>
2021-05-17 19:34:49 +00:00
</li>
{%- if admin_view.can_create -%}
2022-03-02 22:35:20 +00:00
<li class="nav-item">
<a href="{{ get_url('.create_view', url=return_url) }}" class="nav-link">{{ _gettext('Create') }}</a>
2021-05-17 19:34:49 +00:00
</li>
{%- endif -%}
2022-03-02 22:35:20 +00:00
<li class="nav-item">
<a href="javascript:void(0)" class="nav-link active">{{ _gettext('Edit') }}</a>
2021-05-17 19:34:49 +00:00
</li>
{%- if admin_view.can_view_details -%}
2022-03-02 22:35:20 +00:00
<li class="nav-item">
<a class="nav-link" href="{{ get_url('.details_view', id=request.args.get('id'), url=return_url) }}">{{ _gettext('Details') }}</a>
2021-05-17 19:34:49 +00:00
</li>
{%- endif -%}
</ul>
{% endblock %}
{% block edit_form %}
{{ lib.render_form(form, return_url, extra(), form_opts) }}
{% endblock %}
{% endblock %}
{% block tail %}
{{ super() }}
{{ lib.form_js() }}
{% endblock %}