SHARE
TWEET

Untitled

a guest Sep 19th, 2019 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!-- app/views/users/_modal.html.erb -->
  2.  
  3. <%= simple_form_for user, remote: true do |f| %>
  4.   <div class="modal-header">
  5.     <h5 class="modal-title">Edit User</h5>
  6.     <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  7.       <span aria-hidden="true">&times;</span>
  8.     </button>
  9.   </div>
  10.   <div class="modal-body">
  11.     <div class="row">
  12.       <div class="col-md-6"><%= f.input :first_name %></div>
  13.       <div class="col-md-6"><%= f.input :last_name %></div>
  14.     </div>
  15.  
  16.     <%= f.input :address %>
  17.  
  18.     <div class="row">
  19.       <div class="col-md-6"><%= f.input :city %></div>
  20.       <div class="col-md-6"><%= f.input :state %></div>
  21.       <div class="col-md-6"></div>
  22.     </div>
  23.  
  24.     <div class="row">
  25.       <div class="col-md-6"><%= f.input :postcode %></div>
  26.       <div class="col-md-6"><%= f.input :phone %></div>
  27.     </div>
  28.   </div>
  29.   <div class="modal-footer">
  30.     <%= f.submit 'Save', class: 'btn btn-primary btn-block' %>
  31.   </div>
  32. <% end %>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top