mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-06-17 11:10:23 +00:00
email_server: Refactor the home directory page
- Add a header to the page. - Move message outside the form. - Remove warning and strong emphasis. Since this is only content in the page. - Derive from regular base. - Drop unnecessary reference to bootstrap forms. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
af53064660
commit
910714d435
@ -1,27 +1,25 @@
|
||||
{# SPDX-License-Identifier: AGPL-3.0-or-later #}
|
||||
{% extends "email_form_base.html" %}
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% load bootstrap %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
{{ block.super }}
|
||||
<h1>Setup My Home</h1>
|
||||
|
||||
{% if not has_homedir %}
|
||||
<p>
|
||||
{% trans "You do not have a home directory." %}
|
||||
<span>
|
||||
{% trans "Create one to begin receiving emails." %}
|
||||
</span>
|
||||
</p>
|
||||
|
||||
<form action="{{ request.path }}" method="post">
|
||||
<div class="alert alert-warning" role="alert">
|
||||
<p>
|
||||
<strong>{% trans "You do not have a home directory." %}</strong>
|
||||
<span>
|
||||
{% trans "Create one to begin receiving emails." %}
|
||||
</span>
|
||||
</p>
|
||||
{% csrf_token %}
|
||||
<button class="btn btn-primary" type="submit" name="btn_mkhome">
|
||||
{% trans "Create home directory" %}
|
||||
</button>
|
||||
</div>
|
||||
{% csrf_token %}
|
||||
<button class="btn btn-primary" type="submit" name="btn_mkhome">
|
||||
{% trans "Create home directory" %}
|
||||
</button>
|
||||
</form>
|
||||
{% else %}
|
||||
<p>{% trans "Your home directory is ready to receive emails." %}</p>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user