Added quick link to parts list to the admin pages.

Fixes issue #55.
This commit is contained in:
Jan Böhmer 2020-05-11 22:59:25 +02:00
parent d2b19aa6d5
commit 47702d6131
15 changed files with 2429 additions and 1868 deletions

View file

@ -7,3 +7,11 @@
{% block additional_controls %}
{{ form_row(form.filetype_filter) }}
{% endblock %}
{% block edit_title %}
{% trans %}attachment_type.edit{% endtrans %}: {{ entity.name }}
{% endblock %}
{% block new_title %}
{% trans %}attachment_type.new{% endtrans %}
{% endblock %}

View file

@ -9,6 +9,14 @@
<li class="nav-item"><a data-toggle="tab" class="nav-link link-anchor" href="#home_advanced">{% trans %}admin.advanced{% endtrans %}</a></li>
{% endblock %}
{% block edit_title %}
{% trans %}category.edit{% endtrans %}: <a href="{{ path('part_list_category', {'id': entity.id}) }}">{{ entity.name }}</a>
{% endblock %}
{% block new_title %}
{% trans %}category.new{% endtrans %}
{% endblock %}
{% block additional_panes %}
<div class="tab-pane" id="home_options">
{{ form_row(form.disable_footprints) }}

View file

@ -24,3 +24,11 @@
</span>
{% endif %}
{% endblock %}
{% block edit_title %}
{% trans %}currency.edit{% endtrans %}: {{ entity.name }}
{% endblock %}
{% block new_title %}
{% trans %}currency.new{% endtrans %}
{% endblock %}

View file

@ -3,3 +3,11 @@
{% block card_title %}
<i class="fas fa-archive fa-fw"></i> {% trans %}device.caption{% endtrans %}
{% endblock %}
{% block edit_title %}
{% trans %}device.edit{% endtrans %}: {{ entity.name }}
{% endblock %}
{% block new_title %}
{% trans %}device.new{% endtrans %}
{% endblock %}

View file

@ -42,12 +42,12 @@
<fieldset>
<legend>
{% if entity.ID %}
<strong>{% trans with {'%name': entity.name} %}edit.caption{% endtrans %}</strong>
<strong>{% block edit_title %}{% trans with {'%name': entity.name} %}edit.caption{% endtrans %}{% endblock %}</strong>
{% if timeTravel is defined and timeTravel is not null %}
({{ timeTravel|format_datetime('short') }})
{% endif %}
{% else %}
<strong>{% trans %}new.caption{% endtrans %}</strong>
<strong>{% block new_title %}{% trans %}new.caption{% endtrans %}{% endblock %}</strong>
{% endif %}
</legend>
{% if timeTravel is defined and timeTravel is not null %}

View file

@ -8,3 +8,11 @@
{{ form_row(form.master_picture_attachment) }}
{{ form_row(form.footprint_3d) }}
{% endblock %}
{% block edit_title %}
{% trans %}footprint.edit{% endtrans %}: <a href="{{ path('part_list_footprint', {'id': entity.id}) }}">{{ entity.name }}</a>
{% endblock %}
{% block new_title %}
{% trans %}footprint.new{% endtrans %}
{% endblock %}

View file

@ -19,3 +19,11 @@
{% block additional_controls %}
{{ form_row(form.enforce2FA) }}
{% endblock %}
{% block edit_title %}
{% trans %}group.edit{% endtrans %}: {{ entity.name }}
{% endblock %}
{% block new_title %}
{% trans %}group.new{% endtrans %}
{% endblock %}

View file

@ -50,3 +50,11 @@
</div>
{% endif %}
{% endblock %}
{% block edit_title %}
{% trans %}label_profile.edit{% endtrans %}: <a href="{{ path("label_dialog_profile", {"profile": entity.id}) }}" >{{ entity.name }}</a>
{% endblock %}
{% block new_title %}
{% trans %}label_profile.new{% endtrans %}
{% endblock %}

View file

@ -3,3 +3,11 @@
{% block card_title %}
<i class="fas fa-industry fa-fw"></i> {% trans %}manufacturer.caption{% endtrans %}
{% endblock %}
{% block edit_title %}
{% trans %}manufacturer.edit{% endtrans %}: <a href="{{ path('part_list_manufacturer', {'id': entity.id}) }}">{{ entity.name }}</a>
{% endblock %}
{% block new_title %}
{% trans %}manufacturer.new{% endtrans %}
{% endblock %}

View file

@ -9,3 +9,4 @@
{{ form_row(form.is_integer) }}
{{ form_row(form.use_si_prefix)}}
{% endblock %}

View file

@ -27,3 +27,11 @@
{{ form_row(form.only_single_part) }}
</div>
{% endblock %}
{% block edit_title %}
{% trans %}storelocation.edit{% endtrans %}: <a href="{{ path('part_list_store_location', {'id': entity.id}) }}">{{ entity.name }}</a>
{% endblock %}
{% block new_title %}
{% trans %}storelocation.new{% endtrans %}
{% endblock %}

View file

@ -11,3 +11,11 @@
{{ form_row(form.comment) }}
</div>
{% endblock %}
{% block edit_title %}
{% trans %}supplier.edit{% endtrans %}: <a href="{{ path('part_list_supplier', {'id': entity.id}) }}">{{ entity.name }}</a>
{% endblock %}
{% block new_title %}
{% trans %}supplier.new{% endtrans %}
{% endblock %}

View file

@ -80,3 +80,11 @@
{{ form_row(form.permissions) }}
</div>
{% endblock %}
{% block edit_title %}
{% trans %}user.edit{% endtrans %}: <a href="{{ path('user_info', {'id': entity.id}) }}">{{ entity.name }}</a>
{% endblock %}
{% block new_title %}
{% trans %}user.new{% endtrans %}
{% endblock %}

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff