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.58 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.57 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.56 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.55 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.54 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.53 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.52 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.51 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.50 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.48 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.47 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.46 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.45 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.44 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.43 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.42 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.41 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.40 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.39 app/views/renalware/letters/contacts/_person_form.html.slim
renalware-core-2.0.38 app/views/renalware/letters/contacts/_person_form.html.slim