Skip to content

Commit 291da34

Browse files
committed
Enhance responsive layout for multi-update form (PR #355)
1 parent b2ec533 commit 291da34

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

CHANGES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ CHANGELOG
44
8.16.1+dev (XXXX-XX-XX)
55
-----------------------
66

7+
**Improvements**
8+
9+
- Related fields in lists are now displayed by their string object representation (be mindful of performance)
10+
- Improve responsiveness for multi-update forms
11+
712

813
8.16.1 (2026-01-08)
914
-----------------------
@@ -12,6 +17,7 @@ CHANGELOG
1217

1318
- Fix batch deletion
1419

20+
1521
8.16.0 (2025-12-24)
1622
-----------------------
1723

mapentity/forms.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,9 @@ def __init__(self, *args, **kwargs):
385385
# Setup crispy form
386386
self.helper = FormHelper()
387387
self.helper.form_id = "multi-update-form"
388-
self.helper.form_class = ""
388+
self.helper.form_class = "form-horizontal"
389+
self.helper.label_class = "col-12 col-sm-4" # largeur colonne labels
390+
self.helper.field_class = "col-12 col-sm-8" # largeur colonne champs
389391
self.helper.form_method = "post"
390392
self.helper.form_action = ""
391393
self.helper.add_input(

mapentity/templates/mapentity/mapentity_multi_update_form.html

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@
44
{% block mainpanel %}
55
{{ block.super }}
66

7-
<div class="row justify-content-center w-100 m-5">
8-
<div class="col-4 card card-body">
9-
<h4 class="card-title">{% blocktrans %}Select values for the selected {{ model_name_plural }}{% endblocktrans %}</h4>
10-
{% crispy form form.helper %}
11-
</div>
7+
<div class="col-12 offset-0 col-md-6 offset-md-3 col-lg-4 offset-lg-4 card card-body">
8+
<h4 class="card-title">{% blocktrans %}Select values for the selected {{ model_name_plural }}{% endblocktrans %}</h4>
9+
{% crispy form form.helper %}
1210
</div>
1311

1412
<!-- Confirmation Modal -->

0 commit comments

Comments
 (0)