Browse Source

Forms | Prace na vkladani reseni.

export_seznamu_prednasek
parent
commit
e63253f848
  1. 6
      seminar/templates/seminar/org/vloz_reseni.html
  2. 2
      seminar/urls.py

6
seminar/templates/seminar/org/vloz_reseni.html

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

2
seminar/urls.py

@ -117,7 +117,7 @@ urlpatterns = [
path('auth/resitel_edit', views.resitelEditView, name='seminar_resitel_edit'), 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'), path('', views.TitulniStranaView.as_view(), name='titulni_strana'),

Loading…
Cancel
Save