mirror of
https://github.com/ae-utbm/sith.git
synced 2025-12-09 14:45:59 +00:00
make matmatronch form more readable
This commit is contained in:
@@ -143,6 +143,15 @@ form {
|
||||
line-height: 1;
|
||||
white-space: nowrap;
|
||||
|
||||
.fields-centered {
|
||||
padding: 10px 10px 0;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--nf-input-size) 10px;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.helptext {
|
||||
margin-top: .25rem;
|
||||
margin-bottom: .25rem;
|
||||
|
||||
@@ -114,15 +114,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
&-fields {
|
||||
padding: 10px 10px 0;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--nf-input-size) 10px;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
&-field {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
|
||||
@@ -114,7 +114,7 @@
|
||||
|
||||
|
||||
{# All fields #}
|
||||
<div class="profile-fields">
|
||||
<div class="fields-centered">
|
||||
{%- for field in form -%}
|
||||
{%- if field.name in ["quote","profile_pict","avatar_pict","scrub_pict","is_viewable","forum_signature"] -%}
|
||||
{%- continue -%}
|
||||
@@ -133,7 +133,7 @@
|
||||
</div>
|
||||
|
||||
{# Textareas #}
|
||||
<div class="profile-fields">
|
||||
<div class="fields-centered">
|
||||
{%- for field in [form.quote, form.forum_signature] -%}
|
||||
<div class="profile-field">
|
||||
{{ field.label_tag() }}
|
||||
|
||||
@@ -26,7 +26,11 @@
|
||||
{% endif %}
|
||||
<h2>{% trans %}Search user{% endtrans %}</h2>
|
||||
<form action="{{ url('matmat:search') }}" method="get">
|
||||
{{ form }}
|
||||
<input type="submit" value="{% trans %}Search{% endtrans %}" />
|
||||
<fieldset class="fields-centered">
|
||||
{{ form }}
|
||||
</fieldset>
|
||||
<div class="fields-centered">
|
||||
<input class="btn btn-blue" type="submit" value="{% trans %}Search{% endtrans %}" />
|
||||
</div>
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user