mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-08 08:19:35 +00:00
* Initial plan * Make form column layout configurable with global Twig variables Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com> * Rename form column Twig globals to shorter names: label_col, input_col, offset_col Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com> * Fixed remaining places where offsets where used * Fixed margin of delete button on admin forms * Rename Twig globals: col_label, col_input, offset_label Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com> * Added documentation to our twig class variables --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com> Co-authored-by: Jan Böhmer <mail@jan-boehmer.de>
37 lines
1.1 KiB
Twig
37 lines
1.1 KiB
Twig
{% extends "admin/base_admin.html.twig" %}
|
|
|
|
{% block card_title %}
|
|
<i class="fas fa-microchip fa-fw"></i> {{ type_label_p(entity) }}
|
|
{% endblock %}
|
|
|
|
{% block master_picture_block %}
|
|
{{ form_row(form.master_picture_attachment) }}
|
|
{{ form_row(form.footprint_3d) }}
|
|
{% endblock %}
|
|
|
|
{% block edit_title %}
|
|
{% trans %}footprint.edit{% endtrans %}: <a href="{{ path('part_list_footprint', {'id': entity.id}) }}">{{ entity.name }}</a>
|
|
{% endblock %}
|
|
|
|
{% block new_title %}
|
|
{% trans %}footprint.new{% endtrans %}
|
|
{% endblock %}
|
|
|
|
{% block additional_controls %}
|
|
{{ form_row(form.alternative_names) }}
|
|
{% endblock %}
|
|
|
|
{% block additional_pills %}
|
|
<li class="nav-item"><a data-bs-toggle="tab" class="nav-link link-anchor" href="#eda">{% trans %}part.edit.tab.eda{% endtrans %}</a></li>
|
|
{% endblock %}
|
|
|
|
{% block additional_panes %}
|
|
<div class="tab-pane" id="eda">
|
|
<div class="row">
|
|
<div class="{{ col_input }} {{ offset_label }}">
|
|
<h6>{% trans %}eda_info.kicad_section.title{% endtrans %}:</h6>
|
|
</div>
|
|
</div>
|
|
{{ form_row(form.eda_info.kicad_footprint) }}
|
|
</div>
|
|
{% endblock %}
|