Sha256: f63ace3dc4f36e34878769034c0040238db5e9797a2d48934ef8d43b646c4a7d

Contents?: true

Size: 711 Bytes

Versions: 122

Compression:

Stored size: 711 Bytes

Contents

# frozen_string_literal: true

# :nodoc:
class SubmitButtonForm < ApplicationForm
  form do |my_form|
    my_form.fields_for(:name_form) do |builder|
      MultiTextFieldForm.new(builder)
    end

    my_form.text_field(
      name: :green,
      label: "I'm green",
      color: :success
    )

    my_form.group(layout: :horizontal) do |button_group|
      button_group.submit(name: :submit, label: "Submit", scheme: :primary, mb: 3, disabled: true) do |component|
        component.with_leading_visual_icon(icon: :"check-circle")
      end

      button_group.button(name: :button, label: "Click me", mb: 3) do |component|
        component.with_leading_visual_icon(icon: :alert)
      end
    end
  end
end

Version data entries

122 entries across 122 versions & 2 rubygems

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