Fixed exception in "Show all parts table".

This commit is contained in:
Jan Böhmer 2020-04-06 18:40:00 +02:00
parent f04cb9d3e9
commit 21e34166ba

View file

@ -1,6 +1,6 @@
<div class="row mb-3"> <div class="row mb-3">
<div class="col"> <div class="col">
<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> <a href="{{ url('part_new', url_options) }}" class="btn btn-success float-left {% if not is_granted("@parts.create") or (entity is defined and entity.notSelectable) %}disabled{% endif %}"><i class="fas fa-plus-square fa-fw"></i>
{% trans%}part.create.btn{% endtrans %}</a> {% trans%}part.create.btn{% endtrans %}</a>
</div> </div>
</div> </div>