mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-20 00:08:02 +01:00
minor fixes to the AddTogglePage #153
This commit is contained in:
parent
dc328f28ca
commit
39f8c9c21d
@ -38,29 +38,40 @@ class AddFeatureToggle extends React.Component {
|
|||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<form onSubmit={this.onSubmit}>
|
<form onSubmit={this.onSubmit}>
|
||||||
<Input
|
<section>
|
||||||
type="text"
|
<Input
|
||||||
label="Name"
|
type="text"
|
||||||
name="name"
|
label="Name"
|
||||||
value={this.state.name}
|
name="name"
|
||||||
onChange={this.handleChange.bind(this, 'name')} />
|
required
|
||||||
<Input
|
value={this.state.name}
|
||||||
type="text"
|
onChange={this.handleChange.bind(this, 'name')} />
|
||||||
multiline label="Description"
|
<Input
|
||||||
value={this.state.description}
|
type="text"
|
||||||
onChange={this.handleChange.bind(this, 'description')} />
|
multiline label="Description"
|
||||||
|
required
|
||||||
|
value={this.state.description}
|
||||||
|
onChange={this.handleChange.bind(this, 'description')} />
|
||||||
|
|
||||||
|
<br />
|
||||||
|
|
||||||
|
<Switch
|
||||||
|
checked={this.state.enabled}
|
||||||
|
label="Enabled"
|
||||||
|
onChange={this.handleChange.bind(this, 'enabled')} />
|
||||||
|
|
||||||
|
<br />
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<legend>Strategies</legend>
|
||||||
|
<Button icon="add" floating />
|
||||||
|
</section>
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<Switch
|
|
||||||
checked={this.state.enabled}
|
|
||||||
label="Enabled"
|
|
||||||
onChange={this.handleChange.bind(this, 'enabled')} />
|
|
||||||
|
|
||||||
<br />
|
<Button type="submit" raised primary label="Create Feature Toggle" />
|
||||||
<Button type="submit" raised primary>
|
|
||||||
Create Feature Toggle.
|
|
||||||
</Button>
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user