Add styling for impersonate views

This commit is contained in:
Jan Dittberner 2023-04-22 12:56:05 +02:00
parent 9fbd608837
commit be1ed6ecea
2 changed files with 6 additions and 9 deletions

View file

@ -17,7 +17,7 @@
</ul> </ul>
{% endif %} {% endif %}
<p> <p class="mt-3">
<a href="{% url 'impersonate-search' %}">{% translate "Search users" %}</a> <a href="{% url 'impersonate-search' %}">{% translate "Search users" %}</a>
</p> </p>

View file

@ -7,18 +7,15 @@
{% block content %} {% block content %}
<form action="{% url 'impersonate-search' %}" method="GET"> <form action="{% url 'impersonate-search' %}" method="GET">
{{ redirect_field }} {{ redirect_field }}
<div class="form-group"> <div class="mb-3">
<label for="user-query">{% translate "Enter Search Query:" %}</label> <label for="user-query" class="form-label">{% translate "Enter Search Query:" %}</label>
<input type="text" name="q" id="user-query" class="form-control" <input type="text" name="q" id="user-query" class="form-control"
value="{% if query %}{{ query }}{% endif %}"> placeholder="{% translate "user name part" %}" value="{% if query %}{{ query }}{% endif %}">
</div> </div>
<button type="submit" class="btn btn-primary">{% translate "Search" %}</button> <button type="submit" class="btn btn-primary">{% translate "Search" %}</button>
<a class="btn btn-secondary" href="{% url 'impersonate-list' %}">{% translate "List all users" %}</a>
</form> </form>
<p>
<a href="{% url 'impersonate-list' %}">{% translate "List all users" %}</a>
</p>
<p> <p>
{% if query and page.object_list %} {% if query and page.object_list %}
<ul class="list-group"> <ul class="list-group">
@ -31,7 +28,7 @@
{% endif %} {% endif %}
</p> </p>
<p> <p class="mt-3">
{% if query and page.has_previous %} {% if query and page.has_previous %}
<a href="{% url 'impersonate-search' %}?page={{ page.previous_page_number }}&q={{ query|urlencode }}">Previous <a href="{% url 'impersonate-search' %}?page={{ page.previous_page_number }}&q={{ query|urlencode }}">Previous
Page</a> &nbsp; Page</a> &nbsp;