import page jiff

This commit is contained in:
Priec
2026-08-18 01:02:05 +02:00
parent b71ed4f42f
commit c75dacc0e8
12 changed files with 297 additions and 9 deletions

View File

@@ -10,3 +10,4 @@
<input type="hidden" name="profile_name" value="{{ page.form.profile_name }}">
<input type="hidden" name="table_name" value="{{ page.form.table_name }}">
<input type="hidden" name="csv_data" value="{{ page.form.csv_data }}">
<input type="hidden" name="date_format" value="{{ page.form.date_format }}">

View File

@@ -35,6 +35,14 @@
<input type="file" accept=".csv,text/csv"
onchange="this.files[0]?.text().then(value =&gt; document.getElementById('csv-data').value = value)">
</label>
<label>{{ nav.tr("import-date-format") }}
<select name="date_format" required>
{% for option in page.date_formats %}
<option value="{{ option.value }}"{% if option.selected %} selected{% endif %}>{{ option.label }}</option>
{% endfor %}
</select>
</label>
<small>{{ nav.tr("import-date-format-hint") }}</small>
<label class="wide">{{ nav.tr("import-csv-data") }}<textarea id="csv-data" name="csv_data" rows="12">{{ page.form.csv_data }}</textarea></label>
<small class="wide">{{ nav.tr("import-csv-format-hint") }}</small>
</div>