Sha256: b11dfeb4add49c20001e235a30770f39c189f5084635e1654c7b3a0dbe1f3453

Contents?: true

Size: 1.02 KB

Versions: 6

Compression:

Stored size: 1.02 KB

Contents

.row
  .col-md-12
    = f.text_field :title, label: t(:'address.title')

.row
  .col-md-3
    = f.select :country_id, options_from_collection_for_select(@countries, :id, :name, (f.object.country_id || @default_country.try(:id))) , { prompt: t(:'address.choose_country') }, { id: "country_dropdown", label: t(:'address.country') }
  .col-md-3
    #state-dropdown
      = f.select :state_id, options_from_collection_for_select(state_load(f.object), :id, :name, (f.object.state_id || @default_state.try(:id))), { prompt: t(:'address.state.choose') }, { class: 'form-control', disabled: disabled?(f.object), label: t(:'address.state') }

  .col-md-3
    = f.text_field :zipcode, label: t(:'address.zipcode')

  .col-md-3
    = f.text_field :city, value: f.object.city ||  Gaku::Preset.address('city'), label: t(:'address.city')
.row
  .col-md-6
    = f.text_field :address1, label: t(:'address.address1')
  .col-md-6
    = f.text_field :address2, label: t(:'address.address2')

javascript:
  var state_preset = "#{Gaku::Preset.address('state')}"

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
gaku-0.2.2 frontend/app/views/gaku/addresses/_form_fields.html.slim
gaku_frontend-0.2.2 app/views/gaku/addresses/_form_fields.html.slim
gaku-0.2.1 frontend/app/views/gaku/addresses/_form_fields.html.slim
gaku_frontend-0.2.1 app/views/gaku/addresses/_form_fields.html.slim
gaku-0.2.0 frontend/app/views/gaku/addresses/_form_fields.html.slim
gaku_frontend-0.2.0 app/views/gaku/addresses/_form_fields.html.slim