mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-06 07:25:32 +01:00
Disable "New part" button if a category is marked as not selectable.
Fixes issue #36.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<div class="row mb-3">
|
||||
<div class="col">
|
||||
<a href="{{ url('part_new', url_options) }}" class="btn btn-success float-left"><i class="fas fa-plus-square fa-fw"></i>
|
||||
<a href="{{ url('part_new', url_options) }}" class="btn btn-success float-left {% if not is_granted("@parts.create") or entity.notSelectable %}disabled{% endif %}"><i class="fas fa-plus-square fa-fw"></i>
|
||||
{% trans%}part.create.btn{% endtrans %}</a>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user