Sha256: e810106bdb047b01a8589ad3d2b5f04c920837fdd080043428187319efc7d741

Contents?: true

Size: 1.74 KB

Versions: 12

Compression:

Stored size: 1.74 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 } %>
  <%= form.date_picker :example_date_picker1, props: { default_date: "blank" } %>

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
playbook_ui-7.3.0.pre.alpha2 app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb
playbook_ui-6.7.0 app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb
playbook_ui-6.6.1 app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb
playbook_ui-7.0.0.pre.alpha10 app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb
playbook_ui-6.6.0 app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb
playbook_ui-6.5.2 app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb
playbook_ui-7.0.1.pre.alpha12 app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb
playbook_ui-7.0.1.pre.alpha11 app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb
playbook_ui-7.0.1.pre.alpha10 app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb
playbook_ui-7.0.1.pre.alpha9 app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb
playbook_ui-6.5.1 app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb
playbook_ui-6.5.0 app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb