@@ -247,12 +247,27 @@ export default class SmbAuthentication extends React.Component<any,any> {
247
247
</ div >
248
248
< div className = 'form-group row mb-3' >
249
249
< label className = 'col-sm-2 col-form-label' > Username</ label >
250
- < div className = 'col-sm-9 ' >
250
+ < div className = 'col-sm-4 ' >
251
251
< input disabled = { this . props . loadingData }
252
252
className = 'form-control' type = 'text'
253
253
value = { this . state . username ?this . state . username :"" }
254
254
onChange = { ( e ) => this . onValueChange ( e . target . value , "username" ) } />
255
255
</ div >
256
+ < label className = 'col-sm-1 col-form-label' > @</ label >
257
+ < div className = 'col-sm-4' >
258
+ < div className = 'input-group' >
259
+ < div className = 'input-group-prepend' >
260
+ < button className = 'btn btn-secondary dropdown-toggle'
261
+ type = 'button' id = 'dropdownMenuButton'
262
+ data-toggle = 'dropdown' aria-haspopup = 'true' aria-expanded = 'false' />
263
+ < ul className = 'dropdown-menu' aria-labelledby = 'dropdownMenuButton' >
264
+ { this . getDomainsJSX ( ) }
265
+ </ ul >
266
+ </ div >
267
+ < input className = 'form-control' value = { this . state . domain ?this . state . domain :"" } type = 'text'
268
+ onChange = { ( e ) => this . onValueChange ( e . target . value , "domain" ) } />
269
+ </ div >
270
+ </ div >
256
271
</ div >
257
272
{ ! this . state . session_exists && ( < div className = 'form-group row mb-3' >
258
273
< label className = 'col-sm-2 col-form-label' > Password</ label >
@@ -333,23 +348,6 @@ export default class SmbAuthentication extends React.Component<any,any> {
333
348
</ div >
334
349
</ div >
335
350
</ div >
336
- < div className = 'form-group row mb-3' >
337
- < label className = 'col-sm-2 col-form-label' > Domains</ label >
338
- < div className = 'col-sm-9' >
339
- < div className = 'input-group' >
340
- < div className = 'input-group-prepend' >
341
- < button className = 'btn btn-secondary dropdown-toggle'
342
- type = 'button' id = 'dropdownMenuButton'
343
- data-toggle = 'dropdown' aria-haspopup = 'true' aria-expanded = 'false' />
344
- < ul className = 'dropdown-menu' aria-labelledby = 'dropdownMenuButton' >
345
- { this . getDomainsJSX ( ) }
346
- </ ul >
347
- </ div >
348
- < input className = 'form-control' value = { this . state . domain ?this . state . domain :"" } type = 'text'
349
- onChange = { ( e ) => this . onValueChange ( e . target . value , "domain" ) } />
350
- </ div >
351
- </ div >
352
- </ div >
353
351
{ this . getFormInputsJSX ( ) }
354
352
</ form >
355
353
) ;
0 commit comments