Sha256: 2a32ad6ae855cca93e69dc4b4e7c929de2d8889b67ebf269a30597c255a51f72
Contents?: true
Size: 795 Bytes
Versions: 149
Compression:
Stored size: 795 Bytes
Contents
# frozen_string_literal: true # :nodoc: class HorizontalForm < ApplicationForm form do |my_form| my_form.group(layout: :horizontal) do |name_group| name_group.text_field( name: :first_name, label: "First name", required: true, caption: "What your friends call you." ) name_group.text_field( name: :last_name, label: "Last name", required: true, caption: "What the principal calls you." ) end my_form.text_field( name: :dietary_restrictions, label: "Dietary restrictions", caption: "Any allergies?" ) my_form.check_box( name: :email_notifications, label: "Send me gobs of email!", caption: "Check this if you enjoy getting spam." ) end end
Version data entries
149 entries across 149 versions & 3 rubygems