provide a default value for telegraf database in forms

pull/587/head
Jade McGough 2016-11-18 15:19:16 -08:00
parent 947100c779
commit e39f152824
2 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ export const CreateSource = React.createClass({
</div> </div>
<div className="form-group col-xs-8 col-xs-offset-2"> <div className="form-group col-xs-8 col-xs-offset-2">
<label htmlFor="telegraf">Telegraf database</label> <label htmlFor="telegraf">Telegraf database</label>
<input ref={(r) => this.sourceTelegraf = r} className="form-control" id="telegraf" placeholder="telegraf"></input> <input ref={(r) => this.sourceTelegraf = r} className="form-control" id="telegraf" type="text" value="telegraf"></input>
</div> </div>
<div className="form-group col-xs-12 text-center"> <div className="form-group col-xs-12 text-center">
<button className="btn btn-success" type="submit">Create New Server</button> <button className="btn btn-success" type="submit">Create New Server</button>

View File

@ -120,7 +120,7 @@ export const SourceForm = React.createClass({
</div> </div>
<div className="form-group col-xs-8 col-xs-offset-2"> <div className="form-group col-xs-8 col-xs-offset-2">
<label htmlFor="telegraf">Telegraf database</label> <label htmlFor="telegraf">Telegraf database</label>
<input type="text" name="telegraf" ref={(r) => this.sourceTelegraf = r} className="form-control" id="telegraf" placeholder="telegraf" onChange={this.onInputChange} value={source.telegraf || ''}></input> <input type="text" name="telegraf" ref={(r) => this.sourceTelegraf = r} className="form-control" id="telegraf" onChange={this.onInputChange} value={source.telegraf || 'telegraf'}></input>
</div> </div>
<div className="form-group col-xs-8 col-xs-offset-2"> <div className="form-group col-xs-8 col-xs-offset-2">
<div className="form-control-static"> <div className="form-control-static">