1
0
mirror of https://github.com/ascribe/onion.git synced 2025-02-14 21:10:27 +01:00

Merge remote-tracking branch 'origin/AD-419-decouple-piece-registration-from-' into AD-551-work-on-burn-down-list

This commit is contained in:
Tim Daubenschütz 2015-07-10 10:32:42 +02:00
commit ca72168da2
8 changed files with 25 additions and 16 deletions

View File

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

View File

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

View File

@ -275,7 +275,7 @@ let EditionPersonalNote = React.createClass({
label={getLangText('Personal note (private)')} label={getLangText('Personal note (private)')}
editable={true}> editable={true}>
<InputTextAreaToggable <InputTextAreaToggable
rows={3} rows={1}
editable={true} editable={true}
defaultValue={this.props.edition.note_from_user} defaultValue={this.props.edition.note_from_user}
placeholder={getLangText('Enter a personal note%s', '...')} placeholder={getLangText('Enter a personal note%s', '...')}
@ -314,7 +314,7 @@ let EditionPublicEditionNote = React.createClass({
label={getLangText('Edition note (public)')} label={getLangText('Edition note (public)')}
editable={isEditable}> editable={isEditable}>
<InputTextAreaToggable <InputTextAreaToggable
rows={3} rows={1}
editable={isEditable} editable={isEditable}
defaultValue={this.props.edition.public_note} defaultValue={this.props.edition.public_note}
placeholder={getLangText('Enter a public note for this edition%', '...')} placeholder={getLangText('Enter a public note for this edition%', '...')}

View File

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

View File

@ -276,7 +276,7 @@ var ReactS3FineUploader = React.createClass({
body: JSON.stringify({ body: JSON.stringify({
'filename': file.name, 'filename': file.name,
'key': file.key, 'key': file.key,
'bitcoin_id': this.props.createBlobRoutine.pieceId 'piece_id': this.props.createBlobRoutine.pieceId
}) })
}) })
.then((res) => { .then((res) => {

View File

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

View File

@ -8,7 +8,7 @@ $ascribe-accordion-list-font: 'Source Sans Pro';
padding-left:0; padding-left:0;
padding-right:0; padding-right:0;
margin-top: 3em; margin-top: 1.5em;
&::first-child { &::first-child {
margin-top:0; margin-top:0;
} }
@ -44,13 +44,14 @@ $ascribe-accordion-list-font: 'Source Sans Pro';
} }
} }
h1 { h1 {
margin-top: .3em; margin: .1em 0 .1em 0;
font-size: 2.25em; font-size: 2.2em;
cursor: pointer; cursor: pointer;
} }
h3 { h3 {
font-size: 1.1em; font-size: 1.3em;
margin: .2em 0 0 0; margin: .2em 0 .3em 0;
cursor: pointer;
} }
a { a {
color: #666; color: #666;
@ -92,6 +93,7 @@ $ascribe-accordion-list-font: 'Source Sans Pro';
} }
} }
border-left: 3px solid rgba(0,0,0,0); border-left: 3px solid rgba(0,0,0,0);
border-top: 1px solid rgba(0,0,0,.1);
border-bottom: 1px solid rgba(0,0,0,.05); border-bottom: 1px solid rgba(0,0,0,.05);
} }
tbody { tbody {
@ -147,9 +149,12 @@ span.ascribe-accordion-list-table-toggle {
.ascribe-accordion-list-item-edition-widget { .ascribe-accordion-list-item-edition-widget {
cursor: pointer; cursor: pointer;
//margin-left: 0.3em;
&:hover { &:hover {
color: $ascribe-color-full; color: $ascribe-color-dark;
}
.glyphicon {
top: 1px !important;
font-size: 0.8em;
} }
} }

View File

@ -11,8 +11,8 @@
.ascribe-edition-collapsible-wrapper > div:first-child { .ascribe-edition-collapsible-wrapper > div:first-child {
width: 100%; width: 100%;
cursor: pointer; cursor: pointer;
background-color: #F5F5F5; background-color: rgba(0,0,0,0);
padding: 10px; padding: 0 10px 10px 0;
margin-top: 20px; margin-top: 20px;
} }
.ascribe-edition-collapsible-wrapper > div > span { .ascribe-edition-collapsible-wrapper > div > span {