added button to edit existing part in provider list

This commit is contained in:
jona 2024-12-20 04:04:57 +01:00 committed by Jan Böhmer
parent ab68f4b37f
commit 0ba9cb8919

View file

@ -53,6 +53,7 @@
<th>{% trans %}info_providers.table.provider.label{% endtrans %}</th>
<th></th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
@ -74,6 +75,9 @@
<br>
<small class="text-muted" title="{% trans %}part.table.mpn{% endtrans %}">{{ dto.mpn }}</small>
{% endif %}
{% if result["localPart"] is not null %}
{% endif %}
</td>
<td>
{{ dto.description }}
@ -101,6 +105,17 @@
<br>
<small class="text-muted">{{ dto.provider_id }}</small>
</td>
<td>
{# TODO: would like to have a sort of "part exists!" text here, but don't know how to style it
also it would be nice to have these two buttons closer together, but when I put them in one cell
they sometimes stack#}
{% if result["localPart"] is not null %}
<a class="btn btn-primary" href="{{ path('app_part_show', {'id': result['localPart'].id}) }}"
target="_blank" title="Show Existing Part"> {# TODO: Needs translation #}
<i class="fa-solid fa-search"></i>
</a>
{% endif %}
</td>
<td>
{% if result["localPart"] is not null %}
<a class="btn btn-primary" href="{{ path('part_edit', {'id': result['localPart'].id}) }}"