Allow to specify the 3d model for a footprint.

This commit is contained in:
Jan Böhmer 2019-10-03 14:04:09 +02:00
parent d9fe77d0e8
commit 6645ab0b61
8 changed files with 100 additions and 45 deletions

View file

@ -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>

View file

@ -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 %}

View file

@ -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) {