Styled and fixed wording for advanced checkbox.

This commit is contained in:
Sean Li 2015-06-18 13:44:41 -07:00
parent 1a7452965f
commit bc8c3e70b0
2 changed files with 13 additions and 2 deletions

View File

@ -46,8 +46,10 @@ var ContainerSettingsAdvanced = React.createClass({
<div className="settings-panel">
<div className="settings-section">
<h3>Advanced Options</h3>
<p><input type="checkbox" checked={this.state.tty} onChange={this.handleChangeTty}/> Attach standard streams to a tty, including stdin if it is not closed</p>
<p><input type="checkbox" checked={this.state.openStdin} onChange={this.handleChangeOpenStdin}/> Keep STDIN open even if not attached</p>
<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>
</div>
<a className="btn btn-action" disabled={this.props.container.State.Updating} onClick={this.handleSaveAdvancedOptions}>Save</a>
</div>
</div>

View File

@ -138,5 +138,14 @@
margin-right: 0.5rem;
}
}
.checkboxes {
padding: 1rem 0;
p {
color: @gray-normal;
}
input[type="checkbox"] {
margin-right: 0.8rem;
}
}
}
}