Sha256: c56b6244a12ea080a278fcdb2612a52d511efd218c16a2d9cf3cdcd028da7cfc

Contents?: true

Size: 1.61 KB

Versions: 4

Compression:

Stored size: 1.61 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: :scope, 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.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

4 entries across 4 versions & 1 rubygems

Version Path
playbook_ui-6.1.0.pre.alpha5 app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb
playbook_ui-6.1.0.pre.alpha4 app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb
playbook_ui-6.1.0.pre.alpha2 app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb
playbook_ui-6.1.0.pre.alpha1 app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb