@ -8,7 +8,7 @@
{{ nadpis }}
{% endblock %}
</h1>
<form action="{% url 'hromadne_pridani' %}" method="post">
<form action="{% url form_url %}" method="post">
{% csrf_token %}
<table class="form">
{{ form.as_table }}
@ -39,6 +39,7 @@ class HromadnePridaniView(FormView):
def get_context_data(self, **kwargs):
context = super().get_context_data()
context["nadpis"] = "Hromadné přidání úloh"
context["form_url"] = "hromadne_pridani"
return context
def form_valid(self, form):