mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-14 06:09:33 +00:00
Anzeige und Logik für zugehörige Build-Parts sowie Build-Tab bei Assemblies entfernen, da vorerst nicht benötigt.
This commit is contained in:
parent
9df2c4d307
commit
3f0738fa9e
3 changed files with 1 additions and 31 deletions
|
|
@ -32,21 +32,6 @@
|
||||||
{{ form_row(form.description) }}
|
{{ form_row(form.description) }}
|
||||||
{{ form_row(form.status) }}
|
{{ form_row(form.status) }}
|
||||||
{{ form_row(form.ipn) }}
|
{{ form_row(form.ipn) }}
|
||||||
{% if entity.id %}
|
|
||||||
<div class="mb-2 row">
|
|
||||||
<label class="col-form-label col-sm-3">{% trans %}assembly.edit.associated_build_part{% endtrans %}</label>
|
|
||||||
<div class="col-sm-9">
|
|
||||||
{% if entity.buildPart %}
|
|
||||||
<span class="form-control-static"><a href="{{ entity_url(entity.buildPart) }}">{{ entity.buildPart.name }}</a></span>
|
|
||||||
{% else %}
|
|
||||||
<a href="{{ path('part_new_build_part_assembly', {"assembly_id": entity.id , "_redirect": uri_without_host(app.request)}) }}"
|
|
||||||
class="btn btn-outline-success">{% trans %}assembly.edit.associated_build_part.add{% endtrans %}</a>
|
|
||||||
{% endif %}
|
|
||||||
<p class="text-muted">{% trans %}assembly.edit.associated_build.hint{% endtrans %}</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block additional_panes %}
|
{% block additional_panes %}
|
||||||
|
|
|
||||||
|
|
@ -20,11 +20,6 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</h3>
|
</h3>
|
||||||
<h6 class="text-muted w-fit" title="{% trans %}description.label{% endtrans %}"><span>{{ assembly.description|format_markdown(true) }}</span></h6>
|
<h6 class="text-muted w-fit" title="{% trans %}description.label{% endtrans %}"><span>{{ assembly.description|format_markdown(true) }}</span></h6>
|
||||||
{% if assembly.buildPart %}
|
|
||||||
<h6>{% trans %}assembly.edit.associated_build_part{% endtrans %}:</h6>
|
|
||||||
<a href="{{ entity_url(assembly.buildPart) }}">{{ assembly.buildPart.name }}</a>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -74,4 +69,4 @@
|
||||||
{{ assembly.comment|format_markdown }}
|
{{ assembly.comment|format_markdown }}
|
||||||
</p>
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -88,13 +88,6 @@
|
||||||
<span class="badge bg-secondary">{{ assembly.bomEntries | length }}</span>
|
<span class="badge bg-secondary">{{ assembly.bomEntries | length }}</span>
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item" role="presentation">
|
|
||||||
<button class="nav-link" id="builds-tab" data-bs-toggle="tab" data-bs-target="#builds-tab-pane"
|
|
||||||
type="button" role="tab" aria-controls="builds-tab-pane" aria-selected="false">
|
|
||||||
<i class="fa-solid fa-bolt fa-fw"></i>
|
|
||||||
{% trans %}assembly.info.builds.label{% endtrans %}
|
|
||||||
</button>
|
|
||||||
</li>
|
|
||||||
{% if assembly.attachments is not empty %}
|
{% if assembly.attachments is not empty %}
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" id="attachments-tab" data-bs-toggle="tab"
|
<a class="nav-link" id="attachments-tab" data-bs-toggle="tab"
|
||||||
|
|
@ -131,9 +124,6 @@
|
||||||
<div class="tab-pane fade" id="bom-tab-pane" role="tabpanel" aria-labelledby="bom-tab" tabindex="0">
|
<div class="tab-pane fade" id="bom-tab-pane" role="tabpanel" aria-labelledby="bom-tab" tabindex="0">
|
||||||
{% include "assemblies/info/_bom.html.twig" %}
|
{% include "assemblies/info/_bom.html.twig" %}
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-pane fade" id="builds-tab-pane" role="tabpanel" aria-labelledby="builds-tab" tabindex="0">
|
|
||||||
{% include "assemblies/info/_builds.html.twig" %}
|
|
||||||
</div>
|
|
||||||
<div class="tab-pane fade" id="attachments-tab-pane" role="tabpanel" aria-labelledby="attachments-tab" tabindex="0">
|
<div class="tab-pane fade" id="attachments-tab-pane" role="tabpanel" aria-labelledby="attachments-tab" tabindex="0">
|
||||||
{% include "assemblies/info/_attachments_info.html.twig" with {"assembly": assembly} %}
|
{% include "assemblies/info/_attachments_info.html.twig" with {"assembly": assembly} %}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue