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.101 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.100 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.99 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.98 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.97 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.96 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.95 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.94 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.93 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.92 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.91 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.90 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.89 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.88 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.87 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.86 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.85 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.84 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.83 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.82 app/views/renalware/letters/contacts/_person_form.html.slim