Sha256: eff96031be872b9536f8a7ebe80710c4625b0468344a58a9fad54319026e00f1

Contents?: true

Size: 1.9 KB

Versions: 25

Compression:

Stored size: 1.9 KB

Contents

<%
  example_collection = [
    OpenStruct.new(name: "Alabama", value: 1),
    OpenStruct.new(name: "Alaska", value: 2),
    OpenStruct.new(name: "Arizona", value: 3),
    OpenStruct.new(name: "Arkansas", value: 4),
    OpenStruct.new(name: "California", value: 5),
    OpenStruct.new(name: "Colorado", value: 6),
    OpenStruct.new(name: "Connecticut", value: 7),
    OpenStruct.new(name: "Delaware", value: 8),
    OpenStruct.new(name: "Florida", value: 9),
    OpenStruct.new(name: "Georgia", value: 10),
  ]
%>

<%= pb_rails("form", props: { form_system_options: { scope: :example, method: :get } }) do |form| %>
  <%= form.text_field :example_text_field, props: { label: true } %>
  <%= form.telephone_field :example_phone_field, props: { label: true } %>
  <%= form.email_field :example_email_field, props: { label: true } %>
  <%= form.number_field :example_number_field, props: { label: true } %>
  <%= form.search_field :example_search_field, props: { label: true } %>
  <%= form.password_field :example_password_field, props: { label: true } %>
  <%= form.url_field :example_url_field, props: { label: true } %>
  <%= form.text_area :example_text_area, props: { label: true } %>
  <%= form.select :example_select, [ ["Yes", 1], ["No", 2] ], props: { label: true } %>
  <%= form.collection_select :example_collection_select, example_collection, :value, :name, props: { label: true } %>
  <%= form.check_box :example_checkbox,
    data: { field1: "value1", field2: "value2" },
    props: { text: "Example Checkbox", label: true },
    checked_value: "yes",
    unchecked_value: "no",
    id: "checkbox-id",
    name: "checkbox-name",
    class: "checkbox-class" 
  %>
  <%= form.date_picker :example_date_picker_1, props: { default_date: "blank", label: true } %>

  <%= form.actions do |action| %>
    <%= action.submit %>
    <%= action.button props: { type: "reset", text: "Cancel", variant: "secondary" } %>
  <% end %>
<% end %>

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
playbook_ui-7.4.0.pre.alpha6 app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb
playbook_ui-7.4.0.pre.alpha4 app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb
playbook_ui-7.4.0.pre.alpha2 app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb
playbook_ui-7.4.0.pre.alpha1 app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb
playbook_ui-7.3.0.pre.alpha12 app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb
playbook_ui-7.3.0.pre.alpha11 app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb
playbook_ui-7.3.0.pre.alpha10 app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb
playbook_ui-7.3.0.pre.alpha9 app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb
playbook_ui-7.3.0.pre.alpha8 app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb
playbook_ui-7.3.0.pre.alpha7 app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb
playbook_ui-7.3.0.pre.alpha6 app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb
playbook_ui-7.3.0.pre.alpha4 app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb
playbook_ui-7.3.0.pre.alpha3 app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb
playbook_ui-7.3.0.pre.alpha1 app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb
playbook_ui-7.2.0 app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb
playbook_ui-7.1.2 app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb
playbook_ui-7.1.0.pre.alpha2 app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb
playbook_ui-7.1.1.pre.alpha1 app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb
playbook_ui-7.1.1 app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb
playbook_ui-7.1.0.pre.alpha1 app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb