mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-13 11:54:32 +02:00
Allow to specify the 3d model for a footprint.
This commit is contained in:
parent
d9fe77d0e8
commit
6645ab0b61
8 changed files with 100 additions and 45 deletions
|
@ -90,6 +90,9 @@
|
|||
|
||||
<div class="tab-pane" id="attachments">
|
||||
{% include "AdminPages/_attachments.html.twig" %}
|
||||
{% block master_picture_block %}
|
||||
{{ form_row(form.master_picture_attachment) }}
|
||||
{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -2,4 +2,9 @@
|
|||
|
||||
{% block card_title %}
|
||||
<i class="fas fa-microchip fa-fw"></i> {% trans %}footprint.labelp{% endtrans %}
|
||||
{% endblock %}
|
||||
|
||||
{% block master_picture_block %}
|
||||
{{ form_row(form.master_picture_attachment) }}
|
||||
{{ form_row(form.footprint_3d) }}
|
||||
{% endblock %}
|
|
@ -67,10 +67,6 @@
|
|||
{% trans %}attachment.create{% endtrans %}
|
||||
</button>
|
||||
|
||||
{% block master_picture_block %}
|
||||
{{ form_row(form.master_picture_attachment) }}
|
||||
{% endblock %}
|
||||
|
||||
<script>
|
||||
function delete_attachment_entry(btn) {
|
||||
window.bootbox.confirm('{% trans %}part_lot.edit.delete.confirm{% endtrans %}', function (result) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue