comable_backend 0.2.3 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/Rakefile +16 -4
- data/app/assets/javascripts/comable/admin/application.coffee +88 -0
- data/app/assets/stylesheets/comable/admin/application.scss +590 -0
- data/app/controllers/comable/admin/application_controller.rb +28 -0
- data/app/controllers/comable/admin/categories_controller.rb +14 -0
- data/app/controllers/comable/admin/customers_controller.rb +36 -0
- data/app/controllers/comable/admin/dashboard_controller.rb +20 -0
- data/app/controllers/comable/admin/orders_controller.rb +14 -0
- data/app/controllers/comable/admin/payment_methods_controller.rb +52 -0
- data/app/controllers/comable/admin/products_controller.rb +50 -1
- data/app/controllers/comable/admin/shipment_methods_controller.rb +11 -27
- data/app/controllers/comable/admin/stocks_controller.rb +69 -0
- data/app/controllers/comable/admin/store_controller.rb +12 -29
- data/app/views/comable/admin/categories/index.slim +94 -0
- data/app/views/comable/admin/customers/edit.slim +94 -0
- data/app/views/comable/admin/customers/index.slim +68 -0
- data/app/views/comable/admin/customers/show.slim +93 -0
- data/app/views/comable/admin/dashboard/_widget.slim +13 -0
- data/app/views/comable/admin/dashboard/show.slim +63 -0
- data/app/views/comable/admin/orders/index.slim +79 -0
- data/app/views/comable/admin/orders/show.slim +116 -0
- data/app/views/comable/admin/payment_methods/_form.slim +46 -0
- data/app/views/comable/admin/payment_methods/edit.slim +28 -0
- data/app/views/comable/admin/payment_methods/index.slim +53 -0
- data/app/views/comable/admin/payment_methods/new.slim +17 -0
- data/app/views/comable/admin/products/_form.slim +130 -0
- data/app/views/comable/admin/products/edit.slim +40 -0
- data/app/views/comable/admin/products/index.slim +75 -5
- data/app/views/comable/admin/products/new.slim +17 -0
- data/app/views/comable/admin/shipment_methods/_form.slim +35 -19
- data/app/views/comable/admin/shipment_methods/edit.slim +26 -5
- data/app/views/comable/admin/shipment_methods/index.slim +46 -13
- data/app/views/comable/admin/shipment_methods/new.slim +15 -3
- data/app/views/comable/admin/stocks/_form.slim +40 -0
- data/app/views/comable/admin/stocks/edit.slim +46 -0
- data/app/views/comable/admin/stocks/index.slim +81 -0
- data/app/views/comable/admin/stocks/new.slim +17 -0
- data/app/views/comable/admin/store/_form.slim +43 -31
- data/app/views/comable/admin/store/edit.slim +11 -3
- data/app/views/kaminari/comable_backend/_first_page.html.slim +2 -0
- data/app/views/kaminari/comable_backend/_gap.html.slim +2 -0
- data/app/views/kaminari/comable_backend/_last_page.html.slim +2 -0
- data/app/views/kaminari/comable_backend/_next_page.html.slim +2 -0
- data/app/views/kaminari/comable_backend/_page.html.slim +3 -0
- data/app/views/kaminari/comable_backend/_paginator.html.slim +15 -0
- data/app/views/kaminari/comable_backend/_prev_page.html.slim +2 -0
- data/app/views/layouts/comable/admin/application.slim +103 -2
- data/config/routes.rb +14 -2
- data/lib/comable/backend/engine.rb +22 -0
- metadata +240 -9
- data/app/assets/javascripts/comable/admin/application.js +0 -13
- data/app/assets/stylesheets/comable/admin/application.css +0 -15
- data/app/views/comable/admin/shipment_methods/show.slim +0 -22
- data/app/views/comable/admin/store/new.slim +0 -3
- data/app/views/comable/admin/store/show.slim +0 -24
@@ -1,13 +0,0 @@
|
|
1
|
-
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
-
// listed below.
|
3
|
-
//
|
4
|
-
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
-
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
|
6
|
-
//
|
7
|
-
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
-
// compiled file.
|
9
|
-
//
|
10
|
-
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
|
11
|
-
// about supported directives.
|
12
|
-
//
|
13
|
-
//= require_tree .
|
@@ -1,15 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
-
* listed below.
|
4
|
-
*
|
5
|
-
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
-
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
7
|
-
*
|
8
|
-
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
-
* compiled file so the styles you add here take precedence over styles defined in any styles
|
10
|
-
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
|
11
|
-
* file per style scope.
|
12
|
-
*
|
13
|
-
*= require_tree .
|
14
|
-
*= require_self
|
15
|
-
*/
|
@@ -1,22 +0,0 @@
|
|
1
|
-
p#notice = notice
|
2
|
-
|
3
|
-
.attributes
|
4
|
-
.activate_flag
|
5
|
-
span = @shipment_method.class.human_attribute_name(:activate_flag)
|
6
|
-
span = @shipment_method.activate_flag
|
7
|
-
|
8
|
-
.name
|
9
|
-
span = @shipment_method.class.human_attribute_name(:name)
|
10
|
-
span = @shipment_method.name
|
11
|
-
|
12
|
-
.fee
|
13
|
-
span = @shipment_method.class.human_attribute_name(:fee)
|
14
|
-
span = @shipment_method.fee
|
15
|
-
|
16
|
-
.tracking_url
|
17
|
-
span = @shipment_method.class.human_attribute_name(:traking_url)
|
18
|
-
span = @shipment_method.traking_url
|
19
|
-
|
20
|
-
= link_to 'Edit', comable.edit_admin_shipment_method_path(@shipment_method)
|
21
|
-
| |
|
22
|
-
= link_to 'Back', comable.admin_shipment_methods_path
|
@@ -1,24 +0,0 @@
|
|
1
|
-
p#notice = notice
|
2
|
-
|
3
|
-
.attributes
|
4
|
-
.name
|
5
|
-
span = @store.class.human_attribute_name(:name)
|
6
|
-
span = @store.name
|
7
|
-
|
8
|
-
.meta_keyword
|
9
|
-
span = @store.class.human_attribute_name(:meta_keyword)
|
10
|
-
span = @store.meta_keyword
|
11
|
-
|
12
|
-
.meta_description
|
13
|
-
span = @store.class.human_attribute_name(:meta_description)
|
14
|
-
span = @store.meta_description
|
15
|
-
|
16
|
-
.email_sender
|
17
|
-
span = @store.class.human_attribute_name(:email_sender)
|
18
|
-
span = @store.email_sender
|
19
|
-
|
20
|
-
.email_activate_flag
|
21
|
-
span = @store.class.human_attribute_name(:email_activate_flag)
|
22
|
-
span = @store.email_activate_flag
|
23
|
-
|
24
|
-
= link_to 'Edit', comable.edit_admin_store_path(@store)
|