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

View file

@ -32,6 +32,9 @@
<th> <th>
{% trans "Author" %} {% trans "Author" %}
</th> </th>
<th>
{% trans "Review" %}
</th>
<th> <th>
{% trans "Actions" %} {% trans "Actions" %}
</th> </th>
@ -52,7 +55,12 @@
<td> <td>
{{ item.normalized_data.authors }} {{ item.normalized_data.authors }}
</td> </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 %}"> <form class="pr-2" name="approve-{{ item.id }}" method="POST" action="{% url 'import-approve' job.id item.id %}">
{% csrf_token %} {% csrf_token %}
<button type="submit" class="button is-success"> <button type="submit" class="button is-success">
@ -68,6 +76,7 @@
<span class="is-sr-only-mobile">{% trans "Delete" %}</span> <span class="is-sr-only-mobile">{% trans "Delete" %}</span>
</button> </button>
</form> </form>
</div>
</td> </td>
</tr> </tr>
<tr> <tr>