Form remember last entered values

This commit is contained in:
2017-07-23 12:54:12 +02:00
parent b7c382a1a8
commit 9ff8f02a45
4 changed files with 61 additions and 19 deletions

View File

@ -1,3 +1,4 @@
{% from "core/macros.jinja" import user_mini_profile, paginate %}
{% extends "core/base.jinja" %}
{% block title %}
@ -5,11 +6,33 @@
{% endblock %}
{% block content %}
<style type="text/css">
.matmat_user {
/*position: absolute;*/
display: inline-block;
width: 240px;
height: 191px;
top: 6px;
left: 6px;
overflow: hidden;
border-width: 3px;
border-style: solid;
border-color: black;
}
</style>
{% if object_list.exists() %}
<h2>{% trans %}User found{% endtrans %}</h2>
{% for user in object_list %}
{{ user }}
<div class="matmat_user">
<a href="{{ url("core:user_profile", user_id=user.id) }}">
{{ user_mini_profile(user) }}
</a>
</div>
{% endfor %}
<br><br>
{{ paginate(page_obj, paginator) }}
{% endif %}
<h2>{% trans %}Search user{% endtrans %}</h2>
<h3>{% trans %}Search by profile{% endtrans %}</h3>