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

@ -6,4 +6,12 @@
{% block additional_controls %} {% block additional_controls %}
{{ form_row(form.filetype_filter) }} {{ 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 %} {% 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> <li class="nav-item"><a data-toggle="tab" class="nav-link link-anchor" href="#home_advanced">{% trans %}admin.advanced{% endtrans %}</a></li>
{% endblock %} {% 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 %} {% block additional_panes %}
<div class="tab-pane" id="home_options"> <div class="tab-pane" id="home_options">
{{ form_row(form.disable_footprints) }} {{ form_row(form.disable_footprints) }}

View file

@ -23,4 +23,12 @@
{{ '1'|format_currency(default_currency) }} = {{ entity.inverseExchangeRate | format_currency(entity.isoCode, {fraction_digit: 5}) }} {{ '1'|format_currency(default_currency) }} = {{ entity.inverseExchangeRate | format_currency(entity.isoCode, {fraction_digit: 5}) }}
</span> </span>
{% endif %} {% endif %}
{% endblock %}
{% block edit_title %}
{% trans %}currency.edit{% endtrans %}: {{ entity.name }}
{% endblock %}
{% block new_title %}
{% trans %}currency.new{% endtrans %}
{% endblock %} {% endblock %}

View file

@ -2,4 +2,12 @@
{% block card_title %} {% block card_title %}
<i class="fas fa-archive fa-fw"></i> {% trans %}device.caption{% endtrans %} <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 %} {% endblock %}

View file

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

View file

@ -7,4 +7,12 @@
{% block master_picture_block %} {% block master_picture_block %}
{{ form_row(form.master_picture_attachment) }} {{ form_row(form.master_picture_attachment) }}
{{ form_row(form.footprint_3d) }} {{ 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 %} {% endblock %}

View file

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

View file

@ -49,4 +49,12 @@
</object> </object>
</div> </div>
{% endif %} {% 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 %} {% endblock %}

View file

@ -2,4 +2,12 @@
{% block card_title %} {% block card_title %}
<i class="fas fa-industry fa-fw"></i> {% trans %}manufacturer.caption{% endtrans %} <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 %} {% endblock %}

View file

@ -8,4 +8,5 @@
{{ form_row(form.unit) }} {{ form_row(form.unit) }}
{{ form_row(form.is_integer) }} {{ form_row(form.is_integer) }}
{{ form_row(form.use_si_prefix)}} {{ form_row(form.use_si_prefix)}}
{% endblock %} {% endblock %}

View file

@ -26,4 +26,12 @@
{{ form_row(form.limit_to_existing_parts) }} {{ form_row(form.limit_to_existing_parts) }}
{{ form_row(form.only_single_part) }} {{ form_row(form.only_single_part) }}
</div> </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 %} {% endblock %}

View file

@ -10,4 +10,12 @@
{{ form_row(form.shipping_costs) }} {{ form_row(form.shipping_costs) }}
{{ form_row(form.comment) }} {{ form_row(form.comment) }}
</div> </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 %} {% endblock %}

View file

@ -79,4 +79,12 @@
<div class="tab-pane" id="permissions"> <div class="tab-pane" id="permissions">
{{ form_row(form.permissions) }} {{ form_row(form.permissions) }}
</div> </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 %} {% endblock %}

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff