Skip to content

Commit

Permalink
Merge pull request #51 from yduman/user-story-47
Browse files Browse the repository at this point in the history
Logout button for dashboard
  • Loading branch information
ckleemann committed Mar 20, 2017
2 parents b4ef3a3 + c4641f5 commit 94abda9
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/templates/veranstalter/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@

{% block content %}

<h1><span class="header_veranst">{{ veranstaltung.name }} - </span>Dashboard</h1>
<h1>
<span class="header_veranst">{{ veranstaltung.name }} - </span>
Dashboard
</h1>

<a href="{% url 'veranstalter-logout' %}">Ausloggen</a>

<p class="subHeaderDashboard">Status</p>
<span class="borderLine">{{ veranstaltung.get_status_display }}</span>
Expand Down
8 changes: 8 additions & 0 deletions src/templates/veranstalter/logout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{% extends "bestellung_base.html" %}
{% block title %}
Logout
{% endblock %}

{% block content %}
<h1>Sie sind ausgeloggt</h1>
{% endblock %}
5 changes: 5 additions & 0 deletions src/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@
# Veranstalter-Views
urlpatterns += [
url(r'^veranstalter/login/$', feedback.views.veranstalter.login, name='veranstalter-login'),
url(r'^veranstalter/logout/$',
django.contrib.auth.views.logout,
{'template_name': "veranstalter/logout.html"},
name='veranstalter-logout'),

url(r'^veranstalter/bestellung', VeranstalterWizard.as_view(), name='veranstalter-bestellung'),
url(r'^veranstalter/', feedback.views.veranstalter.veranstalter_dashboard, name='veranstalter-index')
]
Expand Down

0 comments on commit 94abda9

Please sign in to comment.