Start switch to Bootstrap 5
- drop jQuery and fontawesome dependencies - add bootstrap5 and bootstrap-icons - update fonts mfizz - update base templates and the first set of other templates - replace blocktrans and trans with blocktranslate and translate to prepare for Django 4 - move hostingpakcage templates to hostingpackages/templates - update translations
This commit is contained in:
parent
5cf7ef7a23
commit
8e42cb9c18
124 changed files with 10873 additions and 4490 deletions
|
@ -2,33 +2,37 @@
|
|||
{% load i18n %}
|
||||
|
||||
{% block title %}{{ block.super }} - {% spaceless %}
|
||||
{% if user == customer %}
|
||||
{% blocktrans %}Delete Mail Address {{ mailaddress }}{% endblocktrans %}
|
||||
{% else %}
|
||||
{% blocktrans with full_name=customer.get_full_name %}Delete Mail Address {{ mailaddress }} of Customer {{ full_name }}{% endblocktrans %}
|
||||
{% endif %}
|
||||
{% if user == customer %}
|
||||
{% blocktranslate %}Delete Mail Address {{ mailaddress }}{% endblocktranslate %}
|
||||
{% else %}
|
||||
{% blocktranslate with full_name=customer.get_full_name trimmed %}
|
||||
Delete Mail Address {{ mailaddress }} of Customer {{ full_name }}
|
||||
{% endblocktranslate %}
|
||||
{% endif %}
|
||||
{% endspaceless %}{% endblock title %}
|
||||
|
||||
{% block page_title %}{% spaceless %}
|
||||
{% if user == customer %}
|
||||
{% blocktrans %}Delete Mail Address {{ mailaddress }}{% endblocktrans %}
|
||||
{% else %}
|
||||
{% blocktrans with full_name=customer.get_full_name %}Delete Mail Address {{ mailaddress }} of Customer {{ full_name }}{% endblocktrans %}
|
||||
{% endif %}
|
||||
{% if user == customer %}
|
||||
{% blocktranslate %}Delete Mail Address {{ mailaddress }}{% endblocktranslate %}
|
||||
{% else %}
|
||||
{% blocktranslate with full_name=customer.get_full_name trimmed %}
|
||||
Delete Mail Address {{ mailaddress }} of Customer {{ full_name }}
|
||||
{% endblocktranslate %}
|
||||
{% endif %}
|
||||
{% endspaceless %}{% endblock page_title %}
|
||||
|
||||
{% block content %}
|
||||
<div class="panel panel-warning">
|
||||
<div class="panel-body">
|
||||
{% blocktrans %}Do you really want to delete the mail address {{ mailaddress }}?{% endblocktrans %}
|
||||
</div>
|
||||
<div class="panel-body form">
|
||||
<form action="{% url 'delete_mailaddress' package=hostingpackage.id domain=maildomain.domain pk=mailaddress.id %}" method="post">
|
||||
{% csrf_token %}
|
||||
<input class="btn btn-warning" type="submit" value="{% trans "Yes, do it!" %}" />
|
||||
<a class="btn btn-default" href="{{ hostingpackage.get_absolute_url }}">{% trans "Cancel" %}</a>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock content %}
|
||||
|
||||
<div class="panel panel-warning">
|
||||
<div class="panel-body">{% blocktranslate trimmed %}
|
||||
Do you really want to delete the mail address {{ mailaddress }}?
|
||||
{% endblocktranslate %}</div>
|
||||
<div class="panel-body form">
|
||||
<form action="{% url 'delete_mailaddress' package=hostingpackage.id domain=maildomain.domain pk=mailaddress.id %}"
|
||||
method="post">
|
||||
{% csrf_token %}
|
||||
<input class="btn btn-warning" type="submit" value="{% translate "Yes, do it!" %}"/>
|
||||
<a class="btn btn-default" href="{{ hostingpackage.get_absolute_url }}">{% translate "Cancel" %}</a>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock content %}
|
|
@ -2,33 +2,35 @@
|
|||
{% load i18n crispy_forms_tags %}
|
||||
|
||||
{% block title %}{{ block.super }} - {% spaceless %}
|
||||
{% if user == customer %}
|
||||
{% blocktrans %}Add new Mail Address{% endblocktrans %}
|
||||
{% else %}
|
||||
{% blocktrans with full_name=customer.get_full_name %}
|
||||
Add new Mail Address for Customer {{ full_name }}
|
||||
{% endblocktrans %}
|
||||
{% endif %}
|
||||
{% if user == customer %}
|
||||
{% blocktranslate %}Add new Mail Address{% endblocktranslate %}
|
||||
{% else %}
|
||||
{% blocktranslate with full_name=customer.get_full_name trimmed %}
|
||||
Add new Mail Address for Customer {{ full_name }}
|
||||
{% endblocktranslate %}
|
||||
{% endif %}
|
||||
{% endspaceless %}{% endblock title %}
|
||||
|
||||
{% block page_title %}{% spaceless %}
|
||||
{% if user == customer %}
|
||||
{% blocktrans %}Add new Mail Address{% endblocktrans %}
|
||||
{% else %}
|
||||
{% blocktrans with full_name=customer.get_full_name %}
|
||||
Add new Mail Address for Customer {{ full_name }}
|
||||
{% endblocktrans %}
|
||||
{% endif %}
|
||||
{% if user == customer %}
|
||||
{% blocktranslate %}Add new Mail Address{% endblocktranslate %}
|
||||
{% else %}
|
||||
{% blocktranslate with full_name=customer.get_full_name trimmed %}
|
||||
Add new Mail Address for Customer {{ full_name }}
|
||||
{% endblocktranslate %}
|
||||
{% endif %}
|
||||
{% endspaceless %}{% endblock page_title %}
|
||||
|
||||
{% block content %}
|
||||
{% crispy form %}
|
||||
{% crispy form %}
|
||||
{% endblock content %}
|
||||
|
||||
{% block extra_js %}
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$('input[type=text]').first().focus();
|
||||
});
|
||||
</script>
|
||||
{% endblock extra_js %}
|
||||
<script type="text/javascript">
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
let passwordFields = document.querySelectorAll('input[type=text]');
|
||||
|
||||
passwordFields[0].focus();
|
||||
});
|
||||
</script>
|
||||
{% endblock extra_js %}
|
|
@ -2,25 +2,25 @@
|
|||
{% load i18n crispy_forms_tags %}
|
||||
|
||||
{% block title %}{{ block.super }} - {% spaceless %}
|
||||
{% if user == customer %}
|
||||
{% blocktrans %}Change target of Mail Address{% endblocktrans %}
|
||||
{% else %}
|
||||
{% blocktrans with full_name=customer.get_full_name %}
|
||||
Change target of Mail Address for Customer {{ full_name }}
|
||||
{% endblocktrans %}
|
||||
{% endif %}
|
||||
{% if user == customer %}
|
||||
{% blocktranslate %}Change target of Mail Address{% endblocktranslate %}
|
||||
{% else %}
|
||||
{% blocktranslate with full_name=customer.get_full_name trimmed %}
|
||||
Change target of Mail Address for Customer {{ full_name }}
|
||||
{% endblocktranslate %}
|
||||
{% endif %}
|
||||
{% endspaceless %}{% endblock title %}
|
||||
|
||||
{% block page_title %}{% spaceless %}
|
||||
{% if user == customer %}
|
||||
{% blocktrans %}Change target of Mail Address{% endblocktrans %}
|
||||
{% else %}
|
||||
{% blocktrans with full_name=customer.get_full_name %}
|
||||
Change target of Mail Address for Customer {{ full_name }}
|
||||
{% endblocktrans %}
|
||||
{% endif %}
|
||||
{% if user == customer %}
|
||||
{% blocktranslate %}Change target of Mail Address{% endblocktranslate %}
|
||||
{% else %}
|
||||
{% blocktranslate with full_name=customer.get_full_name trimmed %}
|
||||
Change target of Mail Address for Customer {{ full_name }}
|
||||
{% endblocktranslate %}
|
||||
{% endif %}
|
||||
{% endspaceless %}{% endblock page_title %}
|
||||
|
||||
{% block content %}
|
||||
{% crispy form %}
|
||||
{% crispy form %}
|
||||
{% endblock content %}
|
||||
|
|
|
@ -1,34 +1,47 @@
|
|||
{% extends "managemails/base.html" %}
|
||||
{% load i18n crispy_forms_tags %}
|
||||
{% block title %}{{ block.user }} - {% spaceless %}
|
||||
{% with full_name=customer.get_full_name package=hostingpackage.name %}
|
||||
{% if customer == user %}
|
||||
{% blocktrans %}Add Mailbox to Hosting Package {{ package }}{% endblocktrans %}
|
||||
{% else %}
|
||||
{% blocktrans %}Add Mailbox to Hosting Package {{ package }} of Customer {{ full_name }}{% endblocktrans %}
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
{% with full_name=customer.get_full_name package=hostingpackage.name %}
|
||||
{% if customer == user %}
|
||||
{% blocktranslate %}Add Mailbox to Hosting Package {{ package }}{% endblocktranslate %}
|
||||
{% else %}
|
||||
{% blocktranslate trimmed %}
|
||||
Add Mailbox to Hosting Package {{ package }} of Customer {{ full_name }}
|
||||
{% endblocktranslate %}
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
{% endspaceless %}{% endblock title %}
|
||||
{% block page_title %}{% spaceless %}
|
||||
{% with full_name=customer.get_full_name package=hostingpackage.name %}
|
||||
{% if customer == user %}
|
||||
{% blocktrans %}Add Mailbox to Hosting Package {{ package }}{% endblocktrans %}
|
||||
{% else %}
|
||||
{% blocktrans %}Add Mailbox to Hosting Package {{ package }} of Customer {{ full_name }}{% endblocktrans %}
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
{% with full_name=customer.get_full_name package=hostingpackage.name %}
|
||||
{% if customer == user %}
|
||||
{% blocktranslate %}Add Mailbox to Hosting Package {{ package }}{% endblocktranslate %}
|
||||
{% else %}
|
||||
{% blocktranslate trimmed %}
|
||||
Add Mailbox to Hosting Package {{ package }} of Customer {{ full_name }}
|
||||
{% endblocktranslate %}
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
{% endspaceless %}{% endblock page_title %}
|
||||
|
||||
{% block content %}
|
||||
<p>{% if customer == user %}{% trans "Please specify the password for your new mailbox." %}{% else %}{% trans "Please specify the password for the new mailbox." %}{% endif %}</p>
|
||||
{% crispy form %}
|
||||
<p>{% if customer == user %}
|
||||
{% translate "Please specify the password for your new mailbox." %}
|
||||
{% else %}
|
||||
{% translate "Please specify the password for the new mailbox." %}
|
||||
{% endif %}</p>
|
||||
{% crispy form %}
|
||||
{% endblock content %}
|
||||
|
||||
{% block extra_js %}
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$('input[type=password]').val('');
|
||||
$('input[type=password]').first().focus();
|
||||
});
|
||||
</script>
|
||||
{% endblock extra_js %}
|
||||
<script type="text/javascript">
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
let passwordFields = document.querySelectorAll("input[type=password]");
|
||||
|
||||
for (const fieldKey in passwordFields) {
|
||||
passwordFields[fieldKey].val('');
|
||||
}
|
||||
|
||||
passwordFields[0].focus();
|
||||
});
|
||||
</script>
|
||||
{% endblock extra_js %}
|
|
@ -1,34 +1,44 @@
|
|||
{% extends "managemails/base.html" %}
|
||||
{% load i18n crispy_forms_tags %}
|
||||
{% block title %}{{ block.user }} - {% spaceless %}
|
||||
{% with full_name=customer.get_full_name mailbox=mailbox.username %}
|
||||
{% if customer == user %}
|
||||
{% blocktrans %}Set Password for Mailbox {{ mailbox }}{% endblocktrans %}
|
||||
{% else %}
|
||||
{% blocktrans %}Set Password for Mailbox {{ mailbox }} of Customer {{ full_name }}{% endblocktrans %}
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
{% with full_name=customer.get_full_name mailbox=mailbox.username %}
|
||||
{% if customer == user %}
|
||||
{% blocktranslate %}Set Password for Mailbox {{ mailbox }}{% endblocktranslate %}
|
||||
{% else %}
|
||||
{% blocktranslate trimmed %}
|
||||
Set Password for Mailbox {{ mailbox }} of Customer {{ full_name }}
|
||||
{% endblocktranslate %}
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
{% endspaceless %}{% endblock title %}
|
||||
{% block page_title %}{% spaceless %}
|
||||
{% with full_name=customer.get_full_name mailbox=mailbox.username %}
|
||||
{% if customer == user %}
|
||||
{% blocktrans %}Set Password for Mailbox {{ mailbox }}{% endblocktrans %}
|
||||
{% else %}
|
||||
{% blocktrans %}Set Password for Mailbox {{ mailbox }} of Customer {{ full_name }}{% endblocktrans %}
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
{% with full_name=customer.get_full_name mailbox=mailbox.username %}
|
||||
{% if customer == user %}
|
||||
{% blocktranslate %}Set Password for Mailbox {{ mailbox }}{% endblocktranslate %}
|
||||
{% else %}
|
||||
{% blocktranslate trimmed %}
|
||||
Set Password for Mailbox {{ mailbox }} of Customer {{ full_name }}
|
||||
{% endblocktranslate %}
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
{% endspaceless %}{% endblock page_title %}
|
||||
|
||||
{% block content %}
|
||||
<p>{% if customer == user %}{% trans "Please specify the new password for your mailbox." %}{% else %}{% trans "Please specify the new password for the mailbox." %}{% endif %}</p>
|
||||
{% crispy form %}
|
||||
<p>{% if customer == user %}{% translate "Please specify the new password for your mailbox." %}{% else %}
|
||||
{% translate "Please specify the new password for the mailbox." %}{% endif %}</p>
|
||||
{% crispy form %}
|
||||
{% endblock content %}
|
||||
|
||||
{% block extra_js %}
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$('input[type=password]').val('');
|
||||
$('input[type=password]').first().focus();
|
||||
});
|
||||
</script>
|
||||
{% endblock extra_js %}
|
||||
<script type="text/javascript">
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
let passwordFields = document.querySelectorAll('input[type=password]');
|
||||
|
||||
for (const passwordFieldsKey in passwordFields) {
|
||||
passwordFields[passwordFieldsKey].val('');
|
||||
}
|
||||
|
||||
passwordFields[0].focus();
|
||||
});
|
||||
</script>
|
||||
{% endblock extra_js %}
|
Loading…
Add table
Add a link
Reference in a new issue