@@ -22,7 +22,7 @@ qx.Class.define("osparc.support.BookACallTopicSelector", {
2222 construct : function ( ) {
2323 this . base ( arguments ) ;
2424
25- this . _setLayout ( new qx . ui . layout . VBox ( 10 ) ) ;
25+ this . _setLayout ( new qx . ui . layout . VBox ( 20 ) ) ;
2626
2727 this . set ( {
2828 padding : 10 ,
@@ -40,34 +40,42 @@ qx.Class.define("osparc.support.BookACallTopicSelector", {
4040 _createChildControlImpl : function ( id ) {
4141 let control ;
4242 switch ( id ) {
43+ case "content-box" :
44+ control = new qx . ui . container . Composite ( new qx . ui . layout . VBox ( 10 ) ) . set ( {
45+ decorator : "rounded" ,
46+ backgroundColor : "background-main-2" ,
47+ padding : 10 ,
48+ } ) ;
49+ this . _add ( control ) ;
50+ break ;
4351 case "intro-label" :
4452 control = new qx . ui . basic . Label ( ) . set ( {
4553 value : this . tr ( "I would like..." ) ,
4654 font : "text-14" ,
4755 } ) ;
48- this . _add ( control ) ;
56+ this . getChildControl ( "content-box" ) . add ( control ) ;
4957 break ;
5058 case "generic-intro-button" :
5159 control = new qx . ui . form . RadioButton ( ) . set ( {
5260 label : this . tr ( "a generic introduction" ) ,
5361 value : false ,
5462 paddingTop : 10 ,
5563 } ) ;
56- this . _add ( control ) ;
64+ this . getChildControl ( "content-box" ) . add ( control ) ;
5765 break ;
5866 case "specific-intro-button" :
5967 control = new qx . ui . form . RadioButton ( ) . set ( {
6068 label : this . tr ( "a specific introduction for" ) ,
6169 value : false ,
6270 paddingTop : 10 ,
6371 } ) ;
64- this . _add ( control ) ;
72+ this . getChildControl ( "content-box" ) . add ( control ) ;
6573 break ;
6674 case "specific-intro-select-box" :
6775 control = new qx . ui . form . SelectBox ( ) . set ( {
6876 marginLeft : 20 ,
6977 } ) ;
70- this . _add ( control ) ;
78+ this . getChildControl ( "content-box" ) . add ( control ) ;
7179 this . getChildControl ( "specific-intro-button" ) . bind ( "value" , control , "visibility" , {
7280 converter : val => val ? "visible" : "excluded"
7381 } ) ;
@@ -78,15 +86,15 @@ qx.Class.define("osparc.support.BookACallTopicSelector", {
7886 value : false ,
7987 paddingTop : 10 ,
8088 } ) ;
81- this . _add ( control ) ;
89+ this . getChildControl ( "content-box" ) . add ( control ) ;
8290 break ;
8391 case "share-project-checkbox" : {
8492 control = new qx . ui . form . CheckBox ( ) . set ( {
8593 value : true ,
8694 label : this . tr ( "share current project with support team (optional)" ) ,
8795 marginLeft : 20 ,
8896 } ) ;
89- this . _add ( control ) ;
97+ this . getChildControl ( "content-box" ) . add ( control ) ;
9098 this . getChildControl ( "help-with-project-button" ) . bind ( "value" , control , "visibility" , {
9199 converter : val => val ? "visible" : "excluded"
92100 } ) ;
@@ -107,14 +115,14 @@ qx.Class.define("osparc.support.BookACallTopicSelector", {
107115 value : false ,
108116 paddingTop : 10 ,
109117 } ) ;
110- this . _add ( control ) ;
118+ this . getChildControl ( "content-box" ) . add ( control ) ;
111119 break ;
112120 case "specific-topic-textfield" :
113121 control = new qx . ui . form . TextArea ( ) . set ( {
114122 placeholder : this . tr ( "please provide any background information that could help us make this meeting more productive" ) ,
115123 marginLeft : 20 ,
116124 } ) ;
117- this . _add ( control ) ;
125+ this . getChildControl ( "content-box" ) . add ( control ) ;
118126 this . getChildControl ( "specific-topic-button" ) . bind ( "value" , control , "visibility" , {
119127 converter : val => val ? "visible" : "excluded"
120128 } ) ;
0 commit comments