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.15 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.14 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.13 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.12 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.11 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.9 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.8 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.7 app/views/renalware/letters/contacts/_person_form.html.slim