Sha256: 7a871abf60bd9a0a2e7dabb7ac8ac190922140af6d71daf6700ec8a056cd5f7a
Contents?: true
Size: 663 Bytes
Versions: 4
Compression:
Stored size: 663 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) do |c| c.with_leading_visual_icon(icon: :"check-circle") end button_group.button(name: :button, label: "Click me", mb: 3) do |c| c.with_leading_visual_icon(icon: :alert) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems