mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-21 09:39:34 +00:00
added button to edit existing part in provider list
This commit is contained in:
parent
ab68f4b37f
commit
0ba9cb8919
1 changed files with 15 additions and 0 deletions
|
|
@ -53,6 +53,7 @@
|
||||||
<th>{% trans %}info_providers.table.provider.label{% endtrans %}</th>
|
<th>{% trans %}info_providers.table.provider.label{% endtrans %}</th>
|
||||||
<th></th>
|
<th></th>
|
||||||
<th></th>
|
<th></th>
|
||||||
|
<th></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
@ -74,6 +75,9 @@
|
||||||
<br>
|
<br>
|
||||||
<small class="text-muted" title="{% trans %}part.table.mpn{% endtrans %}">{{ dto.mpn }}</small>
|
<small class="text-muted" title="{% trans %}part.table.mpn{% endtrans %}">{{ dto.mpn }}</small>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if result["localPart"] is not null %}
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{{ dto.description }}
|
{{ dto.description }}
|
||||||
|
|
@ -101,6 +105,17 @@
|
||||||
<br>
|
<br>
|
||||||
<small class="text-muted">{{ dto.provider_id }}</small>
|
<small class="text-muted">{{ dto.provider_id }}</small>
|
||||||
</td>
|
</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>
|
<td>
|
||||||
{% if result["localPart"] is not null %}
|
{% if result["localPart"] is not null %}
|
||||||
<a class="btn btn-primary" href="{{ path('part_edit', {'id': result['localPart'].id}) }}"
|
<a class="btn btn-primary" href="{{ path('part_edit', {'id': result['localPart'].id}) }}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue