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
|
@ -1,19 +1,19 @@
|
|||
{% extends "account/base.html" %}
|
||||
{% load i18n crispy_forms_tags %}
|
||||
{% block title %}{% trans "Account" %}{% endblock title %}
|
||||
{% block page_title %}{% trans "E-mail Addresses" %}{% endblock page_title %}
|
||||
{% block title %}{% translate "Account" %}{% endblock title %}
|
||||
{% block page_title %}{% translate "E-mail Addresses" %}{% endblock page_title %}
|
||||
|
||||
{% block content %}
|
||||
{% if user.emailaddress_set.all %}
|
||||
<p>{% trans 'The following e-mail addresses are associated with your account:' %}</p>
|
||||
<p>{% translate 'The following e-mail addresses are associated with your account:' %}</p>
|
||||
<form action="{% url 'account_email' %}" class="email_list" method="post">
|
||||
{% csrf_token %}
|
||||
<table class="table table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{% trans "Email address" %}</th>
|
||||
<th>{% trans "Verified" %}</th>
|
||||
<th>{% trans "Primary" %}</th>
|
||||
<th>{% translate "Email address" %}</th>
|
||||
<th>{% translate "Verified" %}</th>
|
||||
<th>{% translate "Primary" %}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
@ -22,14 +22,14 @@
|
|||
<td>{{ emailaddress.email }}</td>
|
||||
<td>
|
||||
{% if emailaddress.verified %}
|
||||
<span class="verified">{% trans "Verified" %}</span>
|
||||
<span class="verified">{% translate "Verified" %}</span>
|
||||
{% else %}
|
||||
<span class="unverified">{% trans "Unverified" %}</span>
|
||||
<span class="unverified">{% translate "Unverified" %}</span>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>
|
||||
{% if emailaddress.primary %}
|
||||
<span class="glyphicon glyphicon-star" title="{% trans "This is the current primary Email address" %}"></span>
|
||||
<span class="glyphicon glyphicon-star" title="{% translate "This is the current primary Email address" %}"></span>
|
||||
{% else %}
|
||||
<span class="glyphicon glyphicon-star-empty"></span>
|
||||
{% endif %}
|
||||
|
@ -40,28 +40,28 @@
|
|||
</tbody>
|
||||
</table>
|
||||
<p>
|
||||
<button class="btn btn-default" type="submit" name="action_primary" >{% trans 'Make Primary' %}</button>
|
||||
<button class="btn btn-default" type="submit" name="action_send" >{% trans 'Re-send Verification' %}</button>
|
||||
<button class="btn btn-warning" type="submit" name="action_remove" >{% trans 'Remove' %}</button>
|
||||
<button class="btn btn-default" type="submit" name="action_primary" >{% translate 'Make Primary' %}</button>
|
||||
<button class="btn btn-default" type="submit" name="action_send" >{% translate 'Re-send Verification' %}</button>
|
||||
<button class="btn btn-warning" type="submit" name="action_remove" >{% translate 'Remove' %}</button>
|
||||
</p>
|
||||
</form>
|
||||
{% else %}
|
||||
<p class="text-warning"><strong>{% trans 'Warning:'%}</strong> {% trans "You currently do not have any e-mail address set up. You should really add an e-mail address so you can receive notifications, reset your password, etc." %}</p>
|
||||
<p class="text-warning"><strong>{% translate 'Warning:'%}</strong> {% translate "You currently do not have any e-mail address set up. You should really add an e-mail address so you can receive notifications, reset your password, etc." %}</p>
|
||||
{% endif %}
|
||||
|
||||
<h2>{% trans "Add E-mail Address" %}</h2>
|
||||
<h2>{% translate "Add E-mail Address" %}</h2>
|
||||
|
||||
<form method="post" action="{% url 'account_email' %}" class="add_email">
|
||||
{% csrf_token %}
|
||||
{{ form | crispy }}
|
||||
<button name="action_add" type="submit" class="btn btn-primary">{% trans "Add E-mail" %}</button>
|
||||
<button name="action_add" type="submit" class="btn btn-primary">{% translate "Add E-mail" %}</button>
|
||||
</form>
|
||||
{% endblock content %}
|
||||
|
||||
{% block extra_js %}
|
||||
<script type="text/javascript">
|
||||
(function() {
|
||||
var message = "{% trans 'Do you really want to remove the selected e-mail address?' %}";
|
||||
var message = "{% translate 'Do you really want to remove the selected e-mail address?' %}";
|
||||
var actions = document.getElementsByName('action_remove');
|
||||
if (actions.length) {
|
||||
actions[0].addEventListener("click", function(e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue