Forms | Prace na vkladani reseni.

This commit is contained in:
Tomas "Jethro" Pokorny 2020-02-05 23:59:21 +01:00
parent a674d837ae
commit e63253f848
2 changed files with 6 additions and 2 deletions

View file

@ -9,9 +9,13 @@
{% block content %}
<h1>
{% block nadpis1a %}{% block nadpis1b %}
Přihláška do semináře
Vložit řešení
{% endblock %}{% endblock %}
</h1>
<form action="{% url 'seminar_vloz_reseni' %}" method="post">
{% csrf_token %}
{{form.as_p}}
<input type="submit" value="Vložit">
</form>
{% endblock %}

View file

@ -117,7 +117,7 @@ urlpatterns = [
path('auth/resitel_edit', views.resitelEditView, name='seminar_resitel_edit'),
path('temp/add_solution', views.AddSolutionView.as_view()),
path('temp/add_solution', views.AddSolutionView.as_view(),name='seminar_vloz_reseni'),
path('', views.TitulniStranaView.as_view(), name='titulni_strana'),