Sha256: 4b010e4c873b1e7cf0b750c1c594344ab46253220cb601f19e1fc766b72bb57c
Contents?: true
Size: 972 Bytes
Versions: 5
Compression:
Stored size: 972 Bytes
Contents
= f.simple_fields_for :person do |ff| = field_set_tag "Person" do = ff.input :title = ff.input :given_name = 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)" = fa.input :street_1 = fa.input :street_2 = fa.input :street_3 = fa.input :town = fa.input :county = fa.input :postcode = fa.input :country, as: :string = fa.input :telephone = fa.input :email = f.input :description_id, collection: contact_descriptions = f.input :other_description = f.input :notes, as: :text, input_html: { rows: 2 } // Disable `for` attribute, so it works when multiple contact form on the page = f.input :default_cc, label_html: { for: nil }
Version data entries
5 entries across 5 versions & 1 rubygems