Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <% provide(:title, "Edit user") %>
- <h1>Update your profile</h1>
- <div class="row">
- <div class="span6 offset 3">
- <%= form_for(@user) do |f| %>
- <%= render 'shared/error_messages' %>
- <%= f.label :name %>
- <%= f.text_field :name %>
- <%= f.label :email %>
- <%= f.text_field :email %>
- <%= f.label :phone %>
- <%= f.text_field :phone %>
- <%= f.label :password %>
- <%= f.password_field :password %>
- <%= f.label :password_confirmation, "Confirm Password" %>
- <%= f.password_field :password_confirmation %>
- <%= f.submit "Save changes", class: "btn btn-large btn-primary" %>
- <% end %>
- <%= gravatar_for @user %>
- <a href="http://gravatar.com/emails">change</a>
- </div>
- </div>
- <h1>Add a Textbook</h1>
- <div class="row">
- <div class="span6 offset 3">
- <%= form_for(@user.textbooks) do |f| %>
- <%= render 'shared/error_messages' %>
- <%= f.label :title %>
- <%= f.text_field :title %>
- <%= f.label :author %>
- <%= f.text_field :author %>
- <%= f.label :course %>
- <%= f.text_field :course %>
- <%= f.label :isbn %>
- <%= f.text_field :isbn %>
- <%= f.label :version %>
- <%= f.text_field :version %>
- <%= f.label :price %>
- <%= f.text_field :price %>
- <%= f.submit "Add book", class: "btn btn-large btn-primary" %>
- <% end %>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement