@@ -59,6 +59,7 @@ qx.Class.define("osparc.auth.ui.RequestAccount", {
59
59
switch ( osparc . product . Utils . getProductName ( ) ) {
60
60
case "s4l" :
61
61
case "tis" :
62
+ case "osparc" :
62
63
this . _form . add ( email , this . tr ( "Email" ) , qx . util . Validate . email ( ) , "email" ) ;
63
64
break ;
64
65
case "s4lacad" :
@@ -84,6 +85,9 @@ qx.Class.define("osparc.auth.ui.RequestAccount", {
84
85
case "tis" :
85
86
this . _form . add ( organization , this . tr ( "Organization" ) , null , "organization" ) ;
86
87
break ;
88
+ case "osparc" :
89
+ this . _form . add ( organization , this . tr ( "Research Group/Organization" ) , null , "organization" ) ;
90
+ break ;
87
91
}
88
92
89
93
@@ -127,84 +131,156 @@ qx.Class.define("osparc.auth.ui.RequestAccount", {
127
131
this . _form . add ( country , this . tr ( "Country" ) , null , "country" ) ;
128
132
129
133
130
- if (
131
- osparc . product . Utils . isProduct ( "s4l" ) ||
132
- osparc . product . Utils . isProduct ( "s4lacad" ) ||
133
- osparc . product . Utils . isProduct ( "s4ldesktopacad" )
134
- ) {
135
- const application = new qx . ui . form . SelectBox ( ) ;
136
- [ {
137
- id : "Antenna_Design_for_Wireless_Communication" ,
138
- label : "Antenna Design for Wireless Communication"
139
- } , {
140
- id : "Bioelectronics,_Electroceuticals_and_Neuroprosthetics" ,
141
- label : "Bioelectronics, Electroceuticals & Neuroprosthetics"
142
- } , {
143
- id : "Safety_and_Efficacy_Assessment" ,
144
- label : "Safety & Efficacy Assessment"
145
- } , {
146
- id : "Exposure_and_Compliance" ,
147
- label : "Exposure & Compliance"
148
- } , {
149
- id : "Focused_Ultrasound" ,
150
- label : "Focused Ultrasound"
151
- } , {
152
- id : "In_Silico_Trials" ,
153
- label : "In <i>Silico</i> Trials"
154
- } , {
155
- id : "Implant_Design" ,
156
- label : "Implant Design"
157
- } , {
158
- id : "Magnetic_Resonance_Imaging" ,
159
- label : "Magnetic Resonance Imaging"
160
- } , {
161
- id : "Neurostimulation" ,
162
- label : "Neurostimulation"
163
- } , {
164
- id : "Personalized_Medicine" ,
165
- label : "Personalized Medicine"
166
- } , {
167
- id : "Thermal_Therapies" ,
168
- label : "Thermal Therapies"
169
- } , {
170
- id : "Wireless_Power_Transfer_Systems" ,
171
- label : "Wireless Power Transfer Systems"
172
- } , {
173
- id : "Vascular_Flow_and_Perfusion" ,
174
- label : "Vascular Flow & Perfusion"
175
- } ] . forEach ( appData => {
176
- const lItem = new qx . ui . form . ListItem ( appData . label , null , appData . id ) . set ( {
177
- rich : true
134
+ switch ( osparc . product . Utils . getProductName ( ) ) {
135
+ case "s4l" :
136
+ case "s4lacad" :
137
+ case "s4ldesktopacad" : {
138
+ const application = new qx . ui . form . SelectBox ( ) ;
139
+ [ {
140
+ id : "Antenna_Design_for_Wireless_Communication" ,
141
+ label : "Antenna Design for Wireless Communication"
142
+ } , {
143
+ id : "Bioelectronics,_Electroceuticals_and_Neuroprosthetics" ,
144
+ label : "Bioelectronics, Electroceuticals & Neuroprosthetics"
145
+ } , {
146
+ id : "Safety_and_Efficacy_Assessment" ,
147
+ label : "Safety & Efficacy Assessment"
148
+ } , {
149
+ id : "Exposure_and_Compliance" ,
150
+ label : "Exposure & Compliance"
151
+ } , {
152
+ id : "Focused_Ultrasound" ,
153
+ label : "Focused Ultrasound"
154
+ } , {
155
+ id : "In_Silico_Trials" ,
156
+ label : "In <i>Silico</i> Trials"
157
+ } , {
158
+ id : "Implant_Design" ,
159
+ label : "Implant Design"
160
+ } , {
161
+ id : "Magnetic_Resonance_Imaging" ,
162
+ label : "Magnetic Resonance Imaging"
163
+ } , {
164
+ id : "Neurostimulation" ,
165
+ label : "Neurostimulation"
166
+ } , {
167
+ id : "Personalized_Medicine" ,
168
+ label : "Personalized Medicine"
169
+ } , {
170
+ id : "Thermal_Therapies" ,
171
+ label : "Thermal Therapies"
172
+ } , {
173
+ id : "Wireless_Power_Transfer_Systems" ,
174
+ label : "Wireless Power Transfer Systems"
175
+ } , {
176
+ id : "Vascular_Flow_and_Perfusion" ,
177
+ label : "Vascular Flow & Perfusion"
178
+ } ] . forEach ( appData => {
179
+ const lItem = new qx . ui . form . ListItem ( appData . label , null , appData . id ) . set ( {
180
+ rich : true
181
+ } ) ;
182
+ application . add ( lItem ) ;
178
183
} ) ;
179
- application . add ( lItem ) ;
180
- } ) ;
181
- doubleSpaced . push ( application ) ;
182
- this . _form . add ( application , this . tr ( "Application" ) , null , "application" ) ;
183
-
184
+ doubleSpaced . push ( application ) ;
185
+ this . _form . add ( application , this . tr ( "Application" ) , null , "application" ) ;
184
186
185
- const description = new qx . ui . form . TextField ( ) ;
186
- doubleSpaced . push ( description ) ;
187
- this . _form . add ( description , this . tr ( "Description" ) , null , "description" ) ;
187
+ const description = new qx . ui . form . TextField ( ) ;
188
+ doubleSpaced . push ( description ) ;
189
+ this . _form . add ( description , this . tr ( "Description" ) , null , "description" ) ;
190
+ break ;
191
+ }
192
+ case "osparc" : {
193
+ const application = new qx . ui . form . SelectBox ( ) ;
194
+ [ {
195
+ id : "other" ,
196
+ label : "Other"
197
+ } , {
198
+ id : "Reuse_Existing_Services_And_Models" ,
199
+ label : "Reuse Existing Services And Models"
200
+ } , {
201
+ id : "Data_Analysis" ,
202
+ label : "Data Analysis"
203
+ } , {
204
+ id : "Personalized_Medicine" ,
205
+ label : "Personalized Medicine"
206
+ } , {
207
+ id : "Neurostimulation" ,
208
+ label : "Neurostimulation"
209
+ } , {
210
+ id : "Safety_And_Efficacy_Assessment" ,
211
+ label : "Safety & Efficacy Assessment"
212
+ } , {
213
+ id : "Device_Design_And_Optimization" ,
214
+ label : "Device Design & Optimization"
215
+ } , {
216
+ id : "Magnetic_Resonance_Imaging" ,
217
+ label : "Magnetic Resonance Imaging"
218
+ } , {
219
+ id : "Bioelectromagnetics" ,
220
+ label : "Bioelectromagnetics"
221
+ } , {
222
+ id : "In_Silico_Trials" ,
223
+ label : "In Silico Trials"
224
+ } , {
225
+ id : "Image_based_Modeling" ,
226
+ label : "Image-based Modeling"
227
+ } ] . forEach ( appData => {
228
+ const lItem = new qx . ui . form . ListItem ( appData . label , null , appData . id ) . set ( {
229
+ rich : true
230
+ } ) ;
231
+ application . add ( lItem ) ;
232
+ } ) ;
233
+ doubleSpaced . push ( application ) ;
234
+ this . _form . add ( application , this . tr ( "Application" ) , null , "application" ) ;
235
+ break ;
236
+ }
188
237
}
189
238
190
239
191
240
const hear = new qx . ui . form . SelectBox ( ) ;
192
- [ {
193
- id : "Search_Engine" ,
194
- label : "Search Engine"
195
- } , {
196
- id : "Conference" ,
197
- label : "Conference"
198
- } , {
199
- id : "Publication" ,
200
- label : "Publication"
201
- } , {
202
- id : "Social_Media" ,
203
- label : "Social Media"
204
- } , {
205
- id : "Other" ,
206
- label : "Other"
207
- } ] . forEach ( hearData => {
241
+ let hearOptions = [ ] ;
242
+ switch ( osparc . product . Utils . getProductName ( ) ) {
243
+ case "osparc" :
244
+ hearOptions = [ {
245
+ id : "Other" ,
246
+ label : "Other"
247
+ } , {
248
+ id : "SPARC_Portal_Or_Event" ,
249
+ label : "SPARC Portal Or Event"
250
+ } , {
251
+ id : "Search_Engine" ,
252
+ label : "Search Engine"
253
+ } , {
254
+ id : "Conference" ,
255
+ label : "Conference"
256
+ } , {
257
+ id : "Publication" ,
258
+ label : "Publication"
259
+ } , {
260
+ id : "Social_Media" ,
261
+ label : "Social Media"
262
+ } ] ;
263
+ break ;
264
+ default :
265
+ hearOptions = [ {
266
+ id : "Search_Engine" ,
267
+ label : "Search Engine"
268
+ } , {
269
+ id : "Conference" ,
270
+ label : "Conference"
271
+ } , {
272
+ id : "Publication" ,
273
+ label : "Publication"
274
+ } , {
275
+ id : "Social_Media" ,
276
+ label : "Social Media"
277
+ } , {
278
+ id : "Other" ,
279
+ label : "Other"
280
+ } ] ;
281
+ break ;
282
+ }
283
+ hearOptions . forEach ( hearData => {
208
284
const lItem = new qx . ui . form . ListItem ( hearData . label , null , hearData . id ) ;
209
285
hear . add ( lItem ) ;
210
286
} ) ;
@@ -214,11 +290,17 @@ qx.Class.define("osparc.auth.ui.RequestAccount", {
214
290
215
291
// accept links
216
292
// Privacy Policy link
217
- let ppLink = osparc . CookiePolicy . getS4LPrivacyPolicyLink ( "our privacy policy" ) ;
218
- if ( osparc . product . Utils . isProduct ( "tis" ) ) {
219
- ppLink = osparc . CookiePolicy . getITISPrivacyPolicyLink ( "our privacy policy" ) ;
293
+ let ppLink = "" ;
294
+ switch ( osparc . product . Utils . getProductName ( ) ) {
295
+ case "osparc" :
296
+ case "tis" :
297
+ ppLink = osparc . CookiePolicy . getITISPrivacyPolicyLink ( "our privacy policy" ) ;
298
+ break ;
299
+ default :
300
+ ppLink = osparc . CookiePolicy . getS4LPrivacyPolicyLink ( "our privacy policy" ) ;
301
+ break ;
220
302
}
221
- const ppText = this . tr ( "I acknowledge that data will be processed in accordance with " ) + ppLink ;
303
+ const ppText = this . tr ( "I acknowledge that data will be processed in accordance to " ) + ppLink ;
222
304
const privacyPolicy = new qx . ui . form . CheckBox ( ) . set ( {
223
305
required : true ,
224
306
value : false
@@ -227,14 +309,17 @@ qx.Class.define("osparc.auth.ui.RequestAccount", {
227
309
this . _form . add ( privacyPolicy , ppText , null , "privacyPolicy" )
228
310
229
311
// Eula link
230
- const eulaLink = osparc . CookiePolicy . getZMTEULALink ( "end users license agreement (EULA)" ) ;
231
- const eulaText = "I accept the " + eulaLink + " and I will use the product in accordance with it" ;
232
- const eula = new qx . ui . form . CheckBox ( ) . set ( {
233
- required : true ,
234
- value : false
235
- } ) ;
236
- doubleSpaced . push ( eula ) ;
237
- this . _form . add ( eula , eulaText , null , "eula" ) ;
312
+ if ( osparc . product . Utils . getProductName ( ) !== "osparc" ) {
313
+ const eulaLink = osparc . CookiePolicy . getZMTEULALink ( "end users license agreement (EULA)" ) ;
314
+ const eulaText = "I accept the " + eulaLink + " and I will use the product in accordance with it" ;
315
+ const eula = new qx . ui . form . CheckBox ( ) . set ( {
316
+ required : true ,
317
+ value : false
318
+ } ) ;
319
+ doubleSpaced . push ( eula ) ;
320
+ this . _form . add ( eula , eulaText , null , "eula" ) ;
321
+ }
322
+
238
323
239
324
const content = new qx . ui . container . Composite ( new qx . ui . layout . VBox ( 10 ) ) ;
240
325
const formRenderer = new osparc . ui . form . renderer . DoubleV ( this . _form , doubleSpaced ) ;
0 commit comments