1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-22 09:23:13 +01:00

register piece returns to piece detail

This commit is contained in:
diminator 2015-07-10 10:30:17 +02:00
parent 5855b163a8
commit 22b201f388
5 changed files with 7 additions and 12 deletions

View File

@ -81,7 +81,9 @@ let AccordionListItem = React.createClass({
</Link>
<h3>{getLangText('by %s', this.props.content.artist_name)}</h3>
<div>
<span>{this.props.content.date_created.split('-')[0]}, </span>
<span>{this.props.content.date_created.split('-')[0]}</span>
</div>
<div>
<AccordionListItemEditionWidget
piece={this.props.content}/>
{/* <a href={this.props.content.license_type.url} target="_blank" className="pull-right">

View File

@ -78,7 +78,7 @@ let AccordionListItemEditionWidget = React.createClass({
<span
onClick={this.toggleTable}
className="ascribe-accordion-list-item-edition-widget">
Create editions
+ Editions
</span>
);
} else if(numEditions === 1) {
@ -91,14 +91,6 @@ let AccordionListItemEditionWidget = React.createClass({
{editionMapping + ' ' + getLangText('Edition')} {this.getGlyphicon()}
</span>
);
} else if(numEditions === 0){
return (
<span
onClick={this.toggleTable}
className="ascribe-accordion-list-item-edition-widget">
{'+ Editions'}
</span>
);
}
else {
return (

View File

@ -35,6 +35,7 @@ let Form = React.createClass({
this.refs[ref].reset();
}
}
this.setState(this.getInitialState());
},
submit(event){
if (event) {

View File

@ -94,7 +94,7 @@ let RegisterPiece = React.createClass( {
this.state.orderBy,
this.state.orderAsc);
this.transitionTo('piece', {editionId: response.piece.id});
this.transitionTo('piece', {pieceId: response.piece.id});
},
getFormData(){

View File

@ -19,7 +19,7 @@ $ascribe-accordion-list-font: 'Source Sans Pro';
border-right: 0.1em solid rgba(0,0,0,.2);
border-top: 0.1em solid rgba(0,0,0,.2);
border-radius: 1px;
border-bottom: 0.1em solid rgba(0,0,0,0);
border-bottom: 0.1em solid rgba(0,0,0,.2);
.wrapper {
&:hover{
background-color: rgba(2, 182, 163, 0.05);