+ {getLangText('No private contracts found, please go to the ')} + {getLangText('settings page')} + {getLangText(' and create them.')} +
+{appendix.default} @@ -99,30 +108,54 @@ let IkonotvContractNotifications = React.createClass({ return null; }, + handleConfirm() { + let contractAgreement = this.state.contractAgreementListNotifications[0].contract_agreement; + OwnershipFetcher.confirmContractAgreement(contractAgreement).then( + () => this.handleConfirmSuccess() + ); + }, + handleConfirmSuccess() { - let notification = new GlobalNotificationModel(getLangText('You have accepted the conditions'), 'success', 10000); + let notification = new GlobalNotificationModel(getLangText('You have accepted the conditions'), 'success', 5000); GlobalNotificationActions.appendGlobalNotification(notification); this.transitionTo('pieces'); }, handleDeny() { let contractAgreement = this.state.contractAgreementListNotifications[0].contract_agreement; - requests.put(apiUrls.ownership_contract_agreements_deny, {contract_agreement_id: contractAgreement.id}).then( + OwnershipFetcher.denyContractAgreement(contractAgreement).then( () => this.handleDenySuccess() ); }, handleDenySuccess() { - let notification = new GlobalNotificationModel(getLangText('You have denied the conditions'), 'success', 10000); + let notification = new GlobalNotificationModel(getLangText('You have denied the conditions'), 'success', 5000); GlobalNotificationActions.appendGlobalNotification(notification); this.transitionTo('pieces'); }, + getCopyrightAssociationForm(){ + let c = this.state.currentUser; + + if (c && c.profile && !c.profile.copyright_association) { + return ( +++ ); + } + return null; + }, + render() { if (this.state.contractAgreementListNotifications && this.state.contractAgreementListNotifications.length > 0) { - let contractAgreement = this.state.contractAgreementListNotifications[0].contract_agreement; return ({getLangText('Are you a member of any copyright societies?')}
+ ++ {AppConstants.copyrightAssociations.join(', ')} +
++ {this.getContract()} -@@ -133,41 +166,17 @@ let IkonotvContractNotifications = React.createClass({- {this.getAppendix} -{getLangText('Are you a member of any copyright societies?')}
-- ARS, DACS, Bildkunst, Pictoright, SODRAC, Copyright Agency/Viscopy, SAVA, Bildrecht GmbH, - SABAM, AUTVIS, CREAIMAGEN, SONECA, Copydan, EAU, Kuvasto, GCA, HUNGART, IVARO, SIAE, JASPAR-SPDA, - AKKA/LAA, LATGA-A, SOMAAP, ARTEGESTION, CARIER, BONO, APSAV, SPA, GESTOR, VISaRTA, RAO, LITA, - DALRO, VeGaP, BUS, ProLitteris, AGADU, AUTORARTE, BUBEDRA, BBDA, BCDA, BURIDA, ADAVIS, BSDA + {this.getAppendix()} + {this.getCopyrightAssociationForm()} +
+ +
-