Sha256: 6429fdd28c2fd32ada9caf93ebfec06065a7843aa5ff77f4910af2249228b731

Contents?: true

Size: 1.39 KB

Versions: 24

Compression:

Stored size: 1.39 KB

Contents

- show_company ||= false
%div{:class => address_type}
  = error_messages_for address, :header_message => nil
  %table
    = hidden_field_tag "address_type", address_type
    = form_row("First Name", :required => true) {text_field_tag "#{address_type}[first_name]", address.first_name}   
    = form_row("Last Name", :required => true) {text_field_tag "#{address_type}[last_name]", address.last_name}   
    = form_row("Company") { text_field_tag "#{address_type}[company]", address.company } if show_company
    = form_row("Address Line 1", :required => true) {text_field_tag "#{address_type}[address1]", address.address1}   
    = form_row("Address Line 2") {text_field_tag "#{address_type}[address2]", address.address2}   
    = form_row("City", :required => true) {text_field_tag "#{address_type}[city]", address.city}   
    = form_row("Country", :required => true) {select_tag "#{address_type}[country_id]", options_for_select(Country.options_for_select, address.country_id)}   
    = form_row("Province") {select_tag "#{address_type}[province_id]", options_for_select(Province.options_for_select, address.province_id)}   
    = form_row("Postal Code", :required => true) {text_field_tag "#{address_type}[postal]", address.postal}   
    = form_row("Email", :required => true) {text_field_tag "#{address_type}[email]", address.email}   
    = form_row("Phone") {text_field_tag "#{address_type}[phone]", address.phone}   

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
forge-cli-0.1.10 lib/forge/app/views/orders/_address_form.html.haml
forge-cli-0.1.9 lib/forge/app/views/orders/_address_form.html.haml
forge-cli-0.1.8 lib/forge/app/views/orders/_address_form.html.haml
forge-cli-0.1.7 lib/forge/app/views/orders/_address_form.html.haml
forge-cli-0.1.6 lib/forge/app/views/orders/_address_form.html.haml
forge-cli-0.1.5 lib/forge/app/views/orders/_address_form.html.haml
forge-cli-0.1.4 lib/forge/app/views/orders/_address_form.html.haml
forge-cli-0.1.3 lib/forge/app/views/orders/_address_form.html.haml
forge-cli-0.1.2 lib/forge/app/views/orders/_address_form.html.haml
forge-cli-0.1.1 lib/forge/app/views/orders/_address_form.html.haml
forge-cli-0.1.0 lib/forge/app/views/orders/_address_form.html.haml
forge-cli-0.0.18 lib/forge/app/views/orders/_address_form.html.haml
forge-cli-0.0.17 lib/forge/app/views/orders/_address_form.html.haml
forge-cli-0.0.16 lib/forge/app/views/orders/_address_form.html.haml
forge-cli-0.0.15 lib/forge/app/views/orders/_address_form.html.haml
forge-cli-0.0.14 lib/forge/app/views/orders/_address_form.html.haml
forge-cli-0.0.13 lib/forge/app/views/orders/_address_form.html.haml
forge-cli-0.0.12 lib/forge/app/views/orders/_address_form.html.haml
forge-cli-0.0.11 lib/forge/app/views/orders/_address_form.html.haml
forge-cli-0.0.10 lib/forge/app/views/orders/_address_form.html.haml