Part-DB-server/templates/admin/_export_form.html.twig
2025-09-30 16:16:08 +02:00

53 lines
No EOL
2.3 KiB
Twig

<form class="form-horizontal" method="post" action="{{ path }}" data-turbo="false" data-turbo-frame="_top" {{ stimulus_controller('elements/toggle_visibility', {classes: ['format', 'level', 'include_children']}) }}>
<div class="row format">
<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 level">
<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 include_children">
<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-md-3 col-sm">
<div class="form-check">
<input class="form-check-input form-check-input" name="readable" id="readable" type="checkbox" data-action="change->toggle-visibility#toggle">
<label class="form-check-label form-check-label" for="readable">
{% trans %}export.readable{% endtrans %}
</label>
</div>
</div>
</div>
<div class="row mt-2">
<div class="offset-sm-3 col-sm">
<button type="submit" class="btn btn-primary">{% trans %}export.btn{% endtrans %}</button>
</div>
</div>
</form>