mirror of
https://github.com/docker/docs.git
synced 2026-11-05 00:14:17 +03:00
Better way to control checkboxes using labels.
Signed-off-by: Alexei Yuzhakov <sibprogrammer@gmail.com>
This commit is contained in:
@@ -57,9 +57,9 @@ var ContainerSettingsAdvanced = React.createClass({
|
||||
<div className="settings-section">
|
||||
<h3>Advanced Options</h3>
|
||||
<div className="checkboxes">
|
||||
<p><input type="checkbox" checked={this.state.tty} onChange={this.handleChangeTty}/>Allocate a TTY for this container</p>
|
||||
<p><input type="checkbox" checked={this.state.openStdin} onChange={this.handleChangeOpenStdin}/>Keep STDIN open even if not attached</p>
|
||||
<p><input type="checkbox" checked={this.state.privileged} onChange={this.handleChangePrivileged}/>Privileged mode</p>
|
||||
<p><label><input type="checkbox" checked={this.state.tty} onChange={this.handleChangeTty}/>Allocate a TTY for this container</label></p>
|
||||
<p><label><input type="checkbox" checked={this.state.openStdin} onChange={this.handleChangeOpenStdin}/>Keep STDIN open even if not attached</label></p>
|
||||
<p><label><input type="checkbox" checked={this.state.privileged} onChange={this.handleChangePrivileged}/>Privileged mode</label></p>
|
||||
</div>
|
||||
<a className="btn btn-action" disabled={this.props.container.State.Updating} onClick={this.handleSaveAdvancedOptions}>Save</a>
|
||||
</div>
|
||||
|
||||
@@ -166,6 +166,9 @@
|
||||
input[type="checkbox"] {
|
||||
margin-right: 0.8rem;
|
||||
}
|
||||
label {
|
||||
font-weight: 400;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user