aboutsummaryrefslogtreecommitdiffstats
path: root/accounts
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2022-01-02 21:54:05 +0100
committerAndrea Lepori <alepori@student.ethz.ch>2022-01-02 21:54:15 +0100
commit7ebd77702aa5681d6635ef20b6252ce3c7f234de (patch)
treedfab043f428bebb415c1edf60267726fc1fddbc4 /accounts
parentdisconnect oauth check validity (diff)
downloadscout-subs-7ebd77702aa5681d6635ef20b6252ce3c7f234de.tar.gz
scout-subs-7ebd77702aa5681d6635ef20b6252ce3c7f234de.zip
fix tabs in user settings
Diffstat (limited to '')
-rw-r--r--accounts/templates/accounts/index.html12
-rw-r--r--accounts/views.py4
2 files changed, 5 insertions, 11 deletions
diff --git a/accounts/templates/accounts/index.html b/accounts/templates/accounts/index.html
index 7cd287d..061da5d 100644
--- a/accounts/templates/accounts/index.html
+++ b/accounts/templates/accounts/index.html
@@ -11,15 +11,14 @@
<ul class="tabs tabs-transparent">
<li class="tab"><a class="active" href="#personal">Info Personali</a></li>
<li class="tab"><a href="#medic">Info Mediche</a></li>
- <li class="tab"><a href="#misc">Impostazioni</a></li>
- <li class="tab"><a href="#test">Woooo</a></li>
+ <li class="tab"><a href="#settings">Impostazioni</a></li>
</ul>
</div>
{% endblock%}
{% block content %}
<form action="{% url 'personal'%}" method="post" id="form1" enctype="multipart/form-data">
-<div "personal" class="row">
+<div id="personal" class="row">
<div class="col l8 offset-l2 s12">
<div class="card-panel">
<div class="row">
@@ -314,12 +313,7 @@
</div>
</div>
</div>
-<div id="test" class="row">
- <div class="col s12">
- Helloooooo
- </div>
-</div>
-<div id="misc" class="row">
+<div id="settings" class="row">
<div class="col l8 offset-l2 s12">
<div class="card-panel">
<div class="row">
diff --git a/accounts/views.py b/accounts/views.py
index 2b971b3..26d45fa 100644
--- a/accounts/views.py
+++ b/accounts/views.py
@@ -107,7 +107,7 @@ def oauth_disconnect(request):
usercode.midata_token = ""
usercode.save()
- return HttpResponseRedirect(reverse("personal") + "#misc")
+ return HttpResponseRedirect(reverse("personal") + "#settings")
# callback after acquiring token
@login_required
@@ -133,7 +133,7 @@ def auth_connect(request):
usercode.midata_token = token["access_token"]
usercode.save()
- return HttpResponseRedirect(reverse("personal") + "#misc")
+ return HttpResponseRedirect(reverse("personal") + "#settings")
@sensitive_variables("raw_passsword")
def signup(request):