make matmatronch form more readable

This commit is contained in:
imperosol
2025-11-30 18:24:44 +01:00
parent 559a904e0d
commit 1a99f4096e
4 changed files with 17 additions and 13 deletions

View File

@@ -143,6 +143,15 @@ form {
line-height: 1; line-height: 1;
white-space: nowrap; 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 { .helptext {
margin-top: .25rem; margin-top: .25rem;
margin-bottom: .25rem; margin-bottom: .25rem;

View File

@@ -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 { &-field {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;

View File

@@ -114,7 +114,7 @@
{# All fields #} {# All fields #}
<div class="profile-fields"> <div class="fields-centered">
{%- for field in form -%} {%- for field in form -%}
{%- if field.name in ["quote","profile_pict","avatar_pict","scrub_pict","is_viewable","forum_signature"] -%} {%- if field.name in ["quote","profile_pict","avatar_pict","scrub_pict","is_viewable","forum_signature"] -%}
{%- continue -%} {%- continue -%}
@@ -133,7 +133,7 @@
</div> </div>
{# Textareas #} {# Textareas #}
<div class="profile-fields"> <div class="fields-centered">
{%- for field in [form.quote, form.forum_signature] -%} {%- for field in [form.quote, form.forum_signature] -%}
<div class="profile-field"> <div class="profile-field">
{{ field.label_tag() }} {{ field.label_tag() }}

View File

@@ -26,7 +26,11 @@
{% endif %} {% endif %}
<h2>{% trans %}Search user{% endtrans %}</h2> <h2>{% trans %}Search user{% endtrans %}</h2>
<form action="{{ url('matmat:search') }}" method="get"> <form action="{{ url('matmat:search') }}" method="get">
{{ form }} <fieldset class="fields-centered">
<input type="submit" value="{% trans %}Search{% endtrans %}" /> {{ form }}
</fieldset>
<div class="fields-centered">
<input class="btn btn-blue" type="submit" value="{% trans %}Search{% endtrans %}" />
</div>
</form> </form>
{% endblock %} {% endblock %}