mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Added a button to quickly go to all label profiles editor
Related to issue #806
This commit is contained in:
parent
a6116398a8
commit
9d09543eb9
2 changed files with 15 additions and 1 deletions
|
@ -59,7 +59,7 @@
|
||||||
<label class="col-sm-3 col-form-label">{% trans %}label_generator.selected_profile{% endtrans %}</label>
|
<label class="col-sm-3 col-form-label">{% trans %}label_generator.selected_profile{% endtrans %}</label>
|
||||||
<div class="col-sm-9">
|
<div class="col-sm-9">
|
||||||
<span class="form-control-plaintext">{{ profile.name ?? '-' }}
|
<span class="form-control-plaintext">{{ profile.name ?? '-' }}
|
||||||
{% if profile %}
|
{% if profile and is_granted("edit", profile) %}
|
||||||
<a href="{{ entity_url(profile, 'edit') }}" title="{% trans %}label_generator.edit_profile{% endtrans %}"
|
<a href="{{ entity_url(profile, 'edit') }}" title="{% trans %}label_generator.edit_profile{% endtrans %}"
|
||||||
><i class="fas fa-edit"></i></a>
|
><i class="fas fa-edit"></i></a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -91,6 +91,14 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{% if is_granted("@labels.read_profiles") %}
|
||||||
|
<div class="form-group row">
|
||||||
|
<div class="offset-sm-3 col-sm-9">
|
||||||
|
<a class="btn btn-link" href="{{ path('label_profile_new') }}">{% trans %}label_generator.edit_profiles{% endtrans %}</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -12293,5 +12293,11 @@ Please note, that you can not impersonate a disabled user. If you try you will g
|
||||||
<target>Decoded information</target>
|
<target>Decoded information</target>
|
||||||
</segment>
|
</segment>
|
||||||
</unit>
|
</unit>
|
||||||
|
<unit id="nmXQWcS" name="label_generator.edit_profiles">
|
||||||
|
<segment>
|
||||||
|
<source>label_generator.edit_profiles</source>
|
||||||
|
<target>Edit profiles</target>
|
||||||
|
</segment>
|
||||||
|
</unit>
|
||||||
</file>
|
</file>
|
||||||
</xliff>
|
</xliff>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue