Sha256: 3fe121a62dde7ee6519b3783d9b61b1b8868f673f0a7fad170b620f39ffa7790

Contents?: true

Size: 1.02 KB

Versions: 2

Compression:

Stored size: 1.02 KB

Contents

class Skr.Screens.GlAccounts extends Skr.Screens.Base

    dataObjects:
        account: ->
            @loadOrCreateModel({
                klass: Skr.Models.GlAccount,
                prop: 'account', attribute: 'number'
            })

    getInitialState: ->
        commands: new Skr.Screens.Commands(this, modelName: 'account', print: true)

    render: ->
        <LC.ScreenWrapper identifier="gl-accounts">
            <SC.ScreenControls commands={@state.commands} />
            <BS.Row>

                <SC.GlAccountChooser sm=2 model={@account}
                    commands={@state.commands}
                    label='Number' name="number" editOnly finderField />

                <LC.ToggleField sm=2 align='center' label="Active?"
                    name="is_active" model={@account} />

                <LC.Input sm=8 name="name" model={@account} />

            </BS.Row>
            <BS.Row>
                <LC.Input type='textarea' sm=12 name="description" model={@account} />
            </BS.Row>
        </LC.ScreenWrapper>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stockor-0.3.0 client/skr/screens/gl-accounts/GlAccounts.cjsx
stockor-0.2 client/skr/screens/gl-accounts/GlAccounts.cjsx