Sha256: 023fb936c37fcb839e5bd3b2180305ae9492bda74e4606cb5d7e1d2fc34fc317

Contents?: true

Size: 1.45 KB

Versions: 2

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} />
                <LC.FormGroup className='domain' sm=2 label=''>.freshbooks.com</LC.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

2 entries across 2 versions & 1 rubygems

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