Update web/templates/import_wizard.html
This commit is contained in:
parent
0c63721ebb
commit
2d6289b030
@ -1,18 +1,30 @@
|
||||
{% extends "base.html" %}
|
||||
{% block title %}Import Data - Illustrations DB{% endblock %}
|
||||
{% block body_class %}themed-bg{% endblock %}
|
||||
{% block content %}
|
||||
<div class="panel">
|
||||
<h2 style="margin-top:0;">Import Data (CSV)</h2>
|
||||
<p>Expected headers (any order, case-insensitive): <code>Subject, Illustration, Application, Scripture, Source, Talk Title, Talk Number, Code, Date, Date Edited</code></p>
|
||||
<form method="post" enctype="multipart/form-data">{% csrf_token %}
|
||||
<div class="row">
|
||||
<div><label>CSV file</label>{{ form.file }}</div>
|
||||
<div><label>{{ form.dry_run.label }}</label>{{ form.dry_run }} <small>{{ form.dry_run.help_text }}</small></div>
|
||||
<div class="container">
|
||||
<div class="card">
|
||||
<h1 class="page-title">Import CSV</h1>
|
||||
<p class="muted">
|
||||
Columns (in order): <code>Subject, Illustration, Application, Scripture, Source, Talk Title, Talk Number, Code, Date, Date Edited</code>.
|
||||
You can dry-run to preview changes without writing.
|
||||
</p>
|
||||
<form method="post" enctype="multipart/form-data">
|
||||
{% csrf_token %}
|
||||
<div class="form-row">
|
||||
{{ form.file.label_tag }} {{ form.file }}
|
||||
{% if form.file.errors %}<div class="err">{{ form.file.errors|striptags }}</div>{% endif %}
|
||||
</div>
|
||||
<label class="check-pill">
|
||||
{{ form.dry_run }} <span>Dry run (preview only)</span>
|
||||
</label>
|
||||
<div class="result-toolbar" style="margin-top:12px;">
|
||||
<div class="rt-left"></div>
|
||||
<div class="rt-right">
|
||||
<a class="btn btn-secondary" href="{% url 'settings_home' %}">Cancel</a>
|
||||
<button class="btn btn-primary" type="submit">Run Import</button>
|
||||
</div>
|
||||
<div style="margin-top:16px; display:flex; gap:10px; justify-content:flex-end;">
|
||||
<a class="btn" href="/search/">Cancel</a>
|
||||
<button class="btn primary" type="submit">Process</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Loading…
Reference in New Issue
Block a user