diff --git a/css/backoffice/pages/_all.scss b/css/backoffice/pages/_all.scss index d911ff390..3e6b6b39a 100644 --- a/css/backoffice/pages/_all.scss +++ b/css/backoffice/pages/_all.scss @@ -14,4 +14,5 @@ @import "csv-import"; @import "global-search"; @import "run-query"; -@import "welcome-popup"; \ No newline at end of file +@import "welcome-popup"; +@import "oauth.wizard"; \ No newline at end of file diff --git a/css/backoffice/pages/_oauth.wizard.scss b/css/backoffice/pages/_oauth.wizard.scss new file mode 100644 index 000000000..04fb33089 --- /dev/null +++ b/css/backoffice/pages/_oauth.wizard.scss @@ -0,0 +1,16 @@ +.ibo-oauth-wizard .ibo-panel--body{ + .ibo-oauth-wizard--form--container{ + display: flex; + flex-direction: row; + flex-grow: 1; + } + .ibo-oauth-wizard--form { + + } + .ibo-oauth-wizard--illustration svg{ + max-height: 400px; + } +} +#ibo-oauth-wizard--conf--result{ + white-space: pre-wrap +} diff --git a/templates/pages/backoffice/oauth/Wizard.html.twig b/templates/pages/backoffice/oauth/Wizard.html.twig index 0aee723b3..ee4395e68 100644 --- a/templates/pages/backoffice/oauth/Wizard.html.twig +++ b/templates/pages/backoffice/oauth/Wizard.html.twig @@ -1,13 +1,11 @@ {# @copyright Copyright (C) 2010-2022 Combodo SARL #} {# @license http://opensource.org/licenses/AGPL-3.0 #} -
-

{{ 'UI:OAuth:Wizard:Page:Title'|dict_s }}

+{% UIContentBlock Standard {AddCSSClasses:["ibo-oauth-wizard"]} %} -
- -
-
+ {% UIPanel Neutral {sTitle:'UI:OAuth:Wizard:Form:Panel:Title'|dict_s, AddCSSClasses:['ibo-oauth-wizard']} %} + {% UIContentBlock Standard {AddCSSClasses:["ibo-oauth-wizard--form--container"]} %} + {% UIContentBlock Standard {sId:'select_layout'} %} {% set sIsChecked = 'checked' %} {% for aSelect in aProviders %} @@ -17,37 +15,25 @@ {% set sIsChecked = '' %} {% endfor %} -
-
+ {% EndUIContentBlock %} + {% EndUIContentBlock %} + + {% set aCSSClasses = ['ibo-oauth-wizard--form'] %} + {% for aSelect in aProviders %} + {% set aCSSClasses = aCSSClasses|merge(['ibo-oauth-wizard--form-' ~ aSelect.name]) %} + {% endfor %} + {% UIForm Standard {AddCSSClasses:aCSSClasses} %} + {% UIInput ForHidden {sName:'url', sValue:''} %} + {% for sName, aInput in aInputs %} + {% UIInput ForInputWithLabel {sLabel:aInput.label, sInputName:sName, sInputValue:aInput.value, sInputId:"wizard_input_"~sName, sInputType:aInput.type} %} + {% endfor %} + {% UIButton ForPrimaryAction {sLabel:'UI:OAuth:Wizard:Form:Button:Submit:Label'|dict_s, sName:'value', sValue:'value', bIsSubmit:true, sId:'value', AddCSSClasses:["ibo-oauth-wizard--form--submit"]} %} + {% EndUIForm %} + {% EndUIPanel %} -
- {{ 'UI:OAuth:Wizard:Form:Panel:Title'|dict_s }} -
- - {% for sName, aInput in aInputs %} -
-
-
-
- -
-
-
- {% endfor %} - -
-
-
{% for sTemplate in aAdditionalBlocks %} {% include sTemplate %} {% endfor %} -
\ No newline at end of file +{% EndUIContentBlock %}