templates: use m-5 CSS class for every form

Use m-5 class instead of mx-5 CSS class for every main view form.
m-5 adds padding to all the borders while mx-5 only adds padding
for the x axis causing elements to be too close to the top and
bottom of the form.
master
Alejandro Sirgo Rica 2025-02-07 10:36:07 +01:00
parent 00be07352d
commit 9bb40d267f
32 changed files with 34 additions and 33 deletions

View File

@ -14,7 +14,7 @@
action=url_for('action_center_add'),
method='post',
button_map={'submit': 'primary'},
extra_classes="mx-5") }}
extra_classes="m-5") }}
{% endblock %}

View File

@ -14,7 +14,7 @@
action=url_for('action_room_add'),
method='post',
button_map={'submit': 'primary'},
extra_classes="mx-5") }}
extra_classes="m-5") }}
{% endblock %}

View File

@ -12,6 +12,7 @@
{{ wtf.quick_form(form,
action=url_for('server_add_post'),
method='post',
button_map={'submit_btn':'primary'}) }}
button_map={'submit_btn':'primary'},
extra_classes="m-5") }}
{% endblock %}

View File

@ -13,6 +13,6 @@
{{ wtf.quick_form(form,
method='post',
button_map={'submit': 'primary'},
extra_classes="mx-5") }}
extra_classes="m-5") }}
{% endblock %}

View File

@ -13,6 +13,6 @@
{{ wtf.quick_form(form,
method='post',
button_map={'submit': 'primary'},
extra_classes="mx-5") }}
extra_classes="m-5") }}
{% endblock %}

View File

@ -14,6 +14,6 @@
{{ wtf.quick_form(form,
method='post',
button_map={'submit': 'primary'},
extra_classes="mx-5") }}
extra_classes="m-5") }}
{% endblock %}

View File

@ -20,6 +20,6 @@
{{ wtf.quick_form(form,
method='post',
button_map={'submit': 'primary'},
extra_classes="mx-5") }}
extra_classes="m-5") }}
{% endblock %}

View File

@ -45,7 +45,7 @@
action=url_for('action_center_delete'),
method='post',
button_map={'submit': 'primary'},
extra_classes="mx-5") }}
extra_classes="m-5") }}
{% endblock %}

View File

@ -21,7 +21,7 @@
action=url_for('action_client_delete'),
method='post',
button_map={'submit': 'primary'},
extra_classes="mx-5") }}
extra_classes="m-5") }}
{% endblock %}

View File

@ -17,7 +17,7 @@
action=url_for('action_image_delete'),
method='post',
button_map={'submit': 'primary'},
extra_classes="mx-5") }}
extra_classes="m-5") }}
{% endblock %}

View File

@ -11,7 +11,7 @@
<h2 class="mx-5 subhead-heading">{{_('Delete repo')}}</h2>
<form class="form mx-5" method="POST">
<form class="form m-5" method="POST">
{{ form.hidden_tag() }}
{{ form.server() }}

View File

@ -48,7 +48,7 @@
action=url_for('action_room_delete'),
method='post',
button_map={'submit': 'primary'},
extra_classes="mx-5") }}
extra_classes="m-5") }}
{% endblock %}

View File

@ -16,7 +16,7 @@
action=url_for('server_delete_post'),
method='post',
button_map={'submit': 'primary'},
extra_classes="mx-5") }}
extra_classes="m-5") }}
{% endblock %}

View File

@ -13,7 +13,7 @@
{{ wtf.quick_form(form,
method='post',
button_map={'submit': 'primary'},
extra_classes="mx-5") }}
extra_classes="m-5") }}
{% endblock %}

View File

@ -45,6 +45,6 @@
{{ wtf.quick_form(form,
method='post',
button_map={'submit': 'danger'},
extra_classes="mx-5") }}
extra_classes="m-5") }}
{% endblock %}

View File

@ -13,7 +13,7 @@
{{ wtf.quick_form(form,
method='post',
button_map={'submit': 'primary'},
extra_classes="mx-5") }}
extra_classes="m-5") }}
{% endblock %}

View File

