mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 01:25:17 +01:00
Merge remote-tracking branch 'remotes/origin/AD-479-piece-registration-in-new-fronten' into AD-416-account-settings-page-navbar
Conflicts: js/routes.js
This commit is contained in:
commit
6c746d09f7
@ -1,9 +1,13 @@
|
||||
'use strict';
|
||||
|
||||
import React from 'react';
|
||||
import Router from 'react-router';
|
||||
|
||||
import Input from 'react-bootstrap/lib/Input';
|
||||
import Glyphicon from 'react-bootstrap/lib/Glyphicon';
|
||||
import Button from 'react-bootstrap/lib/Button';
|
||||
|
||||
let Link = Router.Link;
|
||||
|
||||
let PieceListToolbar = React.createClass({
|
||||
|
||||
@ -30,6 +34,9 @@ let PieceListToolbar = React.createClass({
|
||||
<Input type='text' ref="search" placeholder="Search..." onChange={this.searchFor} addonAfter={searchIcon} />
|
||||
|
||||
{/*<PieceListToolbarFilterWidgetFilter />*/}
|
||||
<Link to="register_piece">
|
||||
<Button>+ Artwork</Button>
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
13
js/components/register_piece.js
Normal file
13
js/components/register_piece.js
Normal file
@ -0,0 +1,13 @@
|
||||
'use strict';
|
||||
|
||||
import React from 'react';
|
||||
|
||||
let RegisterPiece = React.createClass( {
|
||||
render() {
|
||||
return (
|
||||
<span>test</span>
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
export default RegisterPiece;
|
@ -9,6 +9,7 @@ import EditionContainer from './components/edition_container';
|
||||
import PasswordResetContainer from './components/password_reset_container';
|
||||
import SettingsContainer from './components/settings_container';
|
||||
import AppConstants from './constants/application_constants';
|
||||
import RegisterPiece from './components/register_piece';
|
||||
//import LoginModalHandler from './components/login_modal_handler';
|
||||
|
||||
let Route = Router.Route;
|
||||
@ -21,6 +22,7 @@ let routes = (
|
||||
<Route name="pieces" path="collection" handler={PieceList} />
|
||||
<Route name="edition" path="editions/:editionId" handler={EditionContainer} />
|
||||
<Route name="password_reset" path="password_reset" handler={PasswordResetContainer} />
|
||||
<Route name="register_piece" path="register_piece" handler={RegisterPiece} />
|
||||
<Route name="settings" path="settings" handler={SettingsContainer} />
|
||||
|
||||
<Redirect from={baseUrl} to="pieces" />
|
||||
|
Loading…
Reference in New Issue
Block a user