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
openproject-primer_view_components-0.10.0 app/forms/multi_text_field_form.rb
primer_view_components-0.9.0 app/forms/multi_text_field_form.rb
openproject-primer_view_components-0.9.1 app/forms/multi_text_field_form.rb
openproject-primer_view_components-0.9.0 app/forms/multi_text_field_form.rb
openproject-primer_view_components-0.8.0 app/forms/multi_text_field_form.rb
primer_view_components-0.8.0 app/forms/multi_text_field_form.rb
primer_view_components-0.7.0 app/forms/multi_text_field_form.rb
openproject-primer_view_components-0.7.0 app/forms/multi_text_field_form.rb
openproject-primer_view_components-0.6.3 app/forms/multi_text_field_form.rb
primer_view_components-0.6.0 app/forms/multi_text_field_form.rb
primer_view_components-0.5.1 app/forms/multi_text_field_form.rb
primer_view_components-0.5.0 app/forms/multi_text_field_form.rb
primer_view_components-0.4.0 app/forms/multi_text_field_form.rb
primer_view_components-0.3.1 app/forms/multi_text_field_form.rb
primer_view_components-0.3.0 app/forms/multi_text_field_form.rb
primer_view_components-0.2.0 app/forms/multi_text_field_form.rb
primer_view_components-0.1.9 app/forms/multi_text_field_form.rb
primer_view_components-0.1.8 app/forms/multi_text_field_form.rb
primer_view_components-0.1.7 app/forms/multi_text_field_form.rb
primer_view_components-0.1.6 app/forms/multi_text_field_form.rb