Sha256: 06905bf0986a6200a80e8f3c408b47f456fb1a54e1b2f57592b55bfab0a938ad

Contents?: true

Size: 1.45 KB

Versions: 1

Compression:

Stored size: 1.45 KB

Contents

class Skr.Screens.FreshBooksImport.ApiInfo extends Lanes.React.Component
    listenNetworkEvents: true
    dataObjects:
        import: 'props'
    startImport: ->
        @import.save()

    render: ->
        return null if @import.isComplete() or @import.job.isSubmitted
        <div className="api-info">
            <LC.NetworkActivityOverlay model={@import} />
            <BS.Row>
                <BS.Col sm=12>
                    <h3>Freshbooks Account Information</h3>
                    <p>
                        The importer will download a summary of all Clients,
                        Projects, Invoices, and time entries from Fresh Books
                        and allow you to choose which ones to import.
                    </p>
                    <p>Your access information will not be stored and is only used to download records</p>
                </BS.Col>
            </BS.Row>
            <BS.Row>
                <LC.Input name='api_key' label='API Key' sm=7 model={@import} />
                <LC.Input name='domain' label='Company' sm=3 model={@import} />
                <BS.FormGroup className='domain' sm=2 label=''>.freshbooks.com</BS.FormGroup>
            </BS.Row>
            <BS.Row>
                <BS.Col smOffset=9 sm=2>
                    <BS.Button bsStyle="primary" bsSize="large" onClick={@startImport}>
                        Start Import
                    </BS.Button>
                </BS.Col>
            </BS.Row>
        </div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stockor-0.4.0 client/skr/screens/fresh-books-import/ApiInfo.cjsx