Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion templates/react/components/foo/Create.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Create extends Component {
{this.props.error && <div className="alert alert-danger" role="alert"><span className="fa fa-exclamation-triangle" aria-hidden="true"></span> {this.props.error}</div>}

<Form onSubmit={this.props.create} values={this.props.item}/>
<Link to="." className="btn btn-default">Back to list</Link>
<Link to="." className="btn btn-primary">Back to list</Link>
</div>;
}
}
Expand Down
2 changes: 1 addition & 1 deletion templates/react/components/foo/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Form extends Component {
<Field component={this.renderField} name="{{{ name }}}" type="{{{ type }}}"{{#if step}} step="{{{ step }}}"{{/if}} placeholder="{{{ description }}}" {{#if required}}required={true}{{/if}}/>
{{/each}}

<button type="submit" className="btn btn-primary">Submit</button>
<button type="submit" className="btn btn-success">Submit</button>
</form>;
}
}
Expand Down
10 changes: 5 additions & 5 deletions templates/react/components/foo/List.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class List extends Component {
{this.props.deletedItem && <div className="alert alert-success">{this.props.deletedItem['@id']} deleted.</div>}
{this.props.error && <div className="alert alert-danger">{this.props.error}</div>}

<p><Link to="create" className="btn btn-default">Create</Link></p>
<p><Link to="create" className="btn btn-primary">Create</Link></p>

<table className="table table-responsive table-striped table-hover">
<thead>
Expand Down Expand Up @@ -84,10 +84,10 @@ class List extends Component {
const {'{{{ hydraPrefix }}}first': first, '{{{ hydraPrefix }}}previous': previous,'{{{ hydraPrefix }}}next': next, '{{{ hydraPrefix }}}last': last} = view;

return <nav aria-label="Page navigation">
<Link to='.' className={`btn btn-default${previous ? '' : ' disabled'}`}><span aria-hidden="true">&lArr;</span> First</Link>
<Link to={!previous || previous === first ? '.' : encodeURIComponent(previous)} className={`btn btn-default${previous ? '' : ' disabled'}`}><span aria-hidden="true">&larr;</span> Previous</Link>
<Link to={next ? encodeURIComponent(next) : '#'} className={`btn btn-default${next ? '' : ' disabled'}`}>Next <span aria-hidden="true">&rarr;</span></Link>
<Link to={last ? encodeURIComponent(last) : '#'} className={`btn btn-default${next ? '' : ' disabled'}`}>Last <span aria-hidden="true">&rArr;</span></Link>
<Link to='.' className={`btn btn-primary${previous ? '' : ' disabled'}`}><span aria-hidden="true">&lArr;</span> First</Link>
<Link to={!previous || previous === first ? '.' : encodeURIComponent(previous)} className={`btn btn-primary${previous ? '' : ' disabled'}`}><span aria-hidden="true">&larr;</span> Previous</Link>
<Link to={next ? encodeURIComponent(next) : '#'} className={`btn btn-primary${next ? '' : ' disabled'}`}>Next <span aria-hidden="true">&rarr;</span></Link>
<Link to={last ? encodeURIComponent(last) : '#'} className={`btn btn-primary${next ? '' : ' disabled'}`}>Last <span aria-hidden="true">&rArr;</span></Link>
</nav>;
}
}
Expand Down
2 changes: 1 addition & 1 deletion templates/react/components/foo/Show.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class Show extends Component {
</tbody>
</table>
}
<Link to=".." className="btn btn-default">Back to list</Link>
<Link to=".." className="btn btn-primary">Back to list</Link>
{item && <Link to={`/{{ name }}/edit/${encodeURIComponent(item['@id'])}`}>
<button className="btn btn-warning">Edit</button>
</Link>
Expand Down
2 changes: 1 addition & 1 deletion templates/react/components/foo/Update.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class Update extends Component {
{this.props.deleteError && <div className="alert alert-danger" role="alert"><span className="fa fa-exclamation-triangle" aria-hidden="true"></span> {this.props.deleteError}</div>}

{item && <Form onSubmit={values => this.props.update(item, values)} initialValues={item}/>}
<Link to=".." className="btn btn-default">Back to list</Link>
<Link to=".." className="btn btn-primary">Back to list</Link>
<button onClick={this.del} className="btn btn-danger">Delete</button>
</div>;
}
Expand Down