@ -16,7 +16,7 @@
action=url_for('action_hardware'),
method='post',
button_map={'refresh': 'primary'},
extra_classes='m-2')}}
extra_classes='m-5')}}
<table class="table table-striped">
<thead class="thead-dark">

View File

@ -8,7 +8,7 @@
<h2 class="mx-5 subhead-heading">{{_('Update image')}} {{ form.name.data }}</h2>
<form class="form mx-5" method="POST" action="{{ url_for('action_image_config') }}">
<form class="form m-5" method="POST" action="{{ url_for('action_image_config') }}">
{{ form.hidden_tag() }}
{{ form.image_id() }}

View File

@ -19,6 +19,6 @@
action=url_for('action_image_create'),
method='post',
button_map={'create': 'primary'},
extra_classes='mx-5') }}
extra_classes='m-5') }}
{% endblock %}

View File

@ -8,7 +8,7 @@
<h2 class="mx-5 subhead-heading">{{_('Image details')}}</h2>
<div class="container mx-5">
<div class="container m-5">
<form class="form" method="POST">
{{ form.hidden_tag() }}

View File

@ -14,6 +14,6 @@
action=url_for('action_clients_import_post'),
method='post',
button_map={'submit': 'primary'},
extra_classes="mx-5") }}
extra_classes="m-5") }}
{% endblock %}

View File

@ -21,7 +21,7 @@
action=url_for('action_poweroff'),
method='post',
button_map={'submit': 'primary'},
extra_classes="mx-5") }}
extra_classes="m-5") }}
{% endblock %}

View File

@ -21,7 +21,7 @@
action=url_for('action_reboot'),
method='post',
button_map={'submit': 'primary'},
extra_classes="mx-5") }}
extra_classes="m-5") }}
{% endblock %}

View File

@ -11,7 +11,7 @@
<h2 class="mx-5 subhead-heading">{{_('Repo details')}}</h2>
<form class="form mx-5" method="POST">
<form class="form m-5" method="POST">
{{ form.hidden_tag() }}
{{ form.server() }}

View File

@ -13,6 +13,6 @@
{{ wtf.quick_form(form,
method='post',
button_map={'submit': 'primary'},
extra_classes="mx-5") }}
extra_classes="m-5") }}
{% endblock %}

View File

@ -13,7 +13,7 @@
{{ wtf.quick_form(form,
method='post',
button_map={'submit': 'primary'},
extra_classes="mx-5") }}
extra_classes="m-5") }}
{% endblock %}

View File

@ -20,6 +20,6 @@
{{ wtf.quick_form(form,
method='post',
button_map={'submit': 'primary'},
extra_classes="mx-5") }}
extra_classes="m-5") }}
{% endblock %}

View File

@ -9,7 +9,7 @@
<h2 class="mx-5 subhead-heading">{{_('Update server')}}</h2>
<form class="form mx-5" method="POST">
<form class="form m-5" method="POST">
{{ form.hidden_tag() }}
{{ form.server_addr() }}

View File

@ -18,13 +18,13 @@
{% if os_groups|length > 0 %}
<p>
<p class="mx-5">
{% if os_groups|length > 1 %}
The selected clients have different installed OS:
{% endif %}
</p>
<form class="form-inline" method="POST" id="sessionForm">
<form class="form-inline m-5" method="POST" id="sessionForm">
<table class="table table-hover">
<thead class="thead-light">
<tr>

View File

@ -14,6 +14,6 @@
action=url_for('action_software'),
method='post',
button_map={'view': 'primary', 'update': 'primary'},
extra_classes="mx-5")}}
extra_classes="m-5")}}
{% endblock %}

View File

@ -13,6 +13,6 @@
action=url_for('user_delete_post'),
method='post',
button_map={'submit_btn':'primary'},
extra_classes="mx-5") }}
extra_classes="m-5") }}
{% endblock %}

View File

@ -1,6 +1,6 @@
{% if selected_disk is defined and setup_data is defined %}
<form class="form-inline mx-5" method="POST" id="setupForm">
<form class="form-inline m-5" method="POST" id="setupForm">
{{ disk_form.hidden_tag() }}
{{ disk_form.ips() }}