1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 01:25:17 +01:00

add collapsible appendix to send contract form

This commit is contained in:
Tim Daubenschütz 2015-08-27 17:33:51 +02:00
parent 65148e24de
commit 86efb66663
2 changed files with 14 additions and 12 deletions

View File

@ -2,8 +2,6 @@
import React from 'react';
import Property from './property';
import LoanContractListActions from '../../actions/loan_contract_list_actions';
import LoanContractListStore from '../../stores/loan_contract_list_store';
@ -11,6 +9,9 @@ import GlobalNotificationModel from '../../models/global_notification_model';
import GlobalNotificationActions from '../../actions/global_notification_actions';
import Form from './form';
import Property from './property';
import PropertyCollapsible from './property_collapsible';
import InputTextAreaToggable from './input_textarea_toggable';
import ApiUrls from '../../constants/api_urls';
@ -96,7 +97,7 @@ let ContractForm = React.createClass({
buttons={<button
type="submit"
className="btn ascribe-btn ascribe-btn-login">
{getLangText('SEND LOAN REQUEST')}
{getLangText('Send loan request')}
</button>}
spinner={
<span className="btn ascribe-btn ascribe-btn-login ascribe-btn-login-spinner">
@ -104,7 +105,7 @@ let ContractForm = React.createClass({
</span>
}>
<div className="ascribe-form-header">
<h3>{getLangText('CONTRACT FORM')}</h3>
<h3>{getLangText('Contract form')}</h3>
</div>
<Property
name='artist_name'
@ -123,14 +124,15 @@ let ContractForm = React.createClass({
required/>
</Property>
{this.getContracts()}
<Property
<PropertyCollapsible
name='appendix'
label={getLangText('Appendix')}>
<input
type="text"
placeholder={getLangText('Add an appendix to the contract')}
required/>
</Property>
checkboxLabel={getLangText('Add appendix to the contract')}>
<span>{getLangText('Appendix')}</span>
<InputTextAreaToggable
rows={1}
editable={true}
placeholder={getLangText('This will be appended to the contract selected above')}/>
</PropertyCollapsible>
</Form>
);
}

View File

@ -70,7 +70,7 @@ let ROUTES = {
<Route name="logout" path="logout" handler={LogoutContainer} />
<Route name="signup" path="signup" handler={SignupContainer} />
<Route name="password_reset" path="password_reset" handler={PasswordResetContainer} />
<Route name="request_loan" path="request_loan" handler={IkonotvRequestLoan} headerTitle="SEND NEW CONTRACT" />
<Route name="request_loan" path="request_loan" handler={IkonotvRequestLoan} headerTitle="SEND NEW CONTRACT"/>
<Route name="register_piece" path="register_piece" handler={RegisterPiece} headerTitle="+ NEW WORK"/>
<Route name="pieces" path="collection" handler={IkonotvPieceList} headerTitle="COLLECTION"/>
<Route name="piece" path="pieces/:pieceId" handler={CylandPieceContainer} />