remove the edit page - it's not used anyway
This commit is contained in:
parent
63539e01f7
commit
9c31d9d6b4
3 changed files with 3 additions and 20 deletions
|
@ -23,12 +23,8 @@
|
||||||
%li= link_to "List", products_path
|
%li= link_to "List", products_path
|
||||||
%li= link_to "Add product" , barcode_products_path
|
%li= link_to "Add product" , barcode_products_path
|
||||||
%li= link_to "Barcodes", barcodes_path
|
%li= link_to "Barcodes", barcodes_path
|
||||||
%li.dropdown
|
%li
|
||||||
%a.dropdown-toggle{"data-toggle" => "dropdown", href: "#"}
|
%p.navbar-text Logged in as #{current_user.name}
|
||||||
Logged in as #{current_user.name}
|
|
||||||
%b.caret
|
|
||||||
%ul.dropdown-menu
|
|
||||||
%li= link_to "Edit profile", edit_user_path(current_user)
|
|
||||||
%li
|
%li
|
||||||
%p.navbar-text
|
%p.navbar-text
|
||||||
Balance:
|
Balance:
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
.row
|
|
||||||
= render 'sidebar'
|
|
||||||
.col-sm-9
|
|
||||||
%h2 Edit your settings
|
|
||||||
= f_form_for @user do |f|
|
|
||||||
= f.error_messages
|
|
||||||
= f.file_field :avatar
|
|
||||||
%p
|
|
||||||
If you check this option, nobody will be able to order stuff for you through koelkast.
|
|
||||||
Only on your account things can be ordered.
|
|
||||||
%p
|
|
||||||
= f.check_box :private
|
|
||||||
= f.submit "Update"
|
|
|
@ -17,7 +17,7 @@ Rails.application.routes.draw do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
resources :users, only: [:show, :edit, :update] do
|
resources :users, only: [:show] do
|
||||||
resources :orders, only: [:new, :create, :destroy]
|
resources :orders, only: [:new, :create, :destroy]
|
||||||
member do
|
member do
|
||||||
get 'quickpay' => 'users#quickpay'
|
get 'quickpay' => 'users#quickpay'
|
||||||
|
|
Loading…
Reference in a new issue