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>
42 lines
1.7 KiB
Twig
42 lines
1.7 KiB
Twig
<form class="form-horizontal" method="post" action="{{ path }}" data-turbo="false" data-turbo-frame="_top">
|
|
|
|
<div class="row">
|
|
<label class="col-form-label col-md-3">{% trans %}export.format{% endtrans %}</label>
|
|
<div class="col-md-9">
|
|
<select class="form-select" name="format">
|
|
<option value="json">JSON</option>
|
|
<option value="xml">XML</option>
|
|
<option value="csv">CSV</option>
|
|
<option value="yaml">YAML</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row mt-2">
|
|
<label class="col-form-label col-md-3">{% trans %}export.level{% endtrans %}</label>
|
|
<div class="col-md-9">
|
|
<select class="form-select" name="level">
|
|
<option value="simple">{% trans %}export.level.simple{% endtrans %}</option>
|
|
<option value="extended" selected>{% trans %}export.level.extended{% endtrans %}</option>
|
|
<option value="full">{% trans %}export.level.full{% endtrans %}</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row mt-2">
|
|
<div class="offset-md-3 col-sm">
|
|
<div class="form-check">
|
|
<input class="form-check-input form-check-input" name="include_children" id="include_children" type="checkbox" checked>
|
|
<label class="form-check-label form-check-label" for="include_children">
|
|
{% trans %}export.include_children{% endtrans %}
|
|
</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row mt-2">
|
|
<div class="{{ offset_label }} col-sm">
|
|
<button type="submit" class="btn btn-primary">{% trans %}export.btn{% endtrans %}</button>
|
|
</div>
|
|
</div>
|
|
</form>
|