Preview review in import preview
This commit is contained in:
parent
c245ad09bb
commit
acc32d579e
@ -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 }}">
|
||||||
|
@ -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,22 +55,28 @@
|
|||||||
<td>
|
<td>
|
||||||
{{ item.normalized_data.authors }}
|
{{ item.normalized_data.authors }}
|
||||||
</td>
|
</td>
|
||||||
<td class="content is-flex">
|
<td>
|
||||||
<form class="pr-2" name="approve-{{ item.id }}" method="POST" action="{% url 'import-approve' job.id item.id %}">
|
<p>{% include 'snippets/stars.html' with rating=item.rating %}</p>
|
||||||
{% csrf_token %}
|
<p>{{ item.review|truncatechars:100 }}</p>
|
||||||
<button type="submit" class="button is-success">
|
</td>
|
||||||
<span class="icon icon-check" aria-hidden="true"></span>
|
<td>
|
||||||
<span class="is-sr-only-mobile">{% trans "Approve" %}</span>
|
<div class="content is-flex">
|
||||||
</button>
|
<form class="pr-2" name="approve-{{ item.id }}" method="POST" action="{% url 'import-approve' job.id item.id %}">
|
||||||
</form>
|
{% csrf_token %}
|
||||||
|
<button type="submit" class="button is-success">
|
||||||
|
<span class="icon icon-check" aria-hidden="true"></span>
|
||||||
|
<span class="is-sr-only-mobile">{% trans "Approve" %}</span>
|
||||||
|
</button>
|
||||||
|
</form>
|
||||||
|
|
||||||
<form name="delete-{{ item.id }}" method="POST" action="{% url 'import-delete' job.id item.id %}">
|
<form name="delete-{{ item.id }}" method="POST" action="{% url 'import-delete' job.id item.id %}">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<button type="submit" class="button is-danger is-light is-outlined">
|
<button type="submit" class="button is-danger is-light is-outlined">
|
||||||
<span class="icon icon-x" aria-hidden="true"></span>
|
<span class="icon icon-x" aria-hidden="true"></span>
|
||||||
<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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user