mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-28 05:49:32 +00:00
Made EDA form for parts prettier
This commit is contained in:
parent
168b4f6c15
commit
b5c7a789a2
7 changed files with 1592 additions and 1436 deletions
24
templates/parts/edit/_eda.html.twig
Normal file
24
templates/parts/edit/_eda.html.twig
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{{ form_row(form.eda_info.reference_prefix) }}
|
||||
{{ form_row(form.eda_info.value) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-9 offset-sm-3">
|
||||
{{ form_row(form.eda_info.invisible) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-9 offset-sm-3">
|
||||
{{ form_widget(form.eda_info.exclude_from_bom) }}
|
||||
{{ form_widget(form.eda_info.exclude_from_board) }}
|
||||
{{ form_widget(form.eda_info.exclude_from_sim) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-9 offset-sm-3">
|
||||
<h6>{% trans %}eda_info.kicad_section.title{% endtrans %}:</h6>
|
||||
</div>
|
||||
</div>
|
||||
{{ form_row(form.eda_info.kicad_symbol) }}
|
||||
{{ form_row(form.eda_info.kicad_footprint) }}
|
||||
|
|
@ -64,6 +64,12 @@
|
|||
{% trans %}part.edit.tab.associations{% endtrans %}
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" data-bs-toggle="tab" role="tab" href="#eda">
|
||||
<i class="fas fa-compass-drafting fa-fw"></i>
|
||||
{% trans %}part.edit.tab.eda{% endtrans %}
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" data-bs-toggle="tab" role="tab" href="#comment">
|
||||
<i class="fas fa-sticky-note fa-fw"></i>
|
||||
|
|
@ -99,6 +105,9 @@
|
|||
<div class="tab-pane fade p-2" id="associations" role="tabpanel">
|
||||
{% include "parts/edit/_associated_parts.html.twig" %}
|
||||
</div>
|
||||
<div class="tab-pane fade p-2" id="eda" role="tabpanel">
|
||||
{% include "parts/edit/_eda.html.twig" %}
|
||||
</div>
|
||||
<div class="tab-pane fade p-2" id="comment" role="tabpanel">
|
||||
{{ form_widget(form.comment)}}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue