@ -7,10 +7,10 @@
< script src = "{% static " korektury / opraf . js " % } " > < / script >
< script src = "{% static " korektury / opraf . js " % } " > < / script >
< title > Korektury {{pdf.nazev}}< / title >
< title > Korektury {{pdf.nazev}}< / title >
< / head >
< / head >
< body { % if pdf . status = 'zanaseni ' % } class = "comitting" { % elif pdf . status = 'zastarale ' % } class = "deprecated" { % endif % } onload = 'place_comments()' >
< body { % if pdf . status = = ' zanaseni ' % } class = "comitting" { % elif pdf . status = = ' zastarale ' % } class = "deprecated" { % endif % } onload = 'place_comments()' >
< h1 > Korektury {{pdf.nazev}}< / h1 >
< h1 > Korektury {{pdf.nazev}}< / h1 >
{% if pdf.status = 'zanaseni' %} < h2 > Probíhá zanášení korektur, zvažte, zda chcete přidávat nové < / h2 > {% endif %}
{% if pdf.status == 'zanaseni' %} < h2 > Probíhá zanášení korektur, zvažte, zda chcete přidávat nové < / h2 > {% endif %}
{% if pdf.status = 'zastarale' %} < h2 > Toto PDF je již zastaralé, nepřidávejte nové korektury < / h2 > {% endif %}
{% if pdf.status == 'zastarale' %} < h2 > Toto PDF je již zastaralé, nepřidávejte nové korektury < / h2 > {% endif %}
< i > {{pdf.komentar}}< / i >
< i > {{pdf.komentar}}< / i >
< br >
< br >
< i > Klikni na chybu, napiš komentář< / i > |
< i > Klikni na chybu, napiš komentář< / i > |
@ -60,11 +60,11 @@
{% csrf_token %}
{% csrf_token %}
< input type = 'hidden' name = 'action' value = 'set-state' / >
< input type = 'hidden' name = 'action' value = 'set-state' / >
< input type = 'hidden' name = 'pdf' value = '{{pdf.id}}' / >
< input type = 'hidden' name = 'pdf' value = '{{pdf.id}}' / >
< input type = "radio" name = "state" value = "adding" { % if pdf . status = 'pridavani ' % } checked { % endif % } > Přidávání korektur
< input type = "radio" name = "state" value = "adding" { % if pdf . status = = ' pridavani ' % } checked { % endif % } > Přidávání korektur
< br >
< br >
< input type = "radio" name = "state" value = "comitting" { % if pdf . status = 'zanaseni ' % } checked { % endif % } > Zanášení korektur
< input type = "radio" name = "state" value = "comitting" { % if pdf . status = = ' zanaseni ' % } checked { % endif % } > Zanášení korektur
< br >
< br >
< input type = "radio" name = "state" value = "deprecated" { % if pdf . status = 'zastarale ' % } checked { % endif % } > Zastaralé, nekorigovat
< input type = "radio" name = "state" value = "deprecated" { % if pdf . status = = ' zastarale ' % } checked { % endif % } > Zastaralé, nekorigovat
< br >
< br >
< input type = 'submit' value = 'Změnit stav PDF' / >
< input type = 'submit' value = 'Změnit stav PDF' / >
< / form >
< / form >
@ -81,12 +81,12 @@
{% for o in opravy %}
{% for o in opravy %}
< div onclick = 'img_click(this,event)'
< div onclick = 'img_click(this,event)'
id='op{{o.id}}-pointer'
id='op{{o.id}}-pointer'
class='pointer{%if o.status = 'opraveno' %}-done{% elif o.status = 'neni_chyba' %}-wontfix{% elif o.status = 'k_zaneseni' %}-ready{% endif %}'>
class='pointer{%if o.status == 'opraveno' %}-done{% elif o.status = = 'neni_chyba' %}-wontfix{% elif o.status = = 'k_zaneseni' %}-ready{% 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{% elif o.status = 'neni_chyba' %}-wontfix{% elif o.status = 'k_zaneseni' %}-ready{% endif %}'
class='box{%if o.status == 'opraveno' %}-done{% elif o.status = = 'neni_chyba' %}-wontfix{% elif o.status = = 'k_zaneseni' %}-ready{% endif %}'
onmouseover='box_onmouseover(this,{% if o.status = 'opraveno' %}"done"{% elif o.status = 'neni_chyba' %}"wontfix"{% elif o.status = 'k_zaneseni' %}"ready"{% else %}""{% endif %})'
onmouseover='box_onmouseover(this,{% if o.status == 'opraveno' %}"done"{% elif o.status = = 'neni_chyba' %}"wontfix"{% elif o.status = = 'k_zaneseni' %}"ready"{% else %}""{% endif %})'
onmouseout='box_onmouseout(this, {% if o.status = 'opraveno' %}"done"{% elif o.status = 'neni_chyba' %}"wontfix"{% elif o.status = 'k_zaneseni' %}"ready"{% else %}""{% endif %})'>
onmouseout='box_onmouseout(this, {% if o.status == 'opraveno' %}"done"{% elif o.status = = 'neni_chyba' %}"wontfix"{% elif o.status = = 'k_zaneseni' %}"ready"{% else %}""{% endif %})'>
< div class = 'corr-header' >
< div class = 'corr-header' >
< span class = 'author' id = 'op{{o.id}}-autor' > {{o.autor}}< / span >
< span class = 'author' id = 'op{{o.id}}-autor' > {{o.autor}}< / span >
@ -142,7 +142,7 @@
< img src = "{% static " korektury / imgs / edit . png " % } " / >
< img src = "{% static " korektury / imgs / edit . png " % } " / >
< / button >
< / button >
{% endif %}
{% endif %}
{% if o.status = 'opraveno' or o.status = 'neni_chyba' %}
{% if o.status == 'opraveno' or o.status = = 'neni_chyba' %}
< button type = 'button' title = 'Korekturu nelze komentovat, protože už je uzavřená' >
< button type = 'button' title = 'Korekturu nelze komentovat, protože už je uzavřená' >
< img src = "{% static " korektury / imgs / comment-gr . png " % } " / >
< img src = "{% static " korektury / imgs / comment-gr . png " % } " / >
< / button >
< / button >