Alert for error invoking functions
This commit is contained in:
parent
a247c43080
commit
cab6b889b5
|
@ -86,6 +86,11 @@ class {{capitalize name}}Form{{@index}} extends React.Component {
|
|||
render(){
|
||||
return <div className="formSection">
|
||||
<h3>{{name}}</h3>
|
||||
{
|
||||
this.state.error != null ?
|
||||
<Alert bsStyle="danger">{this.state.error}</Alert>
|
||||
: ''
|
||||
}
|
||||
<form>
|
||||
{{#if inputs.length}}
|
||||
{{#each inputs}}
|
||||
|
|
Loading…
Reference in New Issue