Skip to content

Commit b8244a8

Browse files
authored
fix(user): Align the fields of the plugin with the user form (#1063)
* fix(user): Align the fields of the plugin with the user form * Update CHANGELOG.md * Update CHANGELOG.md * fix alignment
1 parent ea74807 commit b8244a8

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1313
- Bind the answers to the `Field` question type to the corresponding additional fields
1414
- Update dropdowns layout/style for “GLPI Item” fields
1515

16+
### Fixed
17+
18+
- Align the fields of the plugin with the user form
19+
1620
## [1.22.2] - 2025-10-24
1721

1822
### Fixed

templates/fields.html.twig

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,14 @@
3737

3838
{% if not already_wrapped and not dropdown_item%}
3939

40-
{% set class = item.isNewItem() ? 'col-xxl-12' : 'col-xxl-9' %}
40+
{% set class = item.isNewItem() or item is instanceof('User') ? 'col-xxl-12' : 'col-xxl-9' %}
4141
<div class="col-12 {{ class }} flex-column">
4242
<div class="d-flex flex-row flex-wrap flex-xl-nowrap">
4343
<div class="row flex-row align-items-start flex-grow-1">
4444
<div class="row flex-row">
45+
{% if item.isNewItem() and item is instanceof('User') %}
46+
<div>
47+
{% endif %}
4548
{% endif %}
4649

4750
{% for field in fields %}
@@ -199,6 +202,9 @@
199202

200203
{% if not already_wrapped and not dropdown_item%}
201204

205+
{% if item.isNewItem() and item is instanceof('User') %}
206+
</div>
207+
{% endif %}
202208
</div>
203209
</div>
204210
</div>

0 commit comments

Comments
 (0)