mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-27 10:44:33 +00:00
- Introduce new API to mark an app that it can't be disabled. - Mark jsxc, storage, config, upgrade and firewall apps as can't be disabled. - Fixed functional tests - Replaced AppForm with forms.Form in all modules' forms.py. - Remove app.template.js. - Remove unused styles. - Remove app status checks in form_valid of Deluge, Diaspora, Matrix, Ejabberd, MediaWiki, Storage, Transmission, Quassel - Purge unused is_enabled context variables (Ikiwiki) - ejabberd: Minor cleanup in template - jsxc: Cleanup unneeded overrides - tahoe: Cleanup unnecessary overrides Tests performed: - For all apps affected, test enable/disable button works and submitting configuration form works: with changes updates message and without changes 'settings unchanged' message. - avahi - bind - cockpit - SKIP: coquelicot - datetime - deluge - SKIP: diaspora - ejabberd - gitweb - i2p - infinoted - ikiwiki - matrixsynapse - mediawiki - minetest - minidlna - mldonkey - mumble - pagekite - privoxy - quassel - radicale - roundcube - SKIP: samba - searx - SKIP: shaarli - shadowsocks - ssh - tahoe - transmission - FAIL: tt-rss (not installable) - wireguard - Deluge test that configuration changes when app is disabled work - Quassel test that setting the domain works when app is diabled - Transmission test that setting the domain works when app is diabled - Ikiwiki create form works properly - Enable/disable button appears as expected when enabled and when disabled - Enable/disable button works without Javascript - Functional tests work for affected apps, Tor and OpenVPN - AppForm is removed from developer documentation - Forms reference - Customizing tutorial - Test all apps using directory select form - Transmission - Deluge - Visit each template that overrides block configuration and ensure that it is loaded properly and the display is as expected. - All apps that use AppView that are not tested above should not have an enable/disable button. That is JSXC, update, config, firewall, storage, users. Signed-off-by: Alice Kile <buoyantair@protonmail.com> Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
88 lines
2.4 KiB
HTML
88 lines
2.4 KiB
HTML
{% extends "app.html" %}
|
|
{% comment %}
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
{% endcomment %}
|
|
|
|
{% load i18n %}
|
|
{% load bootstrap %}
|
|
|
|
{% block description %}
|
|
|
|
{% for paragraph in description %}
|
|
<p>{{ paragraph|safe }}</p>
|
|
{% endfor %}
|
|
|
|
<p>
|
|
{% url 'config:index' as index_url %}
|
|
{% blocktrans trimmed with domain_name=domain_name %}
|
|
The Tahoe-LAFS server domain is set to <b>{{ domain_name }}</b>.
|
|
Changing the FreedomBox domain name needs a reinstall of
|
|
Tahoe-LAFS and you WILL LOSE DATA. You can access Tahoe-LAFS at
|
|
<a href="https://{{domain_name}}:5678">https://{{domain_name}}:5678</a>.
|
|
{% endblocktrans %}
|
|
</p>
|
|
{% endblock %}
|
|
|
|
{% block configuration %}
|
|
{{ block.super }}
|
|
|
|
<h4>{% trans "Local introducer" %}</h4>
|
|
<table class="table table-bordered local-introducers">
|
|
<thead>
|
|
<tr>
|
|
<th>{% trans "Pet Name" %}</th>
|
|
<th> furl </th>
|
|
</tr>
|
|
</thead>
|
|
<tr>
|
|
<td class="introducer-pet-name">{{ local_introducer.0 }}</td>
|
|
<td class="introducer-furl">{{ local_introducer.1 }}</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<form class="form form-add-introducer" method="post"
|
|
action="{% url 'tahoe:add-introducer' %}">
|
|
{% csrf_token %}
|
|
<h4>{% trans "Add new introducer" %}</h4>
|
|
|
|
<div class="form-group">
|
|
<label>{% trans "Pet Name" %}:</label>
|
|
<input type="text" class="form-control" name="pet_name">
|
|
</div>
|
|
<div class="form-group">
|
|
<label>furl:</label>
|
|
<textarea class="form-control" rows="5" name="furl"></textarea>
|
|
</div>
|
|
<input type="submit" class="btn btn-primary"
|
|
value="{% trans "Add" %}"/>
|
|
</form>
|
|
|
|
<br/>
|
|
|
|
<h4>{% trans "Connected introducers" %}</h4>
|
|
<table class="table table-bordered connected-introducers">
|
|
<thead>
|
|
<tr>
|
|
<th>{% trans "Pet Name" %}</th>
|
|
<th> furl </th>
|
|
</tr>
|
|
</thead>
|
|
{% for introducer, furl in introducers %}
|
|
<tr>
|
|
<td class="introducer-pet-name">{{ introducer }}</td>
|
|
<td class="introducer-furl">{{ furl }}</td>
|
|
<td class="introducer-operations">
|
|
<form class="form form-remove" method="post"
|
|
action="{% url 'tahoe:remove-introducer' introducer %}">
|
|
{% csrf_token %}
|
|
<button type="submit" class="btn btn-danger">
|
|
{% trans "Remove" %}
|
|
</button>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
|
|
{% endblock %}
|