forked from gergely/calendar-social
[Refactor] Create a base settings page
This will make it easier to add new settings pages for e.g. privacy settings, applications, etc. later.
This commit is contained in:
parent
7b935afdad
commit
1a69928241
10
calsocial/templates/settings-base.html
Normal file
10
calsocial/templates/settings-base.html
Normal file
@ -0,0 +1,10 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block content %}
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="{{ url_for('edit_profile') }}">{% trans %}Edit profile{% endtrans %}</a></li>
|
||||
<li><a href="{{ url_for('settings') }}">{% trans %}Settings{% endtrans %}</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
{% endblock %}
|
@ -1,6 +1,8 @@
|
||||
{% extends 'base.html' %}
|
||||
{% extends 'settings-base.html' %}
|
||||
|
||||
{% block content %}
|
||||
{{ super() }}
|
||||
<h2>{% trans %}Settings{% endtrans %}</h2>
|
||||
<form method="post">
|
||||
{{ form.hidden_tag() }}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user