Sha256: 9498f34d2cc0e99ac7b661b73e2acdda86640eb8d1aa457320911e5d3cc864f1

Contents?: true

Size: 490 Bytes

Versions: 161

Compression:

Stored size: 490 Bytes

Contents

# frozen_string_literal: true

# :nodoc:
class TextFieldAndCheckboxForm < ApplicationForm
  form do |my_form|
    my_form.text_field(
      name: :ultimate_answer,
      label: "Ultimate answer",
      required: true,
      caption: "The answer to life, the universe, and everything"
    )

    my_form.check_box(
      name: :enable_ipd,
      label: "Enable the Infinite Improbability Drive",
      caption: "Cross interstellar distances in a mere nothingth of a second."
    )
  end
end

Version data entries

161 entries across 161 versions & 3 rubygems

Version Path
openproject-primer_view_components-0.48.0 app/forms/text_field_and_checkbox_form.rb
openproject-primer_view_components-0.47.1 app/forms/text_field_and_checkbox_form.rb
openproject-primer_view_components-0.47.0 app/forms/text_field_and_checkbox_form.rb
primer_view_components-0.34.0 app/forms/text_field_and_checkbox_form.rb
openproject-primer_view_components-0.46.1 app/forms/text_field_and_checkbox_form.rb
openproject-primer_view_components-0.46.0 app/forms/text_field_and_checkbox_form.rb
openproject-primer_view_components-0.45.0 app/forms/text_field_and_checkbox_form.rb
openproject-primer_view_components-0.44.3 app/forms/text_field_and_checkbox_form.rb
openproject-primer_view_components-0.44.2 app/forms/text_field_and_checkbox_form.rb
openproject-primer_view_components-0.44.1 app/forms/text_field_and_checkbox_form.rb
primer_view_components-0.33.0 app/forms/text_field_and_checkbox_form.rb
openproject-primer_view_components-0.44.0 app/forms/text_field_and_checkbox_form.rb
openproject-primer_view_components-0.43.1 app/forms/text_field_and_checkbox_form.rb
openproject-primer_view_components-0.43.0 app/forms/text_field_and_checkbox_form.rb
primer_view_components-0.32.0 app/forms/text_field_and_checkbox_form.rb
openproject-primer_view_components-0.42.0 app/forms/text_field_and_checkbox_form.rb
primer_view_components-0.31.0 app/forms/text_field_and_checkbox_form.rb
openproject-primer_view_components-0.41.1 app/forms/text_field_and_checkbox_form.rb
openproject-primer_view_components-0.41.0 app/forms/text_field_and_checkbox_form.rb
openproject-primer_view_components-0.40.0 app/forms/text_field_and_checkbox_form.rb