Sha256: d44d340fc24234c61fac9f737e412d4995f37822398afb998378675166716ff0

Contents?: true

Size: 1.4 KB

Versions: 88

Compression:

Stored size: 1.4 KB

Contents

= f.simple_fields_for :person do |ff|
  / article
  /   header
  /     h2 Person
  .row
    .columns.small-2
      = ff.input :title
    .columns.small-5
      = ff.input :given_name
    .columns.small-5
      = ff.input :family_name

  /= field_set_tag "Address" do
  - ff.object.build_address
  = ff.simple_fields_for :address do |fa|
    / = fa.input :name,
    /             placeholder: "If different than above (optional)"
    = fa.input :organisation_name,
               placeholder: "e.g. practice or hospital name (optional)"
    .row
      .columns.small-6
        = fa.input :street_1
      .columns.small-6
        = fa.input :street_2
      .columns.small-6
        = fa.input :street_3
      .columns.small-6
        = fa.input :town
      .columns.small-6
        = fa.input :county
      .columns.small-6
        = fa.input :postcode
      .columns.small-6
        = fa.association :country
      .columns.small-6
        = fa.input :telephone
      .columns.small-6
        = fa.input :email
      .columns.small-6
        // Disable `for` attribute, so it works when multiple contact form on the page
        = f.input :default_cc, label_html: { for: nil }

    .row
      .columns.small-6
        = f.input :description_id, collection: contact_descriptions
      .columns.small-6
        = f.input :other_description
    .row
      .columns.small-12
        = f.input :notes, as: :text, input_html: { rows: 2 }


Version data entries

88 entries across 88 versions & 1 rubygems

Version Path
renalware-core-2.0.81 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.80 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.79 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.78 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.77 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.76 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.75 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.74 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.73 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.72 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.71 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.70 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.69 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.68 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.67 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.64 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.63 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.62 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.61 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.60 app/views/renalware/letters/contacts/_person_form.html.slim