|
|
@ -168,7 +168,7 @@ |
|
|
|
{% for k in o.komentare %} |
|
|
|
<hr> |
|
|
|
<div class='comment' id='k{{k.id}}'> |
|
|
|
<span class='corr-header'> |
|
|
|
<div class='corr-header'> |
|
|
|
<div class='author'>{{k.autor}}</div> |
|
|
|
<span class="float-right"> |
|
|
|
<!-- Komentar !--> |
|
|
@ -177,17 +177,30 @@ |
|
|
|
<input type='hidden' name='pdf' value='{{pdf.id}}'> |
|
|
|
<input type='hidden' name='id' value='{{k.id}}'> |
|
|
|
<input type='hidden' name='scroll'> |
|
|
|
{% if forloop.last %} |
|
|
|
<button type='submit' name='action' value='del-comment' title='Smaž komentář' |
|
|
|
onclick='return confirm("Opravdu smazat komentář?")'> |
|
|
|
<img src="{% static "korektury/imgs/delete.png" %}"/> |
|
|
|
</button> |
|
|
|
{% else %} |
|
|
|
<button name='action' value='del-comment' type='button' |
|
|
|
title="Komentář nelze smazat – existuje novější"> |
|
|
|
<img src="{% static "korektury/imgs/delete-gr.png"%}"/> |
|
|
|
</button> |
|
|
|
{% endif %} |
|
|
|
</form> |
|
|
|
<!-- /Komentar !--> |
|
|
|
{% if forloop.last %} |
|
|
|
<button type='button' onclick='update_comment(this);' title='Uprav komentář'> |
|
|
|
<img src="{% static "korektury/imgs/edit.png"%}"/> |
|
|
|
</button> |
|
|
|
{% else %} |
|
|
|
<button type='button' title="Komentář nelze upravit – existuje novější"> |
|
|
|
<img src="{% static "korektury/imgs/edit-gr.png" %}"/> |
|
|
|
</button> |
|
|
|
{% endif %} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</span> |
|
|
|
<div id='kt{{k.id}}'>{{k.text}}</div> |
|
|
|
</div> |
|
|
|
{% endfor %} |
|
|
|