62 lines
2.4 KiB
HTML
62 lines
2.4 KiB
HTML
{% load static %}
|
|
|
|
<div
|
|
id='op{{o.id}}-pointer'
|
|
class='pointer'
|
|
data-opravastatus="{{o.status}}"
|
|
>
|
|
</div>
|
|
<div name='op{{o.id}}' id='op{{o.id}}'
|
|
class='box'
|
|
data-opravastatus="{{o.status}}"
|
|
data-opravazobrazit="true"
|
|
data-opid="{{o.id}}"
|
|
onmouseover='oprava_onmouseover(this)'
|
|
onmouseout='oprava_onmouseout(this)'
|
|
>
|
|
|
|
<div class='corr-body'>
|
|
{% for k in o.komentare %}
|
|
{% include "korektury/korekturovatko/__komentar.html" %}
|
|
<hr>
|
|
{% endfor %}
|
|
</div>
|
|
<div class='corr-header'>
|
|
<span class='float-right'>
|
|
<span class='corr-buttons'>
|
|
<form action='' method='POST'>
|
|
{% csrf_token %}
|
|
<input type='hidden' name='id' value='{{o.id}}'>
|
|
|
|
<button style="display: none" type='submit' name='action' value='del' title='Smaž opravu'>
|
|
<img src="{% static "korektury/imgs/delete.png"%}"/>
|
|
</button>
|
|
<button type='submit' name='action' value='{{ o.STATUS.K_OPRAVE }}' title='Označ jako neopravené'>
|
|
<img src="{% static "korektury/imgs/undo.png"%}"/>
|
|
</button>
|
|
<button type='submit' name='action' value='{{ o.STATUS.OPRAVENO }}' title='Označ jako opravené'>
|
|
<img src="{% static "korektury/imgs/check.png"%}"/>
|
|
</button>
|
|
<button type='submit' name='action' value='{{ o.STATUS.NENI_CHYBA }}' title='Označ, že se nebude měnit'>
|
|
<img src="{% static "korektury/imgs/cross.png" %}"/>
|
|
</button>
|
|
<button type='submit' name='action' value='{{ o.STATUS.K_ZANESENI }}' title='Označ jako připraveno k zanesení'>
|
|
<img src="{% static "korektury/imgs/tex.png" %}"/>
|
|
</button>
|
|
</form>
|
|
|
|
<button type='button' value="notcomment" title='Korekturu nelze komentovat, protože už je uzavřená'>
|
|
<img src="{% static "korektury/imgs/comment-gr.png" %}"/>
|
|
</button>
|
|
<button type='button' value="comment" onclick='comment(this.parentElement.parentElement.parentElement.parentElement);' title='Komentovat'>
|
|
<img src="{% static "korektury/imgs/comment.png" %}"/>
|
|
</button>
|
|
|
|
</span>
|
|
<button type='button' onclick='toggle_visibility(this.parentElement.parentElement.parentElement);' title='Skrýt/Zobrazit'>
|
|
<img class='toggle-button' src="{% static "korektury/imgs/hide.png" %}"/>
|
|
</button>
|
|
|
|
</span>
|
|
</div>
|
|
</div>
|