Sha256: 19c0ba02aa556c7591185cd93109ce78b274f4fd05fbb6261c54398fd1a7c2b3

Contents?: true

Size: 545 Bytes

Versions: 149

Compression:

Stored size: 545 Bytes

Contents

# frozen_string_literal: true

# :nodoc:
class MultiTextFieldForm < ApplicationForm
  form do |my_form|
    my_form.text_field(
      name: :first_name,
      label: "First name",
      required: true,
      caption: "That which we call a rose by any other name would smell as sweet."
    )

    my_form.separator

    my_form.text_field(
      name: :last_name,
      label: "Last name",
      required: true,
      caption: "Bueller. Bueller. Bueller."
    )

    my_form.hidden(
      name: :csrf_token,
      value: "abc123"
    )
  end
end

Version data entries

149 entries across 149 versions & 3 rubygems

Version Path
primer_view_components-0.0.111 app/forms/multi_text_field_form.rb
primer_view_components-0.0.110 app/forms/multi_text_field_form.rb
primer_view_components-0.0.109 app/forms/multi_text_field_form.rb
primer_view_components-0.0.108 app/forms/multi_text_field_form.rb
primer_view_components-0.0.107 app/forms/multi_text_field_form.rb
primer_view_components-0.0.106 app/forms/multi_text_field_form.rb
primer_view_components-0.0.105 app/forms/multi_text_field_form.rb
primer_view_components-0.0.104 app/forms/multi_text_field_form.rb
primer_view_components-0.0.103 app/forms/multi_text_field_form.rb