Browse Source

Korektury: zobrazuj celé jméno autora

remotes/origin/opraf
Matěj Kocián 9 years ago
parent
commit
426e1cc569
  1. 2
      korektury/templates/korektury/opraf.html
  2. 3
      korektury/views.py

2
korektury/templates/korektury/opraf.html

@ -26,7 +26,7 @@
<!-- Pridat korekturu / komentar !-->
<form action='' onsubmit='save_scroll(this)' id="commform" method="POST">
{% csrf_token %}
<input size="8" name="au" value="{{user.username}}"/>
<input size="24" name="au" value="{{user.first_name}} {{user.last_name}}" readonly/>
<input type=submit value="Oprav!"/>
<button type="button" onclick="close_commform()">Zavřít</button>
<br/>

3
korektury/views.py

@ -30,7 +30,8 @@ class KorekturyView(generic.TemplateView):
q = request.POST
scroll = q.get('scroll')
autor = q.get('au')
print "autor:" + str(autor)
print "autor:" + unicode(autor)
if not autor:
autor = 'anonym'
if not scroll:

Loading…
Cancel
Save