Sha256: ff950d1104c703bf19a03fd958c64920ff6f9323efd0d1261e63c21b16fa4a7b

Contents?: true

Size: 890 Bytes

Versions: 50

Compression:

Stored size: 890 Bytes

Contents

# frozen_string_literal: true

# :nodoc:
# :nocov:
class ImmediateValidationForm < ApplicationForm
  form do |validation_form|
    validation_form.text_field(
      name: :has_error,
      label: "Will have error",
      caption: "Every time this checks with the server, it returns an error",
      auto_check_src: @view_context.example_check_error_path
    )

    validation_form.text_field(
      name: :no_error,
      label: "Will not error",
      caption: "Will not have an error when it checks the server",
      auto_check_src: @view_context.example_check_ok_path,
      validation_message: "This message will go away once you type something"
    )

    validation_form.text_field(
      name: :random_error,
      label: "Random error",
      caption: "Server checks will randomly respond with errors",
      auto_check_src: @view_context.example_check_random_path
    )
  end
end

Version data entries

50 entries across 50 versions & 3 rubygems

Version Path
openproject-primer_view_components-0.16.0 app/forms/immediate_validation_form.rb
openproject-primer_view_components-0.15.0 app/forms/immediate_validation_form.rb
openproject-primer_view_components-0.14.0 app/forms/immediate_validation_form.rb
openproject-primer_view_components-0.13.1 app/forms/immediate_validation_form.rb
primer_view_components-0.13.2 app/forms/immediate_validation_form.rb
primer_view_components-0.13.1 app/forms/immediate_validation_form.rb
openproject-primer_view_components-0.13.0 app/forms/immediate_validation_form.rb
primer_view_components-0.13.0 app/forms/immediate_validation_form.rb
primer_view_components-0.12.0 app/forms/immediate_validation_form.rb
primer_view_components-0.11.0 app/forms/immediate_validation_form.rb
openproject-primer_view_components-0.12.1 app/forms/immediate_validation_form.rb
primer_view_components-0.10.0 app/forms/immediate_validation_form.rb
openproject-primer_view_components-0.11.0 app/forms/immediate_validation_form.rb
openproject-primer_view_components-0.10.0 app/forms/immediate_validation_form.rb
primer_view_components-0.9.0 app/forms/immediate_validation_form.rb
openproject-primer_view_components-0.9.1 app/forms/immediate_validation_form.rb
openproject-primer_view_components-0.9.0 app/forms/immediate_validation_form.rb
openproject-primer_view_components-0.8.0 app/forms/immediate_validation_form.rb
primer_view_components-0.8.0 app/forms/immediate_validation_form.rb
primer_view_components-0.7.0 app/forms/immediate_validation_form.rb