Start translation form

This commit is contained in:
Michal Čihař 2012-02-28 15:40:08 +01:00
parent 57868d5a50
commit 2bded08c45
2 changed files with 7 additions and 0 deletions

View File

@ -9,6 +9,12 @@
<p>{% blocktrans with unit.position as position %}Showing string {{ position }} out of {{ total }}.{% endblocktrans %}</p>
<form action="{{ unit.translation.get_translate_url }}" method="post">
{% csrf_token %}
<input type="hidden" name="type" value="{{ type }}" />
<input type="hidden" name="oldpos" value="{{ unit.pos }}" />
</form>
{% endblock %}

View File

@ -44,4 +44,5 @@ def translate(request, project, subproject, lang):
'title': '%s @ Weblate' % (obj.__unicode__()),
'unit': unit,
'total': total,
'type': rqtype,
}))