multilingual_texts.html 628 Bytes
{% extends "base.html" %}
{% load i18n %}

{% block text-content %}
    <form action="" method="post">
        {% csrf_token %}
        <dl>
            {% for mt in multi_texts %}
                <dt>{{ mt.text_id }}</dt>
                {% for tr in mt.translatedtext_set.all %}
                    <dd>
                        {{ tr.language_code }}:
                        <input type="text" name="tr-{{ tr.id }}" value="{{ tr.text }}"/>
                    </dd>
                {% endfor %}
            {% endfor %}
        </dl>
        <p><button type="submit">{% trans 'Save' %}</button></p>
    </form>
{% endblock %}