mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
snapshots: Place the subsubmenu below the description
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
3c68a52056
commit
7ee3c96abc
4 files changed
+75
-12
No files matched your search
@@ -1,4 +1,4 @@
|
||||
{% extends "simple_service.html" %}
|
||||
{% extends "service-subsubmenu.html" %}
|
||||
{% comment %}
|
||||
#
|
||||
# This file is part of FreedomBox.
|
||||
@@ -22,7 +22,6 @@
|
||||
{% load i18n %}
|
||||
|
||||
{% block configuration %}
|
||||
|
||||
<form class="form-horizontal" method="post">
|
||||
{% csrf_token %}
|
||||
<h3>{% trans "Configuration" %}</h3>
|
||||
@@ -30,5 +29,4 @@
|
||||
<input type="submit" class="btn btn-primary" name="update"
|
||||
value="{% trans "Update setup" %}"/>
|
||||
</form>
|
||||
|
||||
{% endblock %}
|
||||
@@ -1,4 +1,4 @@
|
||||
{% extends "simple_service.html" %}
|
||||
{% extends "service-subsubmenu.html" %}
|
||||
{% comment %}
|
||||
#
|
||||
# This file is part of FreedomBox.
|
||||
@@ -21,8 +21,7 @@
|
||||
{% load bootstrap %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block content %}
|
||||
{% block configuration %}
|
||||
{% block configuration %}
|
||||
<form class="form" method="post">
|
||||
<div class="button-table">
|
||||
|
||||
@@ -83,7 +82,6 @@
|
||||
</div>
|
||||
</form>
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
||||
{% block page_js %}
|
||||
<script>
|
||||
|
||||
@@ -81,11 +81,15 @@ def manage(request):
|
||||
has_deletable_snapshots = any(
|
||||
[snapshot for snapshot in snapshots[1:] if not snapshot['is_default']])
|
||||
|
||||
return TemplateResponse(request, 'snapshot_manage.html', {
|
||||
'snapshots': snapshots,
|
||||
'has_deletable_snapshots': has_deletable_snapshots,
|
||||
'subsubmenu': subsubmenu,
|
||||
})
|
||||
return TemplateResponse(
|
||||
request, 'snapshot_manage.html', {
|
||||
'title': snapshot_module.name,
|
||||
'description': snapshot_module.description,
|
||||
'manual_page': snapshot_module.manual_page,
|
||||
'snapshots': snapshots,
|
||||
'has_deletable_snapshots': has_deletable_snapshots,
|
||||
'subsubmenu': subsubmenu,
|
||||
})
|
||||
|
||||
|
||||
def update_configuration(request, old_status, new_status):
|
||||
|
||||
Reference in new issue
Block a user