mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-10 17:29:37 +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>
15 lines
517 B
Twig
15 lines
517 B
Twig
{{ form_row(form.name) }}
|
|
{% if part.category is not null and part.category.partnameHint is not empty %}
|
|
<div class="row">
|
|
<div class="{{ col_input }} {{ offset_label }}">
|
|
<p class="form-text help-text"><b>{% trans %}part.edit.name.category_hint{% endtrans %}:</b> {{ part.category.partnameHint }}</p>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{{ form_row(form.description) }}
|
|
{{ form_row(form.category) }}
|
|
{{ form_row(form.tags) }}
|
|
{{ form_row(form.minAmount) }}
|
|
|
|
{{ form_row(form.footprint) }}
|
|
|