|
@ -15,152 +15,155 @@ |
|
|
<hr/> |
|
|
<hr/> |
|
|
|
|
|
|
|
|
<div id="commform-div"> |
|
|
<div id="commform-div"> |
|
|
<form action='' onsubmit='save_scroll(this)' id="commform" method="POST"> |
|
|
<!-- Pridat korekturu / komentar !--> |
|
|
{% csrf_token %} |
|
|
<form action='' onsubmit='save_scroll(this)' id="commform" method="POST"> |
|
|
<input size="8" name="au" value="{{autor}}"/> |
|
|
{% csrf_token %} |
|
|
<input type=submit value="Oprav!"/> |
|
|
<input size="8" name="au" value="{{autor}}"/> |
|
|
<button type="button" onclick="close_commform()">Zavřít</button> |
|
|
<input type=submit value="Oprav!"/> |
|
|
<br/> |
|
|
<button type="button" onclick="close_commform()">Zavřít</button> |
|
|
<textarea onkeypress="textarea_onkey(event);" id="commform-text" cols=40 rows=10 name="txt"></textarea> |
|
|
<br/> |
|
|
<br/> |
|
|
<textarea onkeypress="textarea_onkey(event);" id="commform-text" cols=40 rows=10 name="txt"></textarea> |
|
|
<input type="hidden" size="3" name="pdf" value='{{pdf.id}}'/> |
|
|
<br/> |
|
|
<input type="hidden" size="3" id="commform-x" name="x"/> |
|
|
<input type="hidden" size="3" name="pdf" value='{{pdf.id}}'/> |
|
|
<input type="hidden" size="3" id="commform-y" name="y"/> |
|
|
<input type="hidden" size="3" id="commform-x" name="x"/> |
|
|
<input type="hidden" size="3" id="commform-img-id" name="img-id"/> |
|
|
<input type="hidden" size="3" id="commform-y" name="y"/> |
|
|
<input type="hidden" size="3" id="commform-id" name="id"/> |
|
|
<input type="hidden" size="3" id="commform-img-id" name="img-id"/> |
|
|
<input type="hidden" size="3" id="commform-action" name="action"/> |
|
|
<input type="hidden" size="3" id="commform-id" name="id"/> |
|
|
<input type="hidden" size="3" id="commform-action" name="scroll"/> |
|
|
<input type="hidden" size="3" id="commform-action" name="action"/> |
|
|
</form> |
|
|
<input type="hidden" size="3" id="commform-action" name="scroll"/> |
|
|
|
|
|
</form> |
|
|
|
|
|
<!-- /Pridat korekturu / komentar !--> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
{% for i in img_indexes %} |
|
|
{% for i in img_indexes %} |
|
|
<div class='imgdiv'><img width='1021' height='1448' onclick='img_click(this,event)' id='img-{{i}}' src='/media/korektury/img/{{img_name}}-{{i}}.png'/></div><hr/> |
|
|
<div class='imgdiv'> |
|
|
|
|
|
<img width='1021' height='1448' |
|
|
|
|
|
onclick='img_click(this,event)' id='img-{{i}}' |
|
|
|
|
|
src='/media/korektury/img/{{img_name}}-{{i}}.png'/> |
|
|
|
|
|
</div> |
|
|
|
|
|
<hr/> |
|
|
{% endfor %} |
|
|
{% endfor %} |
|
|
|
|
|
|
|
|
|
|
|
<!-- Smazat vsechny komentare !--> |
|
|
<form method="post"> |
|
|
<form method="post"> |
|
|
{% csrf_token %} |
|
|
{% csrf_token %} |
|
|
<input type='hidden' name='action' value='delall'/> |
|
|
<input type='hidden' name='action' value='delall'/> |
|
|
<input type='submit' value='Smazat všechny komentáře'/> |
|
|
<input type='submit' value='Smazat všechny komentáře'/> |
|
|
<input type='hidden' name='pdf' value='{{pdf.id}}'/> |
|
|
<input type='hidden' name='pdf' value='{{pdf.id}}'/> |
|
|
<input type='checkbox' name='yes'/> Souhlasím se smazáním všech kometářů |
|
|
<input type='checkbox' name='yes'/> Souhlasím se smazáním všech kometářů |
|
|
</form> |
|
|
</form> |
|
|
|
|
|
<!-- /Smazat vsechny komentare !--> |
|
|
<hr/> |
|
|
<hr/> |
|
|
|
|
|
<p> |
|
|
Děkujeme opravovatelům: {% for autor,pocet in zasluhy.items %} {{autor}}({{pocet}}) {% endfor %}<hr> |
|
|
Děkujeme opravovatelům: {% for autor,pocet in zasluhy.items %} {{autor}}({{pocet}}) {% endfor %}</p> |
|
|
|
|
|
<hr> |
|
|
|
|
|
|
|
|
|
|
|
{% for o in opravy %} |
|
|
{% for o in opravy %} |
|
|
<div onclick='img_click(this,event)' |
|
|
|
|
|
id='op{{o.id}}-pointer' |
|
|
<div onclick='img_click(this,event)' id='op{{o.id}}-pointer' class='pointer{%if o.status = 'opraveno' %}-done{% endif %}'> |
|
|
class='pointer{%if o.status = 'opraveno' %}-done{% endif %}'> |
|
|
</div> |
|
|
</div> |
|
|
<div name='op{{o.id}}' id='op{{o.id}}' |
|
|
<div name='op{{o.id}}' id='op{{o.id}}' |
|
|
class='box{%if o.status = 'opraveno' %}-done{% endif %}' |
|
|
class='box{%if o.status = 'opraveno' %}-done{% endif %}' |
|
|
onmouseover='box_onmouseover(this,{% if o.status = 'opraveno' %}1{% else %}0{% endif %})' |
|
|
onmouseover='box_onmouseover(this,{% if o.status = 'opraveno' %}1{% else %}0{% endif %})' |
|
|
onmouseout='box_onmouseout(this,{% if o.status = 'opraveno' %}1{% else %}0{% endif %})' > |
|
|
onmouseout='box_onmouseout(this,{% if o.status = 'opraveno' %}1{% else %}0{% endif %})' > |
|
|
|
|
|
|
|
|
<div class='corr-header'> |
|
|
|
|
|
<div class='author' id='op{{o.id}}-autor'>{{o.autor}}</div> |
|
|
|
|
|
<div class='float-right'> |
|
|
|
|
|
<form action='' onsubmit='save_scroll(this)' method='POST'> |
|
|
|
|
|
{% csrf_token %} |
|
|
|
|
|
<input type='hidden' name="au" value="{{autor}}"/> |
|
|
|
|
|
<input type='hidden' name='pdf' value='{{pdf.id}}'> |
|
|
|
|
|
<input type='hidden' name='id' value='{{o.id}}'> |
|
|
|
|
|
<input type='hidden' name='scroll'> |
|
|
|
|
|
{% if o.komentare %} |
|
|
|
|
|
<button name='action' value='del' type='button' |
|
|
|
|
|
title="Korekturu nelze smazat – už ji někdo okomentoval"> |
|
|
|
|
|
<img src="/static/korektury/imgs/delete-gr.png"/> |
|
|
|
|
|
</button> |
|
|
|
|
|
{% else %} |
|
|
|
|
|
<button type='submit' name='action' value='del' title='Smaž opravu'> |
|
|
|
|
|
<img src="/static/korektury/imgs/delete.png"/> |
|
|
|
|
|
</button> |
|
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
|
|
{% if o.status = 'opraveno' %} |
|
|
|
|
|
<button type='submit' name='action' value='undone' title='Označ jako neopravené'> |
|
|
|
|
|
<img src="/static/korektury/imgs/undo.png"/> |
|
|
|
|
|
</button> |
|
|
|
|
|
{% else %} |
|
|
|
|
|
<button type='submit' name='action' value='done' title='Označ jako opravené'> |
|
|
|
|
|
<img src="/static/korektury/imgs/check.png"/> |
|
|
|
|
|
</button> |
|
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
|
|
{% if o.komentare %} |
|
|
|
|
|
<button type='button' title="Korekturu nelze upravit – už ji někdo okomentoval"> |
|
|
|
|
|
<img src="/static/korektury/imgs/edit-gr.png"/> |
|
|
|
|
|
</button> |
|
|
|
|
|
{% else %} |
|
|
|
|
|
<button type='button' onclick='box_edit(this,"update");' title='Oprav opravu'> |
|
|
|
|
|
<img src="/static/korektury/imgs/edit.png"/> |
|
|
|
|
|
</button> |
|
|
|
|
|
{% endif %} |
|
|
|
|
|
<button type='button' onclick='box_edit(this, "comment");' title='Komentovat'> |
|
|
|
|
|
<img src="/static/korektury/imgs/comment.png"/> |
|
|
|
|
|
</button> |
|
|
|
|
|
|
|
|
|
|
|
<a href='#op{{o.id}}'><button type='button' title='Link na opravu'> |
|
|
<div class='corr-header'> |
|
|
<img src="/static/korektury/imgs/link.png"/> |
|
|
<div class='author' id='op{{o.id}}-autor'>{{o.autor}}</div> |
|
|
</button></a> |
|
|
<div class='float-right'> |
|
|
<button><a href='#TODO'> |
|
|
<!-- Existujici korektura !--> |
|
|
<img title='Další oprava' src="/static/korektury/imgs/next.png"/> |
|
|
<form action='' onsubmit='save_scroll(this)' method='POST'> |
|
|
</a></button> |
|
|
{% csrf_token %} |
|
|
|
|
|
<input type='hidden' name="au" value="{{autor}}"/> |
|
|
</form> |
|
|
<input type='hidden' name='pdf' value='{{pdf.id}}'> |
|
|
</div> |
|
|
<input type='hidden' name='id' value='{{o.id}}'> |
|
|
</div> |
|
|
<input type='hidden' name='scroll'> |
|
|
<div id='op{{o.id}}-text'>{{o.text}}</div> |
|
|
|
|
|
{% for k in o.komentare %} |
|
|
{% if o.komentare %} |
|
|
<hr> |
|
|
<button name='action' value='del' type='button' |
|
|
<div class='comment' id='k{{k.id}}'> |
|
|
title="Korekturu nelze smazat – už ji někdo okomentoval"> |
|
|
<div class='corr-header'> |
|
|
<img src="/static/korektury/imgs/delete-gr.png"/> |
|
|
<div class='author'>{{k.autor}}</div> |
|
|
</button> |
|
|
|
|
|
{% else %} |
|
|
|
|
|
<button type='submit' name='action' value='del' title='Smaž opravu'> |
|
|
|
|
|
<img src="/static/korektury/imgs/delete.png"/> |
|
|
|
|
|
</button> |
|
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
|
|
{% if o.status = 'opraveno' %} |
|
|
|
|
|
<button type='submit' name='action' value='undone' title='Označ jako neopravené'> |
|
|
|
|
|
<img src="/static/korektury/imgs/undo.png"/> |
|
|
|
|
|
</button> |
|
|
|
|
|
{% else %} |
|
|
|
|
|
<button type='submit' name='action' value='done' title='Označ jako opravené'> |
|
|
|
|
|
<img src="/static/korektury/imgs/check.png"/> |
|
|
|
|
|
</button> |
|
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
|
|
{% if o.komentare %} |
|
|
|
|
|
<button type='button' title="Korekturu nelze upravit – už ji někdo okomentoval"> |
|
|
|
|
|
<img src="/static/korektury/imgs/edit-gr.png"/> |
|
|
|
|
|
</button> |
|
|
|
|
|
{% else %} |
|
|
|
|
|
<button type='button' onclick='box_edit(this,"update");' title='Oprav opravu'> |
|
|
|
|
|
<img src="/static/korektury/imgs/edit.png"/> |
|
|
|
|
|
</button> |
|
|
|
|
|
{% endif %} |
|
|
|
|
|
<button type='button' onclick='box_edit(this, "comment");' title='Komentovat'> |
|
|
|
|
|
<img src="/static/korektury/imgs/comment.png"/> |
|
|
|
|
|
</button> |
|
|
|
|
|
</form> |
|
|
|
|
|
<!-- /Existujici korektura !--> |
|
|
|
|
|
<button type='button' title='Link na opravu'> |
|
|
|
|
|
<a href='#op{{o.id}}'> |
|
|
|
|
|
<img src="/static/korektury/imgs/link.png"/> |
|
|
|
|
|
</a> |
|
|
|
|
|
</button> |
|
|
|
|
|
<button> |
|
|
|
|
|
<a href='#TODO'> |
|
|
|
|
|
<img title='Další oprava' src="/static/korektury/imgs/next.png"/> |
|
|
|
|
|
</a> |
|
|
|
|
|
</button> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div id='op{{o.id}}-text'>{{o.text}}</div> |
|
|
|
|
|
|
|
|
|
|
|
{% for k in o.komentare %} |
|
|
|
|
|
<hr> |
|
|
|
|
|
<div class='comment' id='k{{k.id}}'> |
|
|
|
|
|
<div class='corr-header'> |
|
|
|
|
|
<div class='author'>{{k.autor}}</div> |
|
|
<div class="float-right"> |
|
|
<div class="float-right"> |
|
|
|
|
|
<!-- Komentar !--> |
|
|
<form action='' onsubmit='save_scroll(this)' method='POST'> |
|
|
<form action='' onsubmit='save_scroll(this)' method='POST'> |
|
|
{% csrf_token %} |
|
|
{% csrf_token %} |
|
|
<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'> |
|
|
<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> |
|
|
</form> |
|
|
</form> |
|
|
<button type='button' onclick='update_comment(this);' title='Uprav komentář'> |
|
|
<!-- /Komentar !--> |
|
|
<img src="/static/korektury/imgs/edit.png"/></button> |
|
|
<button type='button' onclick='update_comment(this);' title='Uprav komentář'> |
|
|
</div> |
|
|
<img src="/static/korektury/imgs/edit.png"/> |
|
|
</div> |
|
|
</button> |
|
|
<div id='kt{{k.id}}'>{{k.text}}</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
{% endfor %} |
|
|
<div id='kt{{k.id}}'>{{k.text}}</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
{% endfor %} |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
{% endfor %} |
|
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
{% endfor %} |
|
|
{% for o in opravy %} |
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
|
{% for o in opravy %} |
|
|
|
|
|
place_comments_one_div("img-{{o.strana}}", [["op{{o.id}}",{{o.x}},{{o.y}}]]); |
|
|
place_comments_one_div("img-{{o.strana}}", [["op{{o.id}}",{{o.x}},{{o.y}}]]); |
|
|
{% endfor %} |
|
|
{% endfor %} |
|
|
|
|
|
{% if scroll %} |
|
|
</script> |
|
|
window.scrollTo(0,{{scroll}}); |
|
|
|
|
|
{% endif %} |
|
|
|
|
|
</script> |
|
|
<form action='' onsubmit='save_scroll(this)' method='POST'> |
|
|
|
|
|
{% csrf_token %} |
|
|
|
|
|
{{ form_oprava.as_p }} |
|
|
|
|
|
<input type='submit' value='Odeslat'/> |
|
|
|
|
|
</form> |
|
|
|
|
|
{% if scroll %} |
|
|
|
|
|
<script> |
|
|
|
|
|
window.scrollTo(0,{{scroll}}); |
|
|
|
|
|
</script> |
|
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</body> |
|
|
</body> |
|
|
</html> |
|
|
</html> |
|
|