Commit 11ec259e authored by David Seaward's avatar David Seaward

clean up templates, add form skeleton

parent a33d70d4
from django.utils.translation import ugettext_lazy as _
from registration.forms import RegistrationForm as BaseRegistrationForm
from django.contrib.auth.forms import AuthenticationForm as BaseAuthenticationForm
from .models import User
class AuthenticationForm(BaseAuthenticationForm):
# this currently has no effect
def __init__(self, request=None, *args, **kwargs):
super(AuthenticationForm, self).__init__(request, *args, **kwargs)
self.fields["password"].label = _("Passphrase")
class RegistrationForm(BaseRegistrationForm):
email = None # override base definition to remove email field
......
......@@ -70,3 +70,4 @@ SPDX-License-Identifier: AGPL-3.0
</body>
</html>
......@@ -21,3 +21,4 @@
</section>
{% endblock %}
......@@ -8,3 +8,4 @@
{% block content %}
{% endblock %}
......@@ -8,3 +8,4 @@
{% block content %}
{% endblock %}
......@@ -54,7 +54,7 @@ SPDX-License-Identifier: AGPL-3.0
<h2>{% trans "Services" %}</h2>
<table style="border-collapse: collapse;">
<table>
<thead>
<tr>
......@@ -69,7 +69,7 @@ SPDX-License-Identifier: AGPL-3.0
{% for limit in limits %}
<tr>
<th style="text-align: left;">{{ limit.service_label() }}</th>
<th>{{ limit.service_label() }}</th>
<td>{{ limit.active_label() }}</td>
<td title="{{ limit.endpoint_full_label() }}">{{ limit.endpoint_short_label() }}</td>
<td>{{ limit.credit_label() }}</td>
......@@ -117,3 +117,4 @@ SPDX-License-Identifier: AGPL-3.0
</body>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment