show add-keywords even if there are no keywords
parent
154701bea5
commit
551ea0e423
|
@ -431,8 +431,8 @@
|
|||
<div><a href="{% url merge work_id %}">Merge other works into this one</a></div>
|
||||
|
||||
{% endif %}
|
||||
{% if work.subjects.all.count > 0 %}
|
||||
<h4>Keywords</h4>
|
||||
{% if work.subjects.all.count > 0 %}
|
||||
<ul id="kw_list">
|
||||
{% for subject in work.subjects.all %}
|
||||
<li itemprop="keywords">{{ subject.name }}
|
||||
|
@ -442,12 +442,16 @@
|
|||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
No keywords yet.
|
||||
<ul id="kw_list"></ul>
|
||||
|
||||
{% endif %}
|
||||
{% if user.is_staff or user in work.last_campaign.managers.all %}
|
||||
<form method="POST" id="kw_add_form">{% csrf_token %}
|
||||
{{ kwform.add_kw }}<input type="hidden" name="kw_add" value="true"> <input type="submit" name="kw_add_fake" value="add keyword" id="kw_add_form_submit" />
|
||||
</form>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endifequal %}
|
||||
<h4>Editions</h4>
|
||||
{% if alert %}
|
||||
|
|
Loading…
Reference in New Issue