From e56badcbf85cfc74849bdfac4d94e565cafc8c57 Mon Sep 17 00:00:00 2001 From: Benjamin ter Kuile Date: Sat, 25 Aug 2012 15:55:56 +0200 Subject: [PATCH] end of day commit for users and suppliers authenticated handling --- app/assets/images/frames/smartphone.svg | 121 ++++-- app/assets/images/frames/tablet.svg | 367 +++--------------- app/assets/javascripts/qrammer.js.coffee | 29 +- app/controllers/application_controller.rb | 2 +- app/controllers/dashboard_controller.rb | 73 +--- app/controllers/lists_controller.rb | 43 +- app/controllers/orders_controller.rb | 14 - app/controllers/supplier_controller.rb | 84 ++++ app/controllers/suppliers_controller.rb | 69 ---- app/controllers/user_controller.rb | 111 ++++++ app/models/list.rb | 12 +- app/models/order.rb | 2 + app/views/dashboard/phone_home.html.slim | 4 +- app/views/dashboard/select_qrcode.html.slim | 2 +- app/views/dashboard/user_history.html.slim | 2 - app/views/layouts/application.html.slim | 1 + app/views/layouts/tablet.html.slim | 4 +- app/views/lists/_form.html.slim | 6 +- app/views/lists/index.html.slim | 2 + app/views/lists/show.html.slim | 3 + app/views/orders/_form.html.slim | 2 +- .../active_lists.html.slim | 4 +- .../active_orders.html.slim | 4 +- .../active_list.html.slim} | 2 +- app/views/user/history_list.html.slim | 3 + app/views/user/list_history.html.slim | 2 + .../list_products.html.slim} | 2 +- config/locales/en.yml | 1 + config/routes.rb | 46 +-- 29 files changed, 435 insertions(+), 582 deletions(-) create mode 100644 app/controllers/supplier_controller.rb create mode 100644 app/controllers/user_controller.rb delete mode 100644 app/views/dashboard/user_history.html.slim rename app/views/{suppliers => supplier}/active_lists.html.slim (70%) rename app/views/{suppliers => supplier}/active_orders.html.slim (66%) rename app/views/{dashboard/view_active_list.html.slim => user/active_list.html.slim} (84%) create mode 100644 app/views/user/history_list.html.slim create mode 100644 app/views/user/list_history.html.slim rename app/views/{dashboard/show_products.html.slim => user/list_products.html.slim} (95%) diff --git a/app/assets/images/frames/smartphone.svg b/app/assets/images/frames/smartphone.svg index 3785ef65..278de7bd 100644 --- a/app/assets/images/frames/smartphone.svg +++ b/app/assets/images/frames/smartphone.svg @@ -18,7 +18,10 @@ xml:space="preserve" style="fill-rule:evenodd" inkscape:version="0.48.2 r9819" - sodipodi:docname="smartphone.svg">image/svg+xml + rdf:resource="http://purl.org/dc/dcmitype/StillImage" />