Show parameters on info page & improved parameter editing.

This commit is contained in:
Jan Böhmer 2020-03-14 22:12:19 +01:00
parent 719e21c0df
commit bc8748e6f4
11 changed files with 1176 additions and 773 deletions

View file

@ -0,0 +1,18 @@
{# var \App\Entity\Parts\Part part #}
<table class="table table-hover table-striped table-sm">
<thead>
<tr>
<th>{% trans %}specifications.property{% endtrans %}</th>
<th>{% trans %}specifications.value{% endtrans %}</th>
</tr>
</thead>
<tbody>
{% for param in part.parameters %}
<tr>
<td>{{ param.name }}</td>
<td>{{ param.formattedValue }}</td>
</tr>
{% endfor %}
</tbody>
</table>

View file

@ -57,6 +57,12 @@
</a>
</li>
{% endif %}
<li class="nav-item">
<a class="nav-link" data-toggle="tab" role="tab" href="#specifications">
<i class="fas fa-atlas fa-fw"></i>
{% trans %}part.info.specifications{% endtrans %}
</a>
</li>
<li class="nav-item">
<a class="nav-link" id="attachment-tab" data-toggle="tab"
href="#attachments" role="tab">
@ -121,6 +127,10 @@
{% include "Parts/info/_tools.html.twig" %}
</div>
<div class="tab-pane fade" id="specifications" role="tabpanel" aria-labelledby="tools-tab">
{% include "Parts/info/_specifications.html.twig" %}
</div>
<div class="tab-pane fade" id="extended_info" role="tabpanel" aria-labelledby="extended_info-tab">
{% include "Parts/info/_extended_infos.html.twig" %}