Migrate partner_users to Bootstrap 4
-{% extends "base.html" %}
+{% extends "new_base.html" %}
{% load i18n %}
{% block content %}
+ {% include "header_partial_b4.html" %}
+ {% include "message_partial.html" %}
- <h1>
+ <div id="main-content">
+ <h1 class="mb-4">
{% comment %}Translators: This is the heading of a page listing editors who have applications for this partner. Don't translate {{ partner }}. {% endcomment %}
{% blocktranslate trimmed with partner=object.company_name %}
{{ partner }} approved users
{% if approved_applications|length > 0 %}
{% comment %}Translators: On the page listing approved users for a partner, this is the title of the section listing applications with the 'approved' status {% endcomment %}
- <h2>{% trans "Approved applications" %}</h2>
+ <h2 class="mb-4">{% trans "Approved applications" %}</h2>
<div class="table-responsive">
<table class="table table-sm">
<thead>
<tbody>
{% for application in approved_applications %}
<tr>
- <td><a href="https://meta.wikimedia.org/wiki/User:{{ application.editor.wp_username }}">
+ <td><a class="twl-links" href="https://meta.wikimedia.org/wiki/User:{{ application.editor.wp_username }}">
{{ application.editor.wp_username }}
</a></td>
<td>{{ application.editor.user.email }}</td>
- <td><a href="{% url 'applications:evaluate' pk=application.pk %}">
+ <td><a class="twl-links" href="{% url 'applications:evaluate' pk=application.pk %}">
{% comment %}Translators: Denotes whether an application was imported to the platform, because it was submitted before the library card was launched. {% endcomment %}
{% if application.imported %}<i>{% trans "Imported" %}</i>{% else %}{{ application.date_created }}{% endif %}
</a></td>
{% if sent_applications|length > 0 %}
{% comment %}Translators: On the page listing approved users for a partner, this is the title of the section listing applications with the 'sent' status {% endcomment %}
- <h2>{% trans "Sent applications" %}</h2>
+ <h2 class="mb-4">{% trans "Sent applications" %}</h2>
<div class="table-responsive">
<table class="table table-sm">
<thead>
<tbody>
{% for application in sent_applications %}
<tr>
- <td><a href="https://meta.wikimedia.org/wiki/User:{{ application.editor.wp_username }}">
+ <td><a class="twl-links" href="https://meta.wikimedia.org/wiki/User:{{ application.editor.wp_username }}">
{{ application.editor.wp_username }}
</a></td>
<td>{{ application.editor.user.email }}</td>
- <td><a href="{% url 'applications:evaluate' pk=application.pk %}">
+ <td><a class="twl-links" href="{% url 'applications:evaluate' pk=application.pk %}">
{% comment %}Translators: Denotes whether an application was imported to the platform, because it was submitted before the library card was launched. {% endcomment %}
{% if application.imported %}<i>{% trans "Imported" %}</i>{% else %}{{ application.date_created }}{% endif %}
</a></td>
</table>
</div>
{% endif %}
+ </div>
{% endblock content %}
