Sha256: be2ece7d951ef62a72102b41db948ddf23cde533272fdaef2b47eb8dea78e9b4

Contents?: true

Size: 1.98 KB

Versions: 33

Compression:

Stored size: 1.98 KB

Contents

<div class="card card-primary my-3">
  <div class="card-header fw-bold">
    Profile Form (Without RailsBootstrapForm)
  </div>
  <div class="card-body">
    <%= form_for @user do |form| %>
      <%= form.text_field :name, autocomplete: "new-name" %>
      <%= form.email_field :email %>
      <%= form.password_field :password, autocomplete: "new-password" %>
      <%= form.phone_field :mobile_number %>
      <%= form.date_field :birth_date %>
      <%= form.check_box :terms %>
      <%= form.range_field :excellence %>
      <%= form.url_field :blog_url %>
      <%= form.url_field :favorite_color %>
      <%= form.select :fruit_id, options_for_select(::Fruit.pluck(:name, :id), form.object.fruit_id), include_blank: "Select Favorite Fruit" %>
      <%= form.collection_check_boxes :skill_ids, ::Skill.all, :id, :name do |b| %>
        <%= b.check_box + b.text %>
      <% end %>
      <%= form.fields_for :address, include_id: false do |address_form| %>
        <%= address_form.text_area :street %>
        <%= address_form.text_field :state %>
        <%= address_form.text_field :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 %>
      <div class="mt-3">
        <%= form.submit "Register", class: "btn btn-primary" %>
        <%= link_to "Cancel", users_path, class: "btn btn-secondary" %>
      </div>
    <% end %>
  </div>
</div>

<div class="card card-primary">
  <div class="card-header fw-bold">
    Login Form (Without RailsBootstrapForm)
  </div>
  <div class="card-body">
    <%= form_for @user do |form| %>
      <%= form.email_field :email %>
      <%= form.password_field :password, autocomplete: "new-password" %>
      <div class="mt-3">
        <%= form.submit "Login", class: "btn btn-primary" %>
        <%= link_to "Cancel", users_path, class: "btn btn-secondary" %>
      </div>
    <% end %>
  </div>
</div>

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
rails_bootstrap_form-0.9.9 demo/app/views/users/_form_without_bootstrap_helpers.html.erb
rails_bootstrap_form-0.9.8 demo/app/views/users/_form_without_bootstrap_helpers.html.erb
rails_bootstrap_form-0.9.7 demo/app/views/users/_form_without_bootstrap_helpers.html.erb
rails_bootstrap_form-0.9.6 demo/app/views/users/_form_without_bootstrap_helpers.html.erb
rails_bootstrap_form-0.9.5 demo/app/views/users/_form_without_bootstrap_helpers.html.erb
rails_bootstrap_form-0.9.4 demo/app/views/users/_form_without_bootstrap_helpers.html.erb
rails_bootstrap_form-0.9.3 demo/app/views/users/_form_without_bootstrap_helpers.html.erb
rails_bootstrap_form-0.9.2 demo/app/views/users/_form_without_bootstrap_helpers.html.erb
rails_bootstrap_form-0.9.1 demo/app/views/users/_form_without_bootstrap_helpers.html.erb
rails_bootstrap_form-0.9.0 demo/app/views/users/_form_without_bootstrap_helpers.html.erb
rails_bootstrap_form-0.8.3 demo/app/views/users/_form_without_bootstrap_helpers.html.erb
rails_bootstrap_form-0.8.2 demo/app/views/users/_form_without_bootstrap_helpers.html.erb
rails_bootstrap_form-0.8.1 demo/app/views/users/_form_without_bootstrap_helpers.html.erb
rails_bootstrap_form-0.8.0 demo/app/views/users/_form_without_bootstrap_helpers.html.erb
rails_bootstrap_form-0.7.2 demo/app/views/users/_form_without_bootstrap_helpers.html.erb
rails_bootstrap_form-0.7.1 demo/app/views/users/_form_without_bootstrap_helpers.html.erb
rails_bootstrap_form-0.7.0 demo/app/views/users/_form_without_bootstrap_helpers.html.erb
rails_bootstrap_form-0.6.2 demo/app/views/users/_form_without_bootstrap_helpers.html.erb
rails_bootstrap_form-0.6.1 demo/app/views/users/_form_without_bootstrap_helpers.html.erb
rails_bootstrap_form-0.6.0 demo/app/views/users/_form_without_bootstrap_helpers.html.erb