Uses help instead of tooltip for goodreads export info

This commit is contained in:
Mouse Reeve 2022-03-21 12:24:47 -07:00
parent 3f7afc9014
commit 34166b8a2f
2 changed files with 22 additions and 26 deletions

View file

@ -14,14 +14,12 @@
<div class="column is-half"> <div class="column is-half">
<div class="field"> <div class="field">
<label class="label is-pulled-left" for="source"> <label class="label" for="source">
{% trans "Data source:" %} {% trans "Data source:" %}
</label> </label>
{% include 'import/tooltip.html' with controls_text="goodreads-tooltip" %}
</div>
<div class="select block"> <div class="select">
<select name="source" id="source"> <select name="source" id="source" aria-describedby="desc_source">
<option value="Goodreads" {% if current == 'Goodreads' %}selected{% endif %}> <option value="Goodreads" {% if current == 'Goodreads' %}selected{% endif %}>
Goodreads (CSV) Goodreads (CSV)
</option> </option>
@ -36,6 +34,12 @@
</option> </option>
</select> </select>
</div> </div>
<p class="help" id="desc_source">
{% trans 'You can download your Goodreads data from the <a href="https://www.goodreads.com/review/import" target="_blank" rel="noopener noreferrer">Import/Export page</a> of your Goodreads account.' %}
</p>
</div>
<div class="field"> <div class="field">
<label class="label" for="id_csv_file">{% trans "Data file:" %}</label> <label class="label" for="id_csv_file">{% trans "Data file:" %}</label>
{{ import_form.csv_file }} {{ import_form.csv_file }}

View file

@ -1,8 +0,0 @@
{% extends 'components/tooltip.html' %}
{% load i18n %}
{% block tooltip_content %}
{% trans 'You can download your Goodreads data from the <a href="https://www.goodreads.com/review/import" target="_blank" rel="noopener noreferrer">Import/Export page</a> of your Goodreads account.' %}
{% endblock %}