diff --git a/scss/_off.scss b/scss/_off.scss index 2bd4ecf3e8e45..e93bfbd53d438 100644 --- a/scss/_off.scss +++ b/scss/_off.scss @@ -1450,4 +1450,19 @@ a.panel_title { .button:focus, .button:hover, button:focus, button:hover { background-color: scale-color($button-bg-color, $lightness: -$button-function-factor / 2); color: #fff; +} + +// Tuto video beside user form +.form-wrapper { + display: flex; + align-items: center; + flex-direction: row; + gap: 1rem; + margin: 0 auto; + max-width: 100rem; + @media #{$small-only} { + flex-direction: column; + gap: 0; + margin-top: -2rem; + } } \ No newline at end of file diff --git a/templates/web/pages/user_form/user_form_page.tt.html b/templates/web/pages/user_form/user_form_page.tt.html index 6af14f91ee728..3531a111c942b 100644 --- a/templates/web/pages/user_form/user_form_page.tt.html +++ b/templates/web/pages/user_form/user_form_page.tt.html @@ -60,44 +60,57 @@ [% IF section.note %]

[% section.note %]

[% END %] +
+
+ [% FOREACH field IN section.fields %] + [% IF field.field == 'userid' %] + [% IF type == 'edit' %] + +

[% field.value %]

+ [% ELSE %] + + + [% END %] + [% ELSIF field.type == 'text' %] +
+ + +
+ [% ELSIF field.type == 'password' %] + + + [% ELSIF field.type == 'email' %] + + + [% ELSIF field.type == 'checkbox' %] + [% IF accepted_organization && section.id == "professional" %] +

[% f_lang('f_this_is_a_pro_account_for_org', {'org' => accepted_organization}) %]

+ [% ELSE %] + + [% END %] + [% ELSIF field.type == 'hidden' %] + + [% END %] - [% FOREACH field IN section.fields %] - [% IF field.field == 'userid' %] - [% IF type == 'edit' %] - -

[% field.value %]

- [% ELSE %] - - [% END %] - [% ELSIF field.type == 'text' %] -
- - -
- [% ELSIF field.type == 'password' %] - - - [% ELSIF field.type == 'email' %] - - - [% ELSIF field.type == 'checkbox' %] - [% IF accepted_organization && section.id == "professional" %] -

[% f_lang('f_this_is_a_pro_account_for_org', {'org' => accepted_organization}) %]

- [% ELSE %] - - [% END %] - [% ELSIF field.type == 'hidden' %] - +
+ + [% IF server_options_producers_platform AND section.id == "user" AND type != "edit" %] +
+ + + +
[% END %] - - [% END %] - +
[% IF section.id == "professional" %]
[% IF requested_org_ref.defined %]