rails_marketplace 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +3 -0
- data/Rakefile +37 -0
- data/app/assets/javascripts/rails_marketplace/application.js +46 -0
- data/app/assets/javascripts/rails_marketplace/catalog.coffee +3 -0
- data/app/assets/javascripts/rails_marketplace/flash.js +6 -0
- data/app/assets/javascripts/rails_marketplace/footermanifest.js +1 -0
- data/app/assets/javascripts/rails_marketplace/js/autocomplete/countries.js +267 -0
- data/app/assets/javascripts/rails_marketplace/js/autocomplete/jquery.autocomplete.js +986 -0
- data/app/assets/javascripts/rails_marketplace/js/bootstrap.min.js +7 -0
- data/app/assets/javascripts/rails_marketplace/js/calendar/fullcalendar.min.js +9 -0
- data/app/assets/javascripts/rails_marketplace/js/chartjs/chart.min.js +14 -0
- data/app/assets/javascripts/rails_marketplace/js/colorpicker/bootstrap-colorpicker.min.js +1087 -0
- data/app/assets/javascripts/rails_marketplace/js/colorpicker/docs.js +17 -0
- data/app/assets/javascripts/rails_marketplace/js/cropping/cropper.min.js +10 -0
- data/app/assets/javascripts/rails_marketplace/js/cropping/main.js +321 -0
- data/app/assets/javascripts/rails_marketplace/js/cropping/main2.js +160 -0
- data/app/assets/javascripts/rails_marketplace/js/custom.js +380 -0
- data/app/assets/javascripts/rails_marketplace/js/datatables/buttons.bootstrap.min.css +1 -0
- data/app/assets/javascripts/rails_marketplace/js/datatables/buttons.bootstrap.min.js +6 -0
- data/app/assets/javascripts/rails_marketplace/js/datatables/buttons.html5.min.js +22 -0
- data/app/assets/javascripts/rails_marketplace/js/datatables/buttons.print.min.js +4 -0
- data/app/assets/javascripts/rails_marketplace/js/datatables/dataTables.bootstrap.js +8 -0
- data/app/assets/javascripts/rails_marketplace/js/datatables/dataTables.buttons.min.js +36 -0
- data/app/assets/javascripts/rails_marketplace/js/datatables/dataTables.fixedHeader.min.js +17 -0
- data/app/assets/javascripts/rails_marketplace/js/datatables/dataTables.keyTable.min.js +18 -0
- data/app/assets/javascripts/rails_marketplace/js/datatables/dataTables.responsive.min.js +25 -0
- data/app/assets/javascripts/rails_marketplace/js/datatables/dataTables.scroller.min.js +26 -0
- data/app/assets/javascripts/rails_marketplace/js/datatables/fixedHeader.bootstrap.min.css +1 -0
- data/app/assets/javascripts/rails_marketplace/js/datatables/jquery.dataTables.min.css +333 -0
- data/app/assets/javascripts/rails_marketplace/js/datatables/jquery.dataTables.min.js +166 -0
- data/app/assets/javascripts/rails_marketplace/js/datatables/json/scroller-demo.json +2502 -0
- data/app/assets/javascripts/rails_marketplace/js/datatables/jszip.min.js +14 -0
- data/app/assets/javascripts/rails_marketplace/js/datatables/pdfmake.min.js +22 -0
- data/app/assets/javascripts/rails_marketplace/js/datatables/responsive.bootstrap.min.css +1 -0
- data/app/assets/javascripts/rails_marketplace/js/datatables/responsive.bootstrap.min.js +7 -0
- data/app/assets/javascripts/rails_marketplace/js/datatables/scroller.bootstrap.min.css +1 -0
- data/app/assets/javascripts/rails_marketplace/js/datatables/vfs_fonts.js +1 -0
- data/app/assets/javascripts/rails_marketplace/js/datepicker/daterangepicker.js +1 -0
- data/app/assets/javascripts/rails_marketplace/js/dropzone/dropzone.js +2 -0
- data/app/assets/javascripts/rails_marketplace/js/easypie/jquery.easypiechart.min.js +9 -0
- data/app/assets/javascripts/rails_marketplace/js/echart/echarts-all.js +35 -0
- data/app/assets/javascripts/rails_marketplace/js/echart/green.js +212 -0
- data/app/assets/javascripts/rails_marketplace/js/editor/bootstrap-wysiwyg.js +200 -0
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-apollo.js +2 -0
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-basic.js +3 -0
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-clj.js +18 -0
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-css.js +2 -0
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-dart.js +3 -0
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-erlang.js +2 -0
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-go.js +1 -0
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-hs.js +2 -0
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-lisp.js +3 -0
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-llvm.js +1 -0
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-lua.js +2 -0
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-matlab.js +6 -0
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-ml.js +2 -0
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-mumps.js +2 -0
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-n.js +4 -0
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-pascal.js +3 -0
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-proto.js +1 -0
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-r.js +2 -0
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-rd.js +1 -0
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-scala.js +2 -0
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-sql.js +2 -0
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-tcl.js +3 -0
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-tex.js +1 -0
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-vb.js +2 -0
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-vhdl.js +3 -0
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-wiki.js +2 -0
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-xq.js +3 -0
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-yaml.js +2 -0
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/prettify.js +30 -0
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/run_prettify.js +34 -0
- data/app/assets/javascripts/rails_marketplace/js/editor/external/jquery.hotkeys.js +100 -0
- data/app/assets/javascripts/rails_marketplace/js/flot/curvedLines.js +483 -0
- data/app/assets/javascripts/rails_marketplace/js/flot/date.js +104 -0
- data/app/assets/javascripts/rails_marketplace/js/flot/jquery.flot.js +2 -0
- data/app/assets/javascripts/rails_marketplace/js/flot/jquery.flot.orderBars.js +201 -0
- data/app/assets/javascripts/rails_marketplace/js/flot/jquery.flot.pie.js +820 -0
- data/app/assets/javascripts/rails_marketplace/js/flot/jquery.flot.resize.js +57 -0
- data/app/assets/javascripts/rails_marketplace/js/flot/jquery.flot.spline.js +212 -0
- data/app/assets/javascripts/rails_marketplace/js/flot/jquery.flot.stack.js +188 -0
- data/app/assets/javascripts/rails_marketplace/js/flot/jquery.flot.time.min.js +1 -0
- data/app/assets/javascripts/rails_marketplace/js/flot/jquery.flot.tooltip.min.js +12 -0
- data/app/assets/javascripts/rails_marketplace/js/gauge/gauge.min.js +1 -0
- data/app/assets/javascripts/rails_marketplace/js/gauge/gauge_demo.js +21 -0
- data/app/assets/javascripts/rails_marketplace/js/icheck/icheck.min.js +11 -0
- data/app/assets/javascripts/rails_marketplace/js/input_mask/jquery.inputmask.js +2 -0
- data/app/assets/javascripts/rails_marketplace/js/ion_range/ion.rangeSlider.min.js +66 -0
- data/app/assets/javascripts/rails_marketplace/js/jquery.min.js +5 -0
- data/app/assets/javascripts/rails_marketplace/js/knob/jquery.knob.min.js +1 -0
- data/app/assets/javascripts/rails_marketplace/js/maps/gdp-data.js +185 -0
- data/app/assets/javascripts/rails_marketplace/js/maps/jquery-jvectormap-2.0.3.min.js +2 -0
- data/app/assets/javascripts/rails_marketplace/js/maps/jquery-jvectormap-us-aea-en.js +1 -0
- data/app/assets/javascripts/rails_marketplace/js/maps/jquery-jvectormap-world-mill-en.js +1 -0
- data/app/assets/javascripts/rails_marketplace/js/maps/us-unemployment.json +1 -0
- data/app/assets/javascripts/rails_marketplace/js/moment/moment.min.js +7 -0
- data/app/assets/javascripts/rails_marketplace/js/moris/example.js +127 -0
- data/app/assets/javascripts/rails_marketplace/js/moris/morris.min.js +7 -0
- data/app/assets/javascripts/rails_marketplace/js/moris/raphael-min.js +11 -0
- data/app/assets/javascripts/rails_marketplace/js/notify/pnotify.buttons.js +132 -0
- data/app/assets/javascripts/rails_marketplace/js/notify/pnotify.core.js +1 -0
- data/app/assets/javascripts/rails_marketplace/js/notify/pnotify.nonblock.js +151 -0
- data/app/assets/javascripts/rails_marketplace/js/nprogress.js +476 -0
- data/app/assets/javascripts/rails_marketplace/js/pace/pace.min.js +2 -0
- data/app/assets/javascripts/rails_marketplace/js/parsley/parsley.min.js +9 -0
- data/app/assets/javascripts/rails_marketplace/js/progressbar/bootstrap-progressbar.min.js +2 -0
- data/app/assets/javascripts/rails_marketplace/js/select/select2.full.js +2 -0
- data/app/assets/javascripts/rails_marketplace/js/sidebar/classie.js +80 -0
- data/app/assets/javascripts/rails_marketplace/js/sidebar/component.css +569 -0
- data/app/assets/javascripts/rails_marketplace/js/sidebar/modernizr.custom.js +4 -0
- data/app/assets/javascripts/rails_marketplace/js/sidebar/sidebarEffects.js +63 -0
- data/app/assets/javascripts/rails_marketplace/js/skycons/skycons.min.js +1 -0
- data/app/assets/javascripts/rails_marketplace/js/sparkline/jquery.sparkline.min.js +5 -0
- data/app/assets/javascripts/rails_marketplace/js/switchery/switchery.min.js +1 -0
- data/app/assets/javascripts/rails_marketplace/js/tags/jquery.tagsinput.min.js +1 -0
- data/app/assets/javascripts/rails_marketplace/js/textarea/autosize.min.js +6 -0
- data/app/assets/javascripts/rails_marketplace/js/validator/validator.js +411 -0
- data/app/assets/javascripts/rails_marketplace/js/wizard/jquery.smartWizard.js +489 -0
- data/app/assets/javascripts/rails_marketplace/less/custom.css +6355 -0
- data/app/assets/javascripts/rails_marketplace/marketplace.js +17 -0
- data/app/assets/javascripts/rails_marketplace/welcome.coffee +3 -0
- data/app/assets/stylesheets/rails_marketplace/application.scss +31 -0
- data/app/assets/stylesheets/rails_marketplace/catalog.scss +132 -0
- data/app/assets/stylesheets/rails_marketplace/css/animate.min.css +11 -0
- data/app/assets/stylesheets/rails_marketplace/css/bootstrap.min.css +6 -0
- data/app/assets/stylesheets/rails_marketplace/css/calendar/fullcalendar.css +1116 -0
- data/app/assets/stylesheets/rails_marketplace/css/calendar/fullcalendar.min.css +5 -0
- data/app/assets/stylesheets/rails_marketplace/css/calendar/fullcalendar.print.css +208 -0
- data/app/assets/stylesheets/rails_marketplace/css/colorpicker/bootstrap-colorpicker.min.css +9 -0
- data/app/assets/stylesheets/rails_marketplace/css/colorpicker/img/bootstrap-colorpicker/alpha-horizontal.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/css/colorpicker/img/bootstrap-colorpicker/alpha.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/css/colorpicker/img/bootstrap-colorpicker/hue-horizontal.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/css/colorpicker/img/bootstrap-colorpicker/hue.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/css/colorpicker/img/bootstrap-colorpicker/saturation.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/css/custom.css +5347 -0
- data/app/assets/stylesheets/rails_marketplace/css/datatables/css/demo_page.css +103 -0
- data/app/assets/stylesheets/rails_marketplace/css/datatables/css/demo_table.css +258 -0
- data/app/assets/stylesheets/rails_marketplace/css/datatables/css/demo_table_jui.css +501 -0
- data/app/assets/stylesheets/rails_marketplace/css/datatables/css/jquery.dataTables.css +221 -0
- data/app/assets/stylesheets/rails_marketplace/css/datatables/css/jquery.dataTables_themeroller.css +244 -0
- data/app/assets/stylesheets/rails_marketplace/css/datatables/images/Sorting icons.psd +0 -0
- data/app/assets/stylesheets/rails_marketplace/css/datatables/images/back_disabled.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/css/datatables/images/back_enabled.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/css/datatables/images/back_enabled_hover.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/css/datatables/images/favicon.ico +0 -0
- data/app/assets/stylesheets/rails_marketplace/css/datatables/images/forward_disabled.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/css/datatables/images/forward_enabled.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/css/datatables/images/forward_enabled_hover.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/css/datatables/images/sort_asc.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/css/datatables/images/sort_asc_disabled.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/css/datatables/images/sort_both.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/css/datatables/images/sort_desc.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/css/datatables/images/sort_desc_disabled.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/css/datatables/tools/css/dataTables.tableTools.css +336 -0
- data/app/assets/stylesheets/rails_marketplace/css/editor/external/google-code-prettify/prettify.css +1 -0
- data/app/assets/stylesheets/rails_marketplace/css/editor/index.css +42 -0
- data/app/assets/stylesheets/rails_marketplace/css/floatexamples.css +22 -0
- data/app/assets/stylesheets/rails_marketplace/css/icheck/flat/_all.css +530 -0
- data/app/assets/stylesheets/rails_marketplace/css/icheck/flat/aero.css +53 -0
- data/app/assets/stylesheets/rails_marketplace/css/icheck/flat/aero.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/css/icheck/flat/aero@2x.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/css/icheck/flat/blue.css +53 -0
- data/app/assets/stylesheets/rails_marketplace/css/icheck/flat/blue.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/css/icheck/flat/blue@2x.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/css/icheck/flat/flat.css +53 -0
- data/app/assets/stylesheets/rails_marketplace/css/icheck/flat/flat.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/css/icheck/flat/flat@2x.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/css/icheck/flat/green.css +53 -0
- data/app/assets/stylesheets/rails_marketplace/css/icheck/flat/green.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/css/icheck/flat/green@2x.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/css/icheck/flat/grey.css +53 -0
- data/app/assets/stylesheets/rails_marketplace/css/icheck/flat/grey.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/css/icheck/flat/grey@2x.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/css/icheck/flat/orange.css +53 -0
- data/app/assets/stylesheets/rails_marketplace/css/icheck/flat/orange.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/css/icheck/flat/orange@2x.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/css/icheck/flat/pink.css +53 -0
- data/app/assets/stylesheets/rails_marketplace/css/icheck/flat/pink.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/css/icheck/flat/pink@2x.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/css/icheck/flat/purple.css +53 -0
- data/app/assets/stylesheets/rails_marketplace/css/icheck/flat/purple.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/css/icheck/flat/purple@2x.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/css/icheck/flat/red.css +53 -0
- data/app/assets/stylesheets/rails_marketplace/css/icheck/flat/red.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/css/icheck/flat/red@2x.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/css/icheck/flat/yellow.css +53 -0
- data/app/assets/stylesheets/rails_marketplace/css/icheck/flat/yellow.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/css/icheck/flat/yellow@2x.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/css/ion.rangeSlider.css +146 -0
- data/app/assets/stylesheets/rails_marketplace/css/ion.rangeSlider.skinFlat.css +106 -0
- data/app/assets/stylesheets/rails_marketplace/css/maps/jquery-jvectormap-2.0.3.css +135 -0
- data/app/assets/stylesheets/rails_marketplace/css/normalize.css +421 -0
- data/app/assets/stylesheets/rails_marketplace/css/nprogress.css +74 -0
- data/app/assets/stylesheets/rails_marketplace/css/progressbar/bootstrap-progressbar-3.3.0.css +161 -0
- data/app/assets/stylesheets/rails_marketplace/css/select/select2.min.css +404 -0
- data/app/assets/stylesheets/rails_marketplace/css/switchery/switchery.min.css +1 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/css/font-awesome.css +2086 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/css/font-awesome.min.css +4 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/fonts/FontAwesome.otf +0 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/fonts/fontawesome-webfont.eot +0 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/fonts/fontawesome-webfont.svg +655 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/fonts/fontawesome-webfont.ttf +0 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/fonts/fontawesome-webfont.woff +0 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/fonts/fontawesome-webfont.woff2 +0 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/glyphicons-halflings-regular.eot +0 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/glyphicons-halflings-regular.svg +288 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/glyphicons-halflings-regular.woff +0 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/glyphicons-halflings-regular.woff2 +0 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/less/animated.less +34 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/less/bordered-pulled.less +25 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/less/core.less +12 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/less/fixed-width.less +6 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/less/font-awesome.less +17 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/less/icons.less +697 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/less/larger.less +13 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/less/list.less +19 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/less/mixins.less +26 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/less/path.less +15 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/less/rotated-flipped.less +20 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/less/spinning.less +29 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/less/stacked.less +20 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/less/variables.less +708 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/scss/_animated.scss +34 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/scss/_bordered-pulled.scss +25 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/scss/_core.scss +12 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/scss/_fixed-width.scss +6 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/scss/_icons.scss +697 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/scss/_larger.scss +13 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/scss/_list.scss +19 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/scss/_mixins.scss +26 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/scss/_path.scss +15 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/scss/_rotated-flipped.scss +20 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/scss/_spinning.scss +29 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/scss/_stacked.scss +20 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/scss/_variables.scss +708 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/scss/font-awesome.scss +17 -0
- data/app/assets/stylesheets/rails_marketplace/images/1.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/images/4.jpg +0 -0
- data/app/assets/stylesheets/rails_marketplace/images/american-express.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/images/back_disabled.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/images/back_enabled.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/images/back_enabled_hover.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/images/bootstrap-colorpicker/alpha-horizontal.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/images/bootstrap-colorpicker/alpha.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/images/bootstrap-colorpicker/hue-horizontal.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/images/bootstrap-colorpicker/hue.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/images/bootstrap-colorpicker/saturation.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/images/data.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/images/favicon.ico +0 -0
- data/app/assets/stylesheets/rails_marketplace/images/forward_disabled.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/images/forward_enabled.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/images/forward_enabled_hover.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/images/icons.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/images/img.jpg +0 -0
- data/app/assets/stylesheets/rails_marketplace/images/loading.gif +0 -0
- data/app/assets/stylesheets/rails_marketplace/images/mastercard.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/images/paypal2.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/images/picture-2.jpg +0 -0
- data/app/assets/stylesheets/rails_marketplace/images/picture.jpg +0 -0
- data/app/assets/stylesheets/rails_marketplace/images/picture2.jpg +0 -0
- data/app/assets/stylesheets/rails_marketplace/images/prod1.jpg +0 -0
- data/app/assets/stylesheets/rails_marketplace/images/prod2.jpg +0 -0
- data/app/assets/stylesheets/rails_marketplace/images/prod3.jpg +0 -0
- data/app/assets/stylesheets/rails_marketplace/images/prod4.jpg +0 -0
- data/app/assets/stylesheets/rails_marketplace/images/prod5.jpg +0 -0
- data/app/assets/stylesheets/rails_marketplace/images/sprite-skin-flat.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/images/sprite-skin-modern.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/images/sprite-skin-nice.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/images/sprite-skin-simple.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/images/user.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/images/visa.png +0 -0
- data/app/assets/stylesheets/rails_marketplace/marketplace.scss +20 -0
- data/app/assets/stylesheets/rails_marketplace/pace.css +76 -0
- data/app/assets/stylesheets/rails_marketplace/welcome.scss +3 -0
- data/app/assets/stylesheets/scaffold.css +56 -0
- data/app/controllers/rails_marketplace/admin_controller.rb +151 -0
- data/app/controllers/rails_marketplace/application_controller.rb +4 -0
- data/app/controllers/rails_marketplace/catalog_controller.rb +172 -0
- data/app/controllers/rails_marketplace/seller_controller.rb +181 -0
- data/app/helpers/rails_marketplace/admin_helper.rb +16 -0
- data/app/helpers/rails_marketplace/application_helper.rb +4 -0
- data/app/helpers/rails_marketplace/catalog_helper.rb +4 -0
- data/app/helpers/rails_marketplace/plainpage_helper.rb +4 -0
- data/app/helpers/rails_marketplace/seller_helper.rb +16 -0
- data/app/models/rails_marketplace/admin.rb +10 -0
- data/app/models/rails_marketplace/admin_setting.rb +13 -0
- data/app/models/rails_marketplace/cart.rb +49 -0
- data/app/models/rails_marketplace/cart_product.rb +7 -0
- data/app/models/rails_marketplace/category.rb +22 -0
- data/app/models/rails_marketplace/category_product.rb +6 -0
- data/app/models/rails_marketplace/customer.rb +6 -0
- data/app/models/rails_marketplace/order.rb +22 -0
- data/app/models/rails_marketplace/order_product.rb +7 -0
- data/app/models/rails_marketplace/product.rb +34 -0
- data/app/models/rails_marketplace/seller.rb +13 -0
- data/app/models/rails_marketplace/seller_setting.rb +5 -0
- data/app/views/layouts/rails_marketplace/application.html.erb +37 -0
- data/app/views/layouts/rails_marketplace/seller_central.html.erb +58 -0
- data/app/views/layouts/rails_marketplace/super_admin.html.erb +58 -0
- data/app/views/rails_marketplace/admin/add_category.html.erb +63 -0
- data/app/views/rails_marketplace/admin/categories.html.erb +50 -0
- data/app/views/rails_marketplace/admin/category_products.html.erb +54 -0
- data/app/views/rails_marketplace/admin/dashboard.html.erb +50 -0
- data/app/views/rails_marketplace/admin/edit_category.html.erb +63 -0
- data/app/views/rails_marketplace/admin/login_form.html.erb +20 -0
- data/app/views/rails_marketplace/admin/products.html.erb +54 -0
- data/app/views/rails_marketplace/admin/seller_products.html.erb +54 -0
- data/app/views/rails_marketplace/admin/sellers.html.erb +48 -0
- data/app/views/rails_marketplace/admin/settings_form.html.erb +39 -0
- data/app/views/rails_marketplace/admin/signup_form.html.erb +25 -0
- data/app/views/rails_marketplace/catalog/cart.html.erb +80 -0
- data/app/views/rails_marketplace/catalog/category_products.html.erb +52 -0
- data/app/views/rails_marketplace/catalog/checkout.html.erb +207 -0
- data/app/views/rails_marketplace/catalog/checkout_success.html.erb +15 -0
- data/app/views/rails_marketplace/catalog/index.html.erb +1 -0
- data/app/views/rails_marketplace/catalog/product_detail.html.erb +88 -0
- data/app/views/rails_marketplace/partials/_admin_sidenav.html.erb +80 -0
- data/app/views/rails_marketplace/partials/_admin_topnav.html.erb +111 -0
- data/app/views/rails_marketplace/partials/_footer.html.erb +19 -0
- data/app/views/rails_marketplace/partials/_menu.html.erb +42 -0
- data/app/views/rails_marketplace/partials/_sidenav.html.erb +77 -0
- data/app/views/rails_marketplace/partials/_topnav.html.erb +105 -0
- data/app/views/rails_marketplace/seller/add_bulk_products.html.erb +0 -0
- data/app/views/rails_marketplace/seller/add_product.html.erb +67 -0
- data/app/views/rails_marketplace/seller/dashboard.html.erb +50 -0
- data/app/views/rails_marketplace/seller/edit_product.html.erb +69 -0
- data/app/views/rails_marketplace/seller/login_form.html.erb +36 -0
- data/app/views/rails_marketplace/seller/order_details.html.erb +69 -0
- data/app/views/rails_marketplace/seller/orders.html.erb +68 -0
- data/app/views/rails_marketplace/seller/products.html.erb +55 -0
- data/app/views/rails_marketplace/seller/settings_general.html.erb +64 -0
- data/app/views/rails_marketplace/seller/settings_payment.html.erb +34 -0
- data/app/views/rails_marketplace/seller/settings_shipping.html.erb +34 -0
- data/app/views/rails_marketplace/seller/settings_tax.html.erb +34 -0
- data/app/views/rails_marketplace/seller/signup_form.html.erb +28 -0
- data/app/views/rails_marketplace/seller/step_two.html.erb +17 -0
- data/app/views/rails_marketplace/shared/_admin_error_messages.html.erb +12 -0
- data/app/views/rails_marketplace/shared/_product_error_messages.html.erb +12 -0
- data/app/views/rails_marketplace/shared/_seller_error_messages.html.erb +12 -0
- data/config/routes.rb +58 -0
- data/db/migrate/20161013194852_create_sellers.rb +13 -0
- data/db/migrate/20161013195006_create_customers.rb +13 -0
- data/db/migrate/20161013195758_create_orders.rb +8 -0
- data/db/migrate/20161014013032_create_category_products.rb +10 -0
- data/db/migrate/20161014013058_create_order_products.rb +13 -0
- data/db/migrate/20161017185755_create_admins.rb +12 -0
- data/db/migrate/20161017232347_create_products.rb +14 -0
- data/db/migrate/20161019012043_add_reference_product_seller.rb +5 -0
- data/db/migrate/20161019013502_change_data_type_images_files.rb +6 -0
- data/db/migrate/20161019022020_add_reference_order_customers.rb +5 -0
- data/db/migrate/20161109191644_create_categories.rb +15 -0
- data/db/migrate/20161110021043_create_friendly_id_slugs.rb +15 -0
- data/db/migrate/20161110021131_add_slug_to_category.rb +6 -0
- data/db/migrate/20161110024118_add_slug_to_product.rb +6 -0
- data/db/migrate/20161111001446_create_carts.rb +8 -0
- data/db/migrate/20161111004451_create_cart_products.rb +12 -0
- data/db/migrate/20161115013956_add_currency_format_to_price.rb +6 -0
- data/db/migrate/20161115015227_monetize_product.rb +5 -0
- data/db/migrate/20161115032905_add_stripe_key_to_admin.rb +6 -0
- data/db/migrate/20161124015608_add_order_fields.rb +16 -0
- data/db/migrate/20161207193917_add_seller_to_orders.rb +6 -0
- data/db/migrate/20161208012601_add_price_to_cart_products.rb +6 -0
- data/db/migrate/20161208013402_add_money_to_cart_products.rb +6 -0
- data/db/migrate/20170217183953_create_seller_settings.rb +29 -0
- data/db/migrate/20170218003202_create_admin_settings.rb +24 -0
- data/db/migrate/20170224230449_create_stripe_managed_accounts.rb +9 -0
- data/db/migrate/20170224233736_add_stripe_to_admin_settings.rb +9 -0
- data/db/migrate/20170224235259_add_id_to_settings.rb +6 -0
- data/db/migrate/20170225002939_delete_stripe_accounts.rb +8 -0
- data/db/migrate/20170225003252_add_stripe_account_id_to_seller_settings.rb +5 -0
- data/lib/rails_marketplace.rb +4 -0
- data/lib/rails_marketplace/engine.rb +9 -0
- data/lib/rails_marketplace/version.rb +3 -0
- data/lib/tasks/rails_marketplace_tasks.rake +4 -0
- data/spec/controllers/rails_marketplace/catalog_controller_spec.rb +75 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/bin/setup +29 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +32 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +41 -0
- data/spec/dummy/config/environments/production.rb +79 -0
- data/spec/dummy/config/environments/test.rb +42 -0
- data/spec/dummy/config/initializers/assets.rb +11 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +4 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/db/schema.rb +194 -0
- data/spec/dummy/log/development.log +889 -0
- data/spec/dummy/log/test.log +1229 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/helpers/rails_marketplace/catalog_helper_spec.rb +17 -0
- data/spec/routing/rails_marketplace/catalog_routing_spec.rb +44 -0
- data/spec/spec_helper.rb +44 -0
- data/spec/views/rails_marketplace/catalog/edit.html.erb_spec.rb +15 -0
- data/spec/views/rails_marketplace/catalog/index.html.erb_spec.rb +15 -0
- data/spec/views/rails_marketplace/catalog/new.html.erb_spec.rb +15 -0
- data/spec/views/rails_marketplace/catalog/show.html.erb_spec.rb +12 -0
- metadata +595 -0
@@ -0,0 +1,54 @@
|
|
1
|
+
<!-- page content -->
|
2
|
+
<div class="right_col" role="main">
|
3
|
+
<div class="">
|
4
|
+
<div class="page-title">
|
5
|
+
<div class="title_left">
|
6
|
+
<h3>All Products</h3>
|
7
|
+
</div>
|
8
|
+
|
9
|
+
<div class="title_right">
|
10
|
+
<div class="col-md-5 col-sm-5 col-xs-12 form-group pull-right top_search">
|
11
|
+
<div class="input-group">
|
12
|
+
<input type="text" class="form-control" placeholder="Search for...">
|
13
|
+
<span class="input-group-btn">
|
14
|
+
<button class="btn btn-default" type="button">Go!</button>
|
15
|
+
</span>
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
</div>
|
19
|
+
</div>
|
20
|
+
<div class="clearfix"></div>
|
21
|
+
|
22
|
+
<div class="row">
|
23
|
+
|
24
|
+
<div class="col-md-12 col-sm-12 col-xs-12">
|
25
|
+
<div class="x_panel" >
|
26
|
+
<div class="x_title">
|
27
|
+
|
28
|
+
<p id="notice"><%= flash[:notice] %></p>
|
29
|
+
|
30
|
+
<ul class="nav">
|
31
|
+
<% @products.each do |product| %>
|
32
|
+
|
33
|
+
<li style="float: left; padding-right: 120px;"><%= image_tag(product.images[0].small.url) %>
|
34
|
+
<p><%= product.title %></p>
|
35
|
+
<p>$<%= product.price %></p>
|
36
|
+
<p>Seller: <%= product.seller.seller_setting.store_name %></p>
|
37
|
+
</li>
|
38
|
+
|
39
|
+
<% end %>
|
40
|
+
</ul>
|
41
|
+
|
42
|
+
<div class="clearfix"></div>
|
43
|
+
</div>
|
44
|
+
</div>
|
45
|
+
</div>
|
46
|
+
</div>
|
47
|
+
</div>
|
48
|
+
</div>
|
49
|
+
<!-- /page content -->
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
|
@@ -0,0 +1,54 @@
|
|
1
|
+
<!-- page content -->
|
2
|
+
<div class="right_col" role="main">
|
3
|
+
<div class="">
|
4
|
+
<div class="page-title">
|
5
|
+
<div class="title_left">
|
6
|
+
<h3>Seller Products</h3>
|
7
|
+
</div>
|
8
|
+
|
9
|
+
<div class="title_right">
|
10
|
+
<div class="col-md-5 col-sm-5 col-xs-12 form-group pull-right top_search">
|
11
|
+
<div class="input-group">
|
12
|
+
<input type="text" class="form-control" placeholder="Search for...">
|
13
|
+
<span class="input-group-btn">
|
14
|
+
<button class="btn btn-default" type="button">Go!</button>
|
15
|
+
</span>
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
</div>
|
19
|
+
</div>
|
20
|
+
<div class="clearfix"></div>
|
21
|
+
|
22
|
+
<div class="row">
|
23
|
+
|
24
|
+
<div class="col-md-12 col-sm-12 col-xs-12">
|
25
|
+
<div class="x_panel" >
|
26
|
+
<div class="x_title">
|
27
|
+
|
28
|
+
<p id="notice"><%= flash[:notice] %></p>
|
29
|
+
|
30
|
+
<ul class="nav">
|
31
|
+
<% @products.each do |product| %>
|
32
|
+
|
33
|
+
<li style="float: left; padding-right: 120px;"><%= image_tag(product.images[0].small.url) %>
|
34
|
+
<p><%= product.title %></p>
|
35
|
+
<p>$<%= product.price %></p>
|
36
|
+
<p>Seller: <%= product.seller.seller_name %></p>
|
37
|
+
</li>
|
38
|
+
|
39
|
+
<% end %>
|
40
|
+
</ul>
|
41
|
+
|
42
|
+
<div class="clearfix"></div>
|
43
|
+
</div>
|
44
|
+
</div>
|
45
|
+
</div>
|
46
|
+
</div>
|
47
|
+
</div>
|
48
|
+
</div>
|
49
|
+
<!-- /page content -->
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
|
@@ -0,0 +1,48 @@
|
|
1
|
+
<!-- page content -->
|
2
|
+
<div class="right_col" role="main">
|
3
|
+
<div class="">
|
4
|
+
<div class="page-title">
|
5
|
+
<div class="title_left">
|
6
|
+
<h3>All Sellers</h3>
|
7
|
+
</div>
|
8
|
+
|
9
|
+
<div class="title_right">
|
10
|
+
<div class="col-md-5 col-sm-5 col-xs-12 form-group pull-right top_search">
|
11
|
+
<div class="input-group">
|
12
|
+
<input type="text" class="form-control" placeholder="Search for...">
|
13
|
+
<span class="input-group-btn">
|
14
|
+
<button class="btn btn-default" type="button">Go!</button>
|
15
|
+
</span>
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
</div>
|
19
|
+
</div>
|
20
|
+
<div class="clearfix"></div>
|
21
|
+
|
22
|
+
<div class="row">
|
23
|
+
|
24
|
+
<div class="col-md-12 col-sm-12 col-xs-12">
|
25
|
+
<div class="x_panel" style="height:600px;">
|
26
|
+
<div class="x_title">
|
27
|
+
|
28
|
+
<p id="notice"><%= flash[:notice] %></p>
|
29
|
+
|
30
|
+
<ul>
|
31
|
+
<% @sellers.each do |seller| %>
|
32
|
+
<li><%= link_to seller.seller_setting.store_name, admin_seller_products_path(id: seller.id) %></li>
|
33
|
+
<% end %>
|
34
|
+
</ul>
|
35
|
+
|
36
|
+
<div class="clearfix"></div>
|
37
|
+
</div>
|
38
|
+
</div>
|
39
|
+
</div>
|
40
|
+
</div>
|
41
|
+
</div>
|
42
|
+
</div>
|
43
|
+
<!-- /page content -->
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
|
@@ -0,0 +1,39 @@
|
|
1
|
+
<!-- page content -->
|
2
|
+
<div class="right_col" role="main">
|
3
|
+
<div class="">
|
4
|
+
<div class="page-title">
|
5
|
+
<div class="title_left">
|
6
|
+
<h3>Admin Settings</h3>
|
7
|
+
</div>
|
8
|
+
|
9
|
+
</div>
|
10
|
+
<div class="clearfix"></div>
|
11
|
+
|
12
|
+
<div class="row">
|
13
|
+
|
14
|
+
<div class="col-md-12 col-sm-12 col-xs-12">
|
15
|
+
<div class="x_panel" style="height:600px;">
|
16
|
+
<div class="x_title">
|
17
|
+
|
18
|
+
<%= form_for(:admin_setting, url: admin_settings_path) do |f| %>
|
19
|
+
<p id="notice"><%= flash[:error] %></p>
|
20
|
+
|
21
|
+
<%= f.label :stripe_publishable_key %>
|
22
|
+
<%= f.text_field :stripe_publishable_key, class: 'form-control', value: @current_admin.admin_setting.stripe_publishable_key %>
|
23
|
+
|
24
|
+
<%= f.label :stripe_secret_key %>
|
25
|
+
<%= f.text_field :stripe_secret_key, class: 'form-control', value: @current_admin.admin_setting.stripe_secret_key %>
|
26
|
+
|
27
|
+
<%= f.submit "Submit", class: "btn btn-primary" %>
|
28
|
+
<% end %>
|
29
|
+
|
30
|
+
<div class="clearfix"></div>
|
31
|
+
</div>
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
<!-- /page content -->
|
38
|
+
|
39
|
+
<%=@current_admin%>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<% provide(:title, "Log in") %>
|
2
|
+
<h1>Sign Up</h1>
|
3
|
+
|
4
|
+
<div class="row">
|
5
|
+
<div class="col-md-6 col-md-offset-3">
|
6
|
+
<%= form_for(:admin, url: admin_signup_path) do |f| %>
|
7
|
+
<%= render 'rails_marketplace/shared/admin_error_messages' %>
|
8
|
+
|
9
|
+
<%= f.label :name %>
|
10
|
+
<%= f.text_field :name, class: 'form-control' %>
|
11
|
+
|
12
|
+
<%= f.label :email %>
|
13
|
+
<%= f.email_field :email, class: 'form-control' %>
|
14
|
+
|
15
|
+
<%= f.label :password %>
|
16
|
+
<%= f.password_field :password, class: 'form-control' %>
|
17
|
+
|
18
|
+
<%= f.label :password_confirmation %>
|
19
|
+
<%= f.password_field :password_confirmation, class: 'form-control' %>
|
20
|
+
|
21
|
+
<%= f.submit "Submit", class: "btn btn-primary" %>
|
22
|
+
<% end %>
|
23
|
+
|
24
|
+
</div>
|
25
|
+
</div>
|
@@ -0,0 +1,80 @@
|
|
1
|
+
<div class="container-fluid">
|
2
|
+
<div class="content-wrapper">
|
3
|
+
<!-- page content -->
|
4
|
+
<div class="page-title">
|
5
|
+
<div class="title_left">
|
6
|
+
<h3>Shopping Cart</h3>
|
7
|
+
</div>
|
8
|
+
|
9
|
+
</div>
|
10
|
+
<div class="clearfix"></div>
|
11
|
+
|
12
|
+
<% if @cart_quantity == 0 %>
|
13
|
+
Your shopping cart is empty.
|
14
|
+
<% else %>
|
15
|
+
<div class="container">
|
16
|
+
<div class="row">
|
17
|
+
<div class="col-sm-12 col-md-10 col-md-offset-1">
|
18
|
+
<table class="table table-hover">
|
19
|
+
<thead>
|
20
|
+
<tr>
|
21
|
+
<th>Product</th>
|
22
|
+
<th>Quantity</th>
|
23
|
+
<th class="text-center">Price</th>
|
24
|
+
<th class="text-center">Total</th>
|
25
|
+
<th> </th>
|
26
|
+
</tr>
|
27
|
+
</thead>
|
28
|
+
<tbody>
|
29
|
+
<% @cart.cart_products.each do |item|
|
30
|
+
product = RailsMarketplace::Product.find(item.product_id)
|
31
|
+
%>
|
32
|
+
<tr>
|
33
|
+
<td class="col-sm-8 col-md-6">
|
34
|
+
<div class="media">
|
35
|
+
<a class="thumbnail pull-left" href="#"> <%= image_tag(product.images[0].thumb.url) %> </a>
|
36
|
+
<div class="media-body">
|
37
|
+
<h4 class="media-heading"><%= link_to product.title, product_detail_url(product) %></h4>
|
38
|
+
<h5 class="media-heading"> by <a href="#"><%= product.seller.seller_setting.store_name %></a></h5>
|
39
|
+
</div>
|
40
|
+
</div></td>
|
41
|
+
<td class="col-sm-1 col-md-1" style="text-align: center">
|
42
|
+
<input type="email" class="form-control" name="quantity" value="<%= item.quantity %>">
|
43
|
+
</td>
|
44
|
+
<td class="col-sm-1 col-md-1 text-center"><strong><%= humanized_money_with_symbol product.price %></strong></td>
|
45
|
+
<td class="col-sm-1 col-md-1 text-center"><strong><%= humanized_money_with_symbol product.price * item.quantity %></strong></td>
|
46
|
+
<td class="col-sm-1 col-md-1">
|
47
|
+
<button type="submit" class="btn btn-danger" onclick="location.href='<%= cart_delete_url(product_id: product.id) %>'">
|
48
|
+
<span class="glyphicon glyphicon-remove"></span> Remove
|
49
|
+
</button></td>
|
50
|
+
</tr>
|
51
|
+
<% end %>
|
52
|
+
<tr>
|
53
|
+
<td> </td>
|
54
|
+
<td> </td>
|
55
|
+
<td> </td>
|
56
|
+
<td><h3>Total</h3></td>
|
57
|
+
<td class="text-right"><h3><strong><%= humanized_money_with_symbol @cart_subtotal %></strong></h3></td>
|
58
|
+
</tr>
|
59
|
+
<tr>
|
60
|
+
<td> </td>
|
61
|
+
<td> </td>
|
62
|
+
<td> </td>
|
63
|
+
<td>
|
64
|
+
<button type="button" class="btn btn-default">
|
65
|
+
<span class="glyphicon glyphicon-shopping-cart"></span> Continue Shopping
|
66
|
+
</button></td>
|
67
|
+
<td>
|
68
|
+
<button type="button" class="btn btn-success" onclick="location.href='<%= checkout_url %>'">
|
69
|
+
Checkout <span class="glyphicon glyphicon-play"></span>
|
70
|
+
</button></td>
|
71
|
+
</tr>
|
72
|
+
</tbody>
|
73
|
+
</table>
|
74
|
+
</div>
|
75
|
+
</div>
|
76
|
+
</div>
|
77
|
+
<% end %>
|
78
|
+
|
79
|
+
|
80
|
+
|
@@ -0,0 +1,52 @@
|
|
1
|
+
<div class="container-fluid">
|
2
|
+
<div class="content-wrapper">
|
3
|
+
<!-- page content -->
|
4
|
+
<div class="page-title">
|
5
|
+
<div class="title_left">
|
6
|
+
<h3><%= @category.name %></h3>
|
7
|
+
</div>
|
8
|
+
|
9
|
+
<div class="title_right">
|
10
|
+
<div class="col-md-5 col-sm-5 col-xs-12 form-group pull-right top_search">
|
11
|
+
<div class="input-group">
|
12
|
+
<input type="text" class="form-control" placeholder="Search for...">
|
13
|
+
<span class="input-group-btn">
|
14
|
+
<button class="btn btn-default" type="button">Go!</button>
|
15
|
+
</span>
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
</div>
|
19
|
+
</div>
|
20
|
+
<div class="clearfix"></div>
|
21
|
+
|
22
|
+
<div class="row">
|
23
|
+
|
24
|
+
<div class="col-md-12 col-sm-12 col-xs-12">
|
25
|
+
<div class="x_panel">
|
26
|
+
<div class="x_title">
|
27
|
+
|
28
|
+
<p id="notice"><%= flash[:notice] %></p>
|
29
|
+
|
30
|
+
<ul class="nav">
|
31
|
+
<% @products.each do |product| %>
|
32
|
+
|
33
|
+
<li style="float: left; padding-right: 120px;"><%= image_tag(product.images[0].small.url) %>
|
34
|
+
<p><%= link_to product.title, product_detail_path(product) %></p>
|
35
|
+
<p><%= humanized_money_with_symbol product.price %></p>
|
36
|
+
</li>
|
37
|
+
|
38
|
+
<% end %>
|
39
|
+
</ul>
|
40
|
+
|
41
|
+
<div class="clearfix"></div>
|
42
|
+
</div>
|
43
|
+
</div>
|
44
|
+
</div>
|
45
|
+
</div>
|
46
|
+
<!-- /page content -->
|
47
|
+
</div>
|
48
|
+
</div>
|
49
|
+
|
50
|
+
|
51
|
+
|
52
|
+
|
@@ -0,0 +1,207 @@
|
|
1
|
+
<div class="container-fluid">
|
2
|
+
<div class="content-wrapper">
|
3
|
+
<!-- page content -->
|
4
|
+
<div class="page-title">
|
5
|
+
<div class="title_left">
|
6
|
+
<h3>Checkout</h3>
|
7
|
+
</div>
|
8
|
+
|
9
|
+
</div>
|
10
|
+
<div class="clearfix"></div>
|
11
|
+
|
12
|
+
<div class="container">
|
13
|
+
<div class="row">
|
14
|
+
<div class="col-sm-12 col-md-10 col-md-offset-1">
|
15
|
+
<article>
|
16
|
+
<% if flash[:error].present? %>
|
17
|
+
<div id="error_explanation">
|
18
|
+
<p><%= flash[:error] %></p>
|
19
|
+
</div>
|
20
|
+
<% end %>
|
21
|
+
<label class="amount">
|
22
|
+
<span>Amount: <%= humanized_money_with_symbol @total %></span>
|
23
|
+
</label>
|
24
|
+
</article>
|
25
|
+
|
26
|
+
<form action="<%=charge_path%>" method="POST" id="payment-form">
|
27
|
+
<%= hidden_field_tag :authenticity_token, form_authenticity_token %>
|
28
|
+
<div class="form-row">
|
29
|
+
<label>
|
30
|
+
<span>Email Address</span>
|
31
|
+
<input type="email" name="email">
|
32
|
+
</label>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<h3>Shipping Info</h3>
|
36
|
+
<div class="form-row">
|
37
|
+
<label>
|
38
|
+
<span>Full Name:</span>
|
39
|
+
<input type="text" name="fullname">
|
40
|
+
</label>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<div class="form-row">
|
44
|
+
<label>
|
45
|
+
<span>Address line 1:</span>
|
46
|
+
<input type="text" name="address1">
|
47
|
+
</label>
|
48
|
+
</div>
|
49
|
+
|
50
|
+
<div class="form-row">
|
51
|
+
<label>
|
52
|
+
<span>Address line 2:</span>
|
53
|
+
<input type="text" name="address2">
|
54
|
+
</label>
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<div class="form-row">
|
58
|
+
<label>
|
59
|
+
<span>City:</span>
|
60
|
+
<input type="text" name="city">
|
61
|
+
</label>
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<div class="form-row">
|
65
|
+
<label>
|
66
|
+
<span>State/Province/Region:</span>
|
67
|
+
<input type="text" name="state">
|
68
|
+
</label>
|
69
|
+
</div>
|
70
|
+
|
71
|
+
<div class="form-row">
|
72
|
+
<label>
|
73
|
+
<span>ZIP:</span>
|
74
|
+
<input type="text" name="zip">
|
75
|
+
</label>
|
76
|
+
</div>
|
77
|
+
|
78
|
+
<div class="form-row">
|
79
|
+
<label>
|
80
|
+
<span>Country:</span>
|
81
|
+
<input type="text" name="country">
|
82
|
+
</label>
|
83
|
+
</div>
|
84
|
+
|
85
|
+
<div class="form-row">
|
86
|
+
<label>
|
87
|
+
<span>Phone number:</span>
|
88
|
+
<input type="text" name="phone">
|
89
|
+
</label>
|
90
|
+
</div>
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
<h3>Payment Info</h3>
|
95
|
+
|
96
|
+
<span class="payment-errors"></span>
|
97
|
+
|
98
|
+
<div class="form-row">
|
99
|
+
<label>
|
100
|
+
<span>Card Number</span>
|
101
|
+
<input type="text" size="20" data-stripe="number">
|
102
|
+
</label>
|
103
|
+
</div>
|
104
|
+
|
105
|
+
<div class="form-row">
|
106
|
+
<label>
|
107
|
+
<span>Expiration (MM/YY)</span>
|
108
|
+
<input type="text" size="2" data-stripe="exp_month">
|
109
|
+
</label>
|
110
|
+
<span> / </span>
|
111
|
+
<input type="text" size="2" data-stripe="exp_year">
|
112
|
+
</div>
|
113
|
+
|
114
|
+
<div class="form-row">
|
115
|
+
<label>
|
116
|
+
<span>CVC</span>
|
117
|
+
<input type="text" size="4" data-stripe="cvc">
|
118
|
+
</label>
|
119
|
+
</div>
|
120
|
+
|
121
|
+
<div class="form-row">
|
122
|
+
<label>
|
123
|
+
<span>Billing Zip</span>
|
124
|
+
<input type="text" size="6" data-stripe="address_zip">
|
125
|
+
</label>
|
126
|
+
</div>
|
127
|
+
|
128
|
+
<h3>Gife Wrap</h3>
|
129
|
+
<div class="form-row">
|
130
|
+
<label>
|
131
|
+
<input type="checkbox" name="is_gift"><span> Is it a gift?</span>
|
132
|
+
</label>
|
133
|
+
<textarea name="gift_message"></textarea>
|
134
|
+
</div>
|
135
|
+
|
136
|
+
<h3>Shipping Method</h3>
|
137
|
+
<div class="container">
|
138
|
+
<% @product_groups.each do |seller_id, products| %>
|
139
|
+
<div class="col-md-5">
|
140
|
+
<p>Seller: <%=RailsMarketplace::Seller.find(seller_id).first_name%></p>
|
141
|
+
<% products.each do |cart_product| %>
|
142
|
+
<%= image_tag(cart_product.product.images[0].small.url) %>
|
143
|
+
<% end %>
|
144
|
+
</div>
|
145
|
+
<!-- Shipping method for each seller -->
|
146
|
+
<div class="col-md-7 form-row">
|
147
|
+
<label>
|
148
|
+
<input type="radio" name="shipping_method[<%=seller_id%>]" value="store_pickup"><span> Store Pickup</span>
|
149
|
+
<input type="radio" name="shipping_method[<%=seller_id%>]" value="standard_shipping"><span> Free Standard Shipping</span>
|
150
|
+
<input type="radio" name="shipping_method[<%=seller_id%>]" value="expediate_shipping"><span> $5 Expediate Shipping</span>
|
151
|
+
</label>
|
152
|
+
</div>
|
153
|
+
<div style="clear: both;"></div>
|
154
|
+
<% end %>
|
155
|
+
</div>
|
156
|
+
|
157
|
+
|
158
|
+
<input type="submit" class="submit" value="Place Order">
|
159
|
+
</form>
|
160
|
+
|
161
|
+
<script type="text/javascript">
|
162
|
+
$(function() {
|
163
|
+
var $form = $('#payment-form');
|
164
|
+
$form.submit(function(event) {
|
165
|
+
// Disable the submit button to prevent repeated clicks:
|
166
|
+
$form.find('.submit').prop('disabled', true);
|
167
|
+
|
168
|
+
// Request a token from Stripe:
|
169
|
+
Stripe.card.createToken($form, stripeResponseHandler);
|
170
|
+
|
171
|
+
// Prevent the form from being submitted:
|
172
|
+
return false;
|
173
|
+
});
|
174
|
+
});
|
175
|
+
|
176
|
+
function stripeResponseHandler(status, response) {
|
177
|
+
// Grab the form:
|
178
|
+
var $form = $('#payment-form');
|
179
|
+
|
180
|
+
if (response.error) { // Problem!
|
181
|
+
|
182
|
+
// Show the errors on the form:
|
183
|
+
$form.find('.payment-errors').text(response.error.message);
|
184
|
+
$form.find('.submit').prop('disabled', false); // Re-enable submission
|
185
|
+
|
186
|
+
} else { // Token was created!
|
187
|
+
|
188
|
+
// Get the token ID:
|
189
|
+
var token = response.id;
|
190
|
+
|
191
|
+
// Insert the token ID into the form so it gets submitted to the server:
|
192
|
+
$form.append($('<input type="hidden" name="stripeToken">').val(token));
|
193
|
+
|
194
|
+
// Submit the form:
|
195
|
+
$form.get(0).submit();
|
196
|
+
}
|
197
|
+
};
|
198
|
+
</script>
|
199
|
+
</div>
|
200
|
+
</div>
|
201
|
+
</div>
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
|