Skip to content
Snippets Groups Projects
Commit d4d48277 authored by Hanna Olsson's avatar Hanna Olsson
Browse files

Comments and deleted test file and the URL to topbar

parent 0803f140
No related branches found
No related tags found
1 merge request!30Tested using the topbar in a test file. The explanation for how to use the...
<!-- Create organization -->
{% extends "topbar.html" %}
<!---->
{% block title %}Skapa din organisation{% endblock %}
<!---->
{% block pagetitle %}Skapa din organisation{% endblock %}
<!-- Content block -->
{% block page_content %}
<!---->
<!-- To test this, switch to create_org.html in views.py -->
<div class="create-container">
<!-- This form sends the input data to the server using a POST request -->
<form class="create-form" action="..." method="POST">
<label for="name">Organisationsnamn:</label>
<input type="text" id="name" name="name" placeholder="Namn" required />
<label for="name">Ditt namn:</label>
<input type="text" id="name" name="name" placeholder="Namn" required />
<label for="email">Din mejladress:</label>
<input
type="email"
id="email"
name="email"
placeholder="Mejladress"
required
/>
<label for="password">Lösenord:</label>
<input
type="password"
id="password"
name="password"
placeholder="Lösenord"
required
/>
<button type="submit">Skapa ny organisation</button>
</form>
</div>
{% endblock %}
......@@ -7,7 +7,7 @@ To extend this template, you need to do following code:
{% extends "topbar.html" %}
{% block title %}
(Text for the title of the page)
(Text for the title that should be used in <title>...</title>)
{% endblock %}
{% block pagetitle %}
......@@ -22,10 +22,13 @@ To extend this template, you need to do following code:
{%endcomment%} -->
<!-- The title for <title>...</title> needs to be given by the extending template. -->
{% block title %}{% endblock %}
<!---->
<!-- Implementation of the topbar -->
{% block content %}
<div class="topbar">
<!-- Code for the logo -->
<div class="topbar-logo">
<a href="#home"
><img
......@@ -35,14 +38,18 @@ To extend this template, you need to do following code:
/></a>
</div>
<!-- The title in the topbar needs to be sent from the extending template. -->
<div class="pagetitle">{% block pagetitle %}{% endblock %}</div>
<!-- Code for the menu -->
<div class="menu">
<a href="javascript:void(0);" onclick="openPanel()"></a>
</div>
<!-- Including the code for the sidepanel -->
{% include 'sidepanel.html' %}
</div>
<!-- The page's content need to be implemented in the extending template. -->
<div class="wrapper">{% block page_content %}{% endblock %}</div>
{% endblock %}
......@@ -19,8 +19,6 @@ urlpatterns = [
path("my-org/", views.my_org_view, name="my_org"),
path("my-results/", views.my_results_view, name="my_results"),
path("my-surveys/", views.my_surveys_view, name="my_surveys"),
# path("topbar/", views.topbar, name="topbar"),
path("test_topbar/", views.test_topbar, name="test_topbar"),
path("publish-survey/", views.publish_survey_view, name="publish_survey"),
path("settings-admin/", views.settings_admin_view, name="settings_admin"),
path("settings-user/", views.settings_user_view, name="settings_user"),
......
......@@ -60,17 +60,6 @@ def my_surveys_view(request):
return render(request, "my_surveys.html")
def test_topbar(request):
return render(request, "test_topbar.html")
# def topbar(request):
# context = {
# "pagetitle": "Topbar",
# }
# return render(request, "topbar.html", context)
def publish_survey_view(request):
return render(request, "publish_survey.html")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment