Sha256: e284639e1ba7e3fffd15e3cc72113cd9351755e5bebe8c58428d6c55b19221ee

Contents?: true

Size: 1.6 KB

Versions: 3

Compression:

Stored size: 1.6 KB

Contents

class Skr.Components.Address extends Lanes.React.Component

    propTypes:
        model: Lanes.PropTypes.State.isRequired

    renderTitle: ->
        <BS.Row>
            <BS.Col xs=12>
                <h3 className="address-title">{@props.title}</h3>
            </BS.Col>
        </BS.Row>

    render: ->
        colProps = _.omit(@props, 'name')
        colProps.className = _.classnames("address", @props.className)

        <BS.Col {...colProps}>
            {@renderTitle() if @props.title}
            <BS.Row>
                <BS.Col xs=12>
                    <LC.Input name="name" model={@model} />
                </BS.Col>
            </BS.Row>
            <BS.Row>
                <BS.Col sm=6>
                    <LC.Input name="phone" model={@model} />
                </BS.Col>
                <BS.Col sm=6>
                    <LC.Input name="email" model={@model} />
                </BS.Col>
            </BS.Row>
            <BS.Row>
                <BS.Col md=6>
                    <LC.Input name="line1" model={@model} />
                </BS.Col>
                <BS.Col md=6>
                    <LC.Input name="line2" model={@model} />
                </BS.Col>
            </BS.Row>
            <BS.Row>
                <BS.Col md=7>
                    <LC.Input name="city" model={@model} />
                </BS.Col>
                <BS.Col xs=8 md=3>
                    <LC.Input name="state" model={@model} />
                </BS.Col>
                <BS.Col xs=4 md=2>
                    <LC.Input name="postal_code" model={@model} />
                </BS.Col>
            </BS.Row>
        </BS.Col>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
stockor-0.4.0 client/skr/components/address/Address.cjsx
stockor-0.3.0 client/skr/components/address/Address.cjsx
stockor-0.2 client/skr/components/address/Address.cjsx