Cleans up markup on import page

This commit is contained in:
Mouse Reeve 2021-03-30 09:30:25 -07:00
parent 59ebcc62ee
commit 047e827382
1 changed files with 32 additions and 25 deletions

View File

@ -7,36 +7,43 @@
{% block content %} {% block content %}
<div class="block"> <div class="block">
<h1 class="title">{% trans "Import Books" %}</h1> <h1 class="title">{% trans "Import Books" %}</h1>
<form name="import" action="/import" method="post" enctype="multipart/form-data"> <form class="box" name="import" action="/import" method="post" enctype="multipart/form-data">
{% csrf_token %} {% csrf_token %}
<label class="label" for="source"> <div class="columns">
<p>{% trans "Data source" %}</p> <div class="column is-half">
<div class="select {{ class }}"> <label class="label" for="source">
<select name="source" id="source"> {% trans "Data source:" %}
<option value="GoodReads" {% if current == 'GoodReads' %}selected{% endif %}> </label>
GoodReads <div class="select block">
</option> <select name="source" id="source">
<option value="LibraryThing" {% if current == 'LibraryThing' %}selected{% endif %}> <option value="GoodReads" {% if current == 'GoodReads' %}selected{% endif %}>
LibraryThing GoodReads (CSV)
</option> </option>
</select> <option value="LibraryThing" {% if current == 'LibraryThing' %}selected{% endif %}>
LibraryThing (TSV)
</option>
</select>
</div>
<div class="field">
<label class="label" for="id_csv_field">{% trans "Data file:" %}</label>
{{ import_form.csv_file }}
</div>
</div> </div>
</label>
<div class="field"> <div class="column is-half">
{{ import_form.as_p }} <div class="field">
<label class="label">
<input type="checkbox" name="include_reviews" checked> {% trans "Include reviews" %}
</label>
</div>
<div class="field">
<label class="label">
<p>{% trans "Privacy setting for imported reviews:" %}</p>
{% include 'snippets/privacy_select.html' with no_label=True %}
</label>
</div>
</div> </div>
<div class="field">
<label class="label">
<input type="checkbox" name="include_reviews" checked> {% trans "Include reviews" %}
</label>
</div>
<div class="field">
<label class="label">
<p>{% trans "Privacy setting for imported reviews:" %}</p>
{% include 'snippets/privacy_select.html' with no_label=True %}
</label>
</div> </div>
<button class="button is-primary" type="submit">{% trans "Import" %}</button> <button class="button is-primary" type="submit">{% trans "Import" %}</button>
</form> </form>