Sha256: 4899180c453880a62977ef2a520bacac367e060d5ca3c1c5081b97ae9133a206

Contents?: true

Size: 1.89 KB

Versions: 5

Compression:

Stored size: 1.89 KB

Contents

<div class="card card-primary my-3">
  <div class="card-header fw-bold">
    Vertical layout
  </div>
  <div class="card-body">
    <%= bootstrap_form_for @user do |form| %>
      <%= form.text_field :name, autocomplete: "new-name" %>
      <%= form.text_field :username, autocomplete: "new-username" %>
      <%= form.email_field :email, autocomplete: "new-email" %>
      <%= form.password_field :password, autocomplete: "new-password" %>
      <%= form.phone_field :mobile_number %>
      <%= form.date_field :birth_date %>
      <%= form.range_field :excellence %>
      <%= form.url_field :blog_url %>
      <%= form.collection_radio_buttons :fruit_id, ::Fruit.all, :id, :name, {checked: form.object.fruit_id, bootstrap: {inline: true}} %>
      <%= form.color_field :favorite_color %>
      <%= form.collection_check_boxes :skill_ids, ::Skill.all, :id, :name, multiple: true, bootstrap: {inline: true} %>
      <%= form.number_field :expected_ctc, bootstrap: {prepend: "$", append: "0.0"} %>
      <%= form.date_select :interview_date %>
      <%= form.time_select :interview_time %>
      <%= form.datetime_select :interview_datetime %>
      <%= form.weekday_select :weekly_off %>
      <%= form.fields_for :address, include_id: false do |address_form| %>
        <%= address_form.text_area :street %>
        <%= address_form.text_field :state %>
        <%= address_form.grouped_collection_select :city, ::Country.includes(:cities), :cities, :name, :id, :name, {include_blank: "Select city"} %>
        <%= address_form.text_field :postal_code %>
        <%= address_form.select :country_id, options_for_select(::Country.pluck(:name, :id), address_form.object.country_id),
            {include_blank: "Select Country"} %>
      <% end %>
      <%= form.check_box :terms, required: true %>
      <%= form.primary "Register" %>
      <%= link_to "Cancel", users_path, class: "btn btn-secondary" %>
    <% end %>
  </div>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rails_bootstrap_form-0.9.5 demo/app/views/users/_vertical_form.html.erb
rails_bootstrap_form-0.9.4 demo/app/views/users/_vertical_form.html.erb
rails_bootstrap_form-0.9.3 demo/app/views/users/_vertical_form.html.erb
rails_bootstrap_form-0.9.2 demo/app/views/users/_vertical_form.html.erb
rails_bootstrap_form-0.9.1 demo/app/views/users/_vertical_form.html.erb