Skip to content

Commit e9ff252

Browse files
committed
Restructuring SMB authentication UI
1 parent 584c911 commit e9ff252

File tree

1 file changed

+16
-18
lines changed

1 file changed

+16
-18
lines changed

Diff for: web-server/components/SmbAuthentication.tsx

+16-18
Original file line numberDiff line numberDiff line change
@@ -247,12 +247,27 @@ export default class SmbAuthentication extends React.Component<any,any> {
247247
</div>
248248
<div className='form-group row mb-3'>
249249
<label className='col-sm-2 col-form-label'>Username</label>
250-
<div className='col-sm-9'>
250+
<div className='col-sm-4'>
251251
<input disabled={this.props.loadingData}
252252
className='form-control' type='text'
253253
value={this.state.username?this.state.username:""}
254254
onChange={(e)=>this.onValueChange(e.target.value, "username")} />
255255
</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>
256271
</div>
257272
{!this.state.session_exists&&(<div className='form-group row mb-3'>
258273
<label className='col-sm-2 col-form-label'>Password</label>
@@ -333,23 +348,6 @@ export default class SmbAuthentication extends React.Component<any,any> {
333348
</div>
334349
</div>
335350
</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>
353351
{this.getFormInputsJSX()}
354352
</form>
355353
);

0 commit comments

Comments
 (0)