1
0
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:
ivaosthu 2016-09-30 15:23:22 +02:00 committed by Ivar Conradi Østhus
parent dc328f28ca
commit 39f8c9c21d

View File

@ -38,15 +38,18 @@ class AddFeatureToggle extends React.Component {
return ( return (
<div> <div>
<form onSubmit={this.onSubmit}> <form onSubmit={this.onSubmit}>
<section>
<Input <Input
type="text" type="text"
label="Name" label="Name"
name="name" name="name"
required
value={this.state.name} value={this.state.name}
onChange={this.handleChange.bind(this, 'name')} /> onChange={this.handleChange.bind(this, 'name')} />
<Input <Input
type="text" type="text"
multiline label="Description" multiline label="Description"
required
value={this.state.description} value={this.state.description}
onChange={this.handleChange.bind(this, 'description')} /> onChange={this.handleChange.bind(this, 'description')} />
@ -58,9 +61,17 @@ class AddFeatureToggle extends React.Component {
onChange={this.handleChange.bind(this, 'enabled')} /> onChange={this.handleChange.bind(this, 'enabled')} />
<br /> <br />
<Button type="submit" raised primary> </section>
Create Feature Toggle.
</Button> <section>
<legend>Strategies</legend>
<Button icon="add" floating />
</section>
<br />
<Button type="submit" raised primary label="Create Feature Toggle" />
</form> </form>
</div> </div>
); );