Preview review in import preview

This commit is contained in:
Mouse Reeve 2021-11-13 09:22:35 -08:00
parent c245ad09bb
commit acc32d579e
2 changed files with 31 additions and 15 deletions

View file

@ -84,6 +84,9 @@
<th>
{% trans "Author" %}
</th>
<th>
{% trans "Review" %}
</th>
<th>
{% trans "Book" %}
</th>
@ -107,6 +110,10 @@
<td>
{{ item.normalized_data.authors }}
</td>
<td>
<p>{% include 'snippets/stars.html' with rating=item.rating %}</p>
<p>{{ item.review|truncatechars:100 }}</p>
</td>
<td>
{% if item.book %}
<a href="{{ item.book.local_path }}">

View file

@ -32,6 +32,9 @@
<th>
{% trans "Author" %}
</th>
<th>
{% trans "Review" %}
</th>
<th>
{% trans "Actions" %}
</th>
@ -52,7 +55,12 @@
<td>
{{ item.normalized_data.authors }}
</td>
<td class="content is-flex">
<td>
<p>{% include 'snippets/stars.html' with rating=item.rating %}</p>
<p>{{ item.review|truncatechars:100 }}</p>
</td>
<td>
<div class="content is-flex">
<form class="pr-2" name="approve-{{ item.id }}" method="POST" action="{% url 'import-approve' job.id item.id %}">
{% csrf_token %}
<button type="submit" class="button is-success">
@ -68,6 +76,7 @@
<span class="is-sr-only-mobile">{% trans "Delete" %}</span>
</button>
</form>
</div>
</td>
</tr>
<tr>