Add urls and views for navigation bar
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
<li><a href="#">Informes</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li ><a href="/kalenteri">{% trans "Event calendar" %}<span style="font-size:16px;" class="pull-right hidden-xs showopacity glyphicon glyphicon-th-list"></span></a></li>
|
||||
<li ><a href="/event_calendar">{% trans "Event calendar" %}<span style="font-size:16px;" class="pull-right hidden-xs showopacity glyphicon glyphicon-th-list"></span></a></li>
|
||||
<li ><a href="/international">{% trans "International" %}<span style="font-size:16px;" class="pull-right hidden-xs showopacity glyphicon glyphicon-tags"></span></a></li>
|
||||
<li ><a href="/sosso">{% trans "Sössö" %}</a></li>
|
||||
<li ><a href="/contact">{% trans "Contact" %}<span class="pull-right hidden-xs showopacity glyphicon glyphicon-book"></span></a></li>
|
||||
|
||||
@@ -14,6 +14,10 @@ from webapp.views import ohlhafv_list
|
||||
from webapp.views import guild_view
|
||||
from webapp.views import freshmen_view
|
||||
from webapp.views import jobs_view
|
||||
from webapp.views import event_calendar_view
|
||||
from webapp.views import international_view
|
||||
from webapp.views import sosso_view
|
||||
from webapp.views import contact_view
|
||||
|
||||
urlpatterns = [
|
||||
# main
|
||||
@@ -28,6 +32,10 @@ urlpatterns = [
|
||||
url(r'^about', about_view),
|
||||
url(r'^guild', guild_view),
|
||||
url(r'^freshmen', freshmen_view),
|
||||
url(r'^event_calendar', event_calendar_view),
|
||||
url(r'^international', international_view),
|
||||
url(r'^sosso', sosso_view),
|
||||
url(r'^contact', contact_view),
|
||||
|
||||
# corporate
|
||||
url(r'^jobs', jobs_view),
|
||||
|
||||
@@ -81,6 +81,30 @@ def jobs_view(request, *args, **kwargs):
|
||||
return render(request, "jobs.html", {})
|
||||
|
||||
|
||||
@require_http_methods(["GET"])
|
||||
def event_calendar_view(request, *args, **kwargs):
|
||||
"""Render "Event calendar" page."""
|
||||
return render(request, "event_calendar.html", {})
|
||||
|
||||
|
||||
@require_http_methods(["GET"])
|
||||
def international_view(request, *args, **kwargs):
|
||||
"""Render "International" page."""
|
||||
return render(request, "international.html", {})
|
||||
|
||||
|
||||
@require_http_methods(["GET"])
|
||||
def sosso_view(request, *args, **kwargs):
|
||||
"""Render "Sössö" page."""
|
||||
return render(request, "sosso.html", {})
|
||||
|
||||
|
||||
@require_http_methods(["GET"])
|
||||
def contact_view(request, *args, **kwargs):
|
||||
"""Render "Contact" page."""
|
||||
return render(request, "contact.html", {})
|
||||
|
||||
|
||||
@require_http_methods(["GET"])
|
||||
def ohlhafv_view(request, *args, **kwargs):
|
||||
"""Render Ohlhafv form page."""
|
||||
|
||||
Reference in New Issue
Block a user