Made language input as table

This commit is contained in:
Kristofers Solo 2023-04-08 01:00:28 +03:00
parent 7da126c2f0
commit b04757c176

View File

@ -4,7 +4,18 @@
{% block meta %}{% endblock %} {% block meta %}{% endblock %}
{% block content %} {% block content %}
<form method="post"> <form method="post">
{% csrf_token %}{{ project_form }} {% csrf_token %}
{{ project_form.as_p }}
<table>
{{ language_formset.management_form }}
{% for form in language_formset %}
<tr>
<td>{{ form.language.label_tag }}</td>
<td>{{ form.language }}</td>
<td>{{ form.percentage }}</td>
</tr>
{% endfor %}
</table>
<button type="submit">Post</button> <button type="submit">Post</button>
</form> </form>
{% endblock %} {% endblock %}