From 3131823ae00674260457ebca5aac3ac062ec9809 Mon Sep 17 00:00:00 2001 From: Zin Lin Phyo Date: Mon, 28 Aug 2017 09:46:36 +0630 Subject: [PATCH] commission update -> change route under settings --- .idea/workspace.xml | 1344 +++++++++-------- app/assets/stylesheets/settings.scss | 29 +- .../origami/product_commissions_controller.rb | 8 +- .../commissioners_controller.rb | 10 +- .../commissions_controller.rb | 11 +- app/models/commission.rb | 2 +- app/models/commissioner.rb | 2 +- app/views/layouts/_header.html.erb | 4 +- .../origami/commissioners/_form.html.erb | 21 - .../commissioners/_commissioner.json.jbuilder | 0 .../settings/commissioners/_form.html.erb | 22 + .../commissioners/edit.html.erb | 4 +- .../commissioners/index.html.erb | 10 +- .../commissioners/index.json.jbuilder | 0 .../commissioners/new.html.erb | 4 +- .../commissioners/show.html.erb | 10 +- .../commissioners/show.json.jbuilder | 0 .../commissions/_commission.json.jbuilder | 0 .../commissions/_form.html.erb | 10 +- .../commissions/edit.html.erb | 4 +- .../commissions/index.html.erb | 10 +- .../commissions/index.json.jbuilder | 0 .../commissions/load_commissioners.html.erb | 0 .../commissions/new.html.erb | 4 +- .../commissions/show.html.erb | 10 +- .../commissions/show.json.jbuilder | 0 config/routes.rb | 91 +- .../20170818090115_create_commissioners.rb | 12 - ...170823034141_create_product_commissions.rb | 16 - ...170825034141_create_product_commissions.rb | 17 + .../20170825090115_create_commissioners.rb | 15 + ...b => 20170825093252_create_commissions.rb} | 8 +- 32 files changed, 861 insertions(+), 817 deletions(-) rename app/controllers/{origami => settings}/commissioners_controller.rb (79%) rename app/controllers/{origami => settings}/commissions_controller.rb (81%) delete mode 100644 app/views/origami/commissioners/_form.html.erb rename app/views/{origami => settings}/commissioners/_commissioner.json.jbuilder (100%) create mode 100644 app/views/settings/commissioners/_form.html.erb rename app/views/{origami => settings}/commissioners/edit.html.erb (57%) rename app/views/{origami => settings}/commissioners/index.html.erb (65%) rename app/views/{origami => settings}/commissioners/index.json.jbuilder (100%) rename app/views/{origami => settings}/commissioners/new.html.erb (53%) rename app/views/{origami => settings}/commissioners/show.html.erb (67%) rename app/views/{origami => settings}/commissioners/show.json.jbuilder (100%) rename app/views/{origami => settings}/commissions/_commission.json.jbuilder (100%) rename app/views/{origami => settings}/commissions/_form.html.erb (58%) rename app/views/{origami => settings}/commissions/edit.html.erb (54%) rename app/views/{origami => settings}/commissions/index.html.erb (65%) rename app/views/{origami => settings}/commissions/index.json.jbuilder (100%) rename app/views/{origami => settings}/commissions/load_commissioners.html.erb (100%) rename app/views/{origami => settings}/commissions/new.html.erb (54%) rename app/views/{origami => settings}/commissions/show.html.erb (63%) rename app/views/{origami => settings}/commissions/show.json.jbuilder (100%) delete mode 100644 db/migrate/20170818090115_create_commissioners.rb delete mode 100644 db/migrate/20170823034141_create_product_commissions.rb create mode 100644 db/migrate/20170825034141_create_product_commissions.rb create mode 100644 db/migrate/20170825090115_create_commissioners.rb rename db/migrate/{20170821093252_create_commissions.rb => 20170825093252_create_commissions.rb} (57%) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 5eaab1be..aa32b1ed 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,121 +2,34 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - + + + + + @@ -131,26 +44,39 @@ + + + + + + + @@ -522,8 +519,15 @@ + + + + + + + @@ -551,7 +555,7 @@ - + @@ -559,10 +563,10 @@ - - + + - + @@ -590,6 +594,25 @@ + + + + + + + + + + + + + + + + + + + project @@ -780,6 +803,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + @@ -826,12 +873,20 @@ - - - - - + + + + + + + + + + + + + - + + + + + + + + - - + - - + + - - - - + + + - + - + + @@ -893,215 +957,21 @@