Browse Source

Merge branch 'matej-fix-korektury-komentare' into stable

remotes/origin/dev
Matěj Kocián 8 years ago
parent
commit
73d8ed51bf
  1. 17
      korektury/templates/korektury/opraf.html

17
korektury/templates/korektury/opraf.html

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

Loading…
Cancel
Save