spree_frontend 2.4.10 → 3.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (378) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +1 -0
  3. data/Gemfile +6 -0
  4. data/LICENSE +1 -1
  5. data/README.md +39 -10
  6. data/Rakefile +29 -0
  7. data/{vendor → app}/assets/images/flags/ad.png +0 -0
  8. data/{vendor → app}/assets/images/flags/ae.png +0 -0
  9. data/{vendor → app}/assets/images/flags/af.png +0 -0
  10. data/{vendor → app}/assets/images/flags/ag.png +0 -0
  11. data/{vendor → app}/assets/images/flags/ai.png +0 -0
  12. data/{vendor → app}/assets/images/flags/al.png +0 -0
  13. data/{vendor → app}/assets/images/flags/am.png +0 -0
  14. data/{vendor → app}/assets/images/flags/an.png +0 -0
  15. data/{vendor → app}/assets/images/flags/ao.png +0 -0
  16. data/{vendor → app}/assets/images/flags/ar.png +0 -0
  17. data/{vendor → app}/assets/images/flags/as.png +0 -0
  18. data/{vendor → app}/assets/images/flags/at.png +0 -0
  19. data/{vendor → app}/assets/images/flags/au.png +0 -0
  20. data/{vendor → app}/assets/images/flags/aw.png +0 -0
  21. data/{vendor → app}/assets/images/flags/ax.png +0 -0
  22. data/{vendor → app}/assets/images/flags/az.png +0 -0
  23. data/{vendor → app}/assets/images/flags/ba.png +0 -0
  24. data/{vendor → app}/assets/images/flags/bb.png +0 -0
  25. data/{vendor → app}/assets/images/flags/bd.png +0 -0
  26. data/{vendor → app}/assets/images/flags/be.png +0 -0
  27. data/{vendor → app}/assets/images/flags/bf.png +0 -0
  28. data/{vendor → app}/assets/images/flags/bg.png +0 -0
  29. data/{vendor → app}/assets/images/flags/bh.png +0 -0
  30. data/{vendor → app}/assets/images/flags/bi.png +0 -0
  31. data/{vendor → app}/assets/images/flags/bj.png +0 -0
  32. data/{vendor → app}/assets/images/flags/bm.png +0 -0
  33. data/{vendor → app}/assets/images/flags/bn.png +0 -0
  34. data/{vendor → app}/assets/images/flags/bo.png +0 -0
  35. data/{vendor → app}/assets/images/flags/br.png +0 -0
  36. data/{vendor → app}/assets/images/flags/bs.png +0 -0
  37. data/{vendor → app}/assets/images/flags/bt.png +0 -0
  38. data/{vendor → app}/assets/images/flags/bv.png +0 -0
  39. data/{vendor → app}/assets/images/flags/bw.png +0 -0
  40. data/{vendor → app}/assets/images/flags/by.png +0 -0
  41. data/{vendor → app}/assets/images/flags/bz.png +0 -0
  42. data/{vendor → app}/assets/images/flags/ca.png +0 -0
  43. data/{vendor → app}/assets/images/flags/catalonia.png +0 -0
  44. data/{vendor → app}/assets/images/flags/cc.png +0 -0
  45. data/{vendor → app}/assets/images/flags/cd.png +0 -0
  46. data/{vendor → app}/assets/images/flags/cf.png +0 -0
  47. data/{vendor → app}/assets/images/flags/cg.png +0 -0
  48. data/{vendor → app}/assets/images/flags/ch.png +0 -0
  49. data/{vendor → app}/assets/images/flags/ci.png +0 -0
  50. data/{vendor → app}/assets/images/flags/ck.png +0 -0
  51. data/{vendor → app}/assets/images/flags/cl.png +0 -0
  52. data/{vendor → app}/assets/images/flags/cm.png +0 -0
  53. data/{vendor → app}/assets/images/flags/cn.png +0 -0
  54. data/{vendor → app}/assets/images/flags/co.png +0 -0
  55. data/{vendor → app}/assets/images/flags/cr.png +0 -0
  56. data/{vendor → app}/assets/images/flags/cs.png +0 -0
  57. data/{vendor → app}/assets/images/flags/cu.png +0 -0
  58. data/{vendor → app}/assets/images/flags/cv.png +0 -0
  59. data/{vendor → app}/assets/images/flags/cx.png +0 -0
  60. data/{vendor → app}/assets/images/flags/cy.png +0 -0
  61. data/{vendor → app}/assets/images/flags/cz.png +0 -0
  62. data/{vendor → app}/assets/images/flags/de.png +0 -0
  63. data/{vendor → app}/assets/images/flags/dj.png +0 -0
  64. data/{vendor → app}/assets/images/flags/dk.png +0 -0
  65. data/{vendor → app}/assets/images/flags/dm.png +0 -0
  66. data/{vendor → app}/assets/images/flags/do.png +0 -0
  67. data/{vendor → app}/assets/images/flags/dz.png +0 -0
  68. data/{vendor → app}/assets/images/flags/ec.png +0 -0
  69. data/{vendor → app}/assets/images/flags/ee.png +0 -0
  70. data/{vendor → app}/assets/images/flags/eg.png +0 -0
  71. data/{vendor → app}/assets/images/flags/eh.png +0 -0
  72. data/{vendor → app}/assets/images/flags/england.png +0 -0
  73. data/{vendor → app}/assets/images/flags/er.png +0 -0
  74. data/{vendor → app}/assets/images/flags/es.png +0 -0
  75. data/{vendor → app}/assets/images/flags/et.png +0 -0
  76. data/{vendor → app}/assets/images/flags/europeanunion.png +0 -0
  77. data/{vendor → app}/assets/images/flags/fam.png +0 -0
  78. data/{vendor → app}/assets/images/flags/fi.png +0 -0
  79. data/{vendor → app}/assets/images/flags/fj.png +0 -0
  80. data/{vendor → app}/assets/images/flags/fk.png +0 -0
  81. data/{vendor → app}/assets/images/flags/fm.png +0 -0
  82. data/{vendor → app}/assets/images/flags/fo.png +0 -0
  83. data/{vendor → app}/assets/images/flags/fr.png +0 -0
  84. data/{vendor → app}/assets/images/flags/ga.png +0 -0
  85. data/{vendor → app}/assets/images/flags/gb.png +0 -0
  86. data/{vendor → app}/assets/images/flags/gd.png +0 -0
  87. data/{vendor → app}/assets/images/flags/ge.png +0 -0
  88. data/{vendor → app}/assets/images/flags/gf.png +0 -0
  89. data/{vendor → app}/assets/images/flags/gh.png +0 -0
  90. data/{vendor → app}/assets/images/flags/gi.png +0 -0
  91. data/{vendor → app}/assets/images/flags/gl.png +0 -0
  92. data/{vendor → app}/assets/images/flags/gm.png +0 -0
  93. data/{vendor → app}/assets/images/flags/gn.png +0 -0
  94. data/{vendor → app}/assets/images/flags/gp.png +0 -0
  95. data/{vendor → app}/assets/images/flags/gq.png +0 -0
  96. data/{vendor → app}/assets/images/flags/gr.png +0 -0
  97. data/{vendor → app}/assets/images/flags/gs.png +0 -0
  98. data/{vendor → app}/assets/images/flags/gt.png +0 -0
  99. data/{vendor → app}/assets/images/flags/gu.png +0 -0
  100. data/{vendor → app}/assets/images/flags/gw.png +0 -0
  101. data/{vendor → app}/assets/images/flags/gy.png +0 -0
  102. data/{vendor → app}/assets/images/flags/hk.png +0 -0
  103. data/{vendor → app}/assets/images/flags/hm.png +0 -0
  104. data/{vendor → app}/assets/images/flags/hn.png +0 -0
  105. data/{vendor → app}/assets/images/flags/hr.png +0 -0
  106. data/{vendor → app}/assets/images/flags/ht.png +0 -0
  107. data/{vendor → app}/assets/images/flags/hu.png +0 -0
  108. data/{vendor → app}/assets/images/flags/id.png +0 -0
  109. data/{vendor → app}/assets/images/flags/ie.png +0 -0
  110. data/{vendor → app}/assets/images/flags/il.png +0 -0
  111. data/{vendor → app}/assets/images/flags/in.png +0 -0
  112. data/{vendor → app}/assets/images/flags/io.png +0 -0
  113. data/{vendor → app}/assets/images/flags/iq.png +0 -0
  114. data/{vendor → app}/assets/images/flags/ir.png +0 -0
  115. data/{vendor → app}/assets/images/flags/is.png +0 -0
  116. data/{vendor → app}/assets/images/flags/it.png +0 -0
  117. data/{vendor → app}/assets/images/flags/ja.png +0 -0
  118. data/{vendor → app}/assets/images/flags/jm.png +0 -0
  119. data/{vendor → app}/assets/images/flags/jo.png +0 -0
  120. data/{vendor → app}/assets/images/flags/ke.png +0 -0
  121. data/{vendor → app}/assets/images/flags/kg.png +0 -0
  122. data/{vendor → app}/assets/images/flags/kh.png +0 -0
  123. data/{vendor → app}/assets/images/flags/ki.png +0 -0
  124. data/{vendor → app}/assets/images/flags/km.png +0 -0
  125. data/{vendor → app}/assets/images/flags/kn.png +0 -0
  126. data/{vendor → app}/assets/images/flags/kp.png +0 -0
  127. data/{vendor → app}/assets/images/flags/kr.png +0 -0
  128. data/{vendor → app}/assets/images/flags/kw.png +0 -0
  129. data/{vendor → app}/assets/images/flags/ky.png +0 -0
  130. data/{vendor → app}/assets/images/flags/kz.png +0 -0
  131. data/{vendor → app}/assets/images/flags/la.png +0 -0
  132. data/{vendor → app}/assets/images/flags/lb.png +0 -0
  133. data/{vendor → app}/assets/images/flags/lc.png +0 -0
  134. data/{vendor → app}/assets/images/flags/li.png +0 -0
  135. data/{vendor → app}/assets/images/flags/lk.png +0 -0
  136. data/{vendor → app}/assets/images/flags/lr.png +0 -0
  137. data/{vendor → app}/assets/images/flags/ls.png +0 -0
  138. data/{vendor → app}/assets/images/flags/lt.png +0 -0
  139. data/{vendor → app}/assets/images/flags/lu.png +0 -0
  140. data/{vendor → app}/assets/images/flags/lv.png +0 -0
  141. data/{vendor → app}/assets/images/flags/ly.png +0 -0
  142. data/{vendor → app}/assets/images/flags/ma.png +0 -0
  143. data/{vendor → app}/assets/images/flags/mc.png +0 -0
  144. data/{vendor → app}/assets/images/flags/md.png +0 -0
  145. data/{vendor → app}/assets/images/flags/me.png +0 -0
  146. data/{vendor → app}/assets/images/flags/mg.png +0 -0
  147. data/{vendor → app}/assets/images/flags/mh.png +0 -0
  148. data/{vendor → app}/assets/images/flags/mk.png +0 -0
  149. data/{vendor → app}/assets/images/flags/ml.png +0 -0
  150. data/{vendor → app}/assets/images/flags/mm.png +0 -0
  151. data/{vendor → app}/assets/images/flags/mn.png +0 -0
  152. data/{vendor → app}/assets/images/flags/mo.png +0 -0
  153. data/{vendor → app}/assets/images/flags/mp.png +0 -0
  154. data/{vendor → app}/assets/images/flags/mq.png +0 -0
  155. data/{vendor → app}/assets/images/flags/mr.png +0 -0
  156. data/{vendor → app}/assets/images/flags/ms.png +0 -0
  157. data/{vendor → app}/assets/images/flags/mt.png +0 -0
  158. data/{vendor → app}/assets/images/flags/mu.png +0 -0
  159. data/{vendor → app}/assets/images/flags/mv.png +0 -0
  160. data/{vendor → app}/assets/images/flags/mw.png +0 -0
  161. data/{vendor → app}/assets/images/flags/mx.png +0 -0
  162. data/{vendor → app}/assets/images/flags/my.png +0 -0
  163. data/{vendor → app}/assets/images/flags/mz.png +0 -0
  164. data/{vendor → app}/assets/images/flags/na.png +0 -0
  165. data/{vendor → app}/assets/images/flags/nc.png +0 -0
  166. data/{vendor → app}/assets/images/flags/ne.png +0 -0
  167. data/{vendor → app}/assets/images/flags/nf.png +0 -0
  168. data/{vendor → app}/assets/images/flags/ng.png +0 -0
  169. data/{vendor → app}/assets/images/flags/ni.png +0 -0
  170. data/{vendor → app}/assets/images/flags/nl.png +0 -0
  171. data/{vendor → app}/assets/images/flags/no.png +0 -0
  172. data/{vendor → app}/assets/images/flags/np.png +0 -0
  173. data/{vendor → app}/assets/images/flags/nr.png +0 -0
  174. data/{vendor → app}/assets/images/flags/nu.png +0 -0
  175. data/{vendor → app}/assets/images/flags/nz.png +0 -0
  176. data/{vendor → app}/assets/images/flags/om.png +0 -0
  177. data/{vendor → app}/assets/images/flags/pa.png +0 -0
  178. data/{vendor → app}/assets/images/flags/pe.png +0 -0
  179. data/{vendor → app}/assets/images/flags/pf.png +0 -0
  180. data/{vendor → app}/assets/images/flags/pg.png +0 -0
  181. data/{vendor → app}/assets/images/flags/ph.png +0 -0
  182. data/{vendor → app}/assets/images/flags/pk.png +0 -0
  183. data/{vendor → app}/assets/images/flags/pl.png +0 -0
  184. data/{vendor → app}/assets/images/flags/pm.png +0 -0
  185. data/{vendor → app}/assets/images/flags/pn.png +0 -0
  186. data/{vendor → app}/assets/images/flags/pr.png +0 -0
  187. data/{vendor → app}/assets/images/flags/ps.png +0 -0
  188. data/{vendor → app}/assets/images/flags/pt.png +0 -0
  189. data/{vendor → app}/assets/images/flags/pw.png +0 -0
  190. data/{vendor → app}/assets/images/flags/py.png +0 -0
  191. data/{vendor → app}/assets/images/flags/qa.png +0 -0
  192. data/{vendor → app}/assets/images/flags/re.png +0 -0
  193. data/{vendor → app}/assets/images/flags/ro.png +0 -0
  194. data/{vendor → app}/assets/images/flags/rs.png +0 -0
  195. data/{vendor → app}/assets/images/flags/ru.png +0 -0
  196. data/{vendor → app}/assets/images/flags/rw.png +0 -0
  197. data/{vendor → app}/assets/images/flags/sa.png +0 -0
  198. data/{vendor → app}/assets/images/flags/sb.png +0 -0
  199. data/{vendor → app}/assets/images/flags/sc.png +0 -0
  200. data/{vendor → app}/assets/images/flags/scotland.png +0 -0
  201. data/{vendor → app}/assets/images/flags/sd.png +0 -0
  202. data/{vendor → app}/assets/images/flags/se.png +0 -0
  203. data/{vendor → app}/assets/images/flags/sg.png +0 -0
  204. data/{vendor → app}/assets/images/flags/sh.png +0 -0
  205. data/{vendor → app}/assets/images/flags/si.png +0 -0
  206. data/{vendor → app}/assets/images/flags/sj.png +0 -0
  207. data/{vendor → app}/assets/images/flags/sk.png +0 -0
  208. data/{vendor → app}/assets/images/flags/sl.png +0 -0
  209. data/{vendor → app}/assets/images/flags/sm.png +0 -0
  210. data/{vendor → app}/assets/images/flags/sn.png +0 -0
  211. data/{vendor → app}/assets/images/flags/so.png +0 -0
  212. data/{vendor → app}/assets/images/flags/sr.png +0 -0
  213. data/{vendor → app}/assets/images/flags/st.png +0 -0
  214. data/{vendor → app}/assets/images/flags/sv.png +0 -0
  215. data/{vendor → app}/assets/images/flags/sy.png +0 -0
  216. data/{vendor → app}/assets/images/flags/sz.png +0 -0
  217. data/{vendor → app}/assets/images/flags/tc.png +0 -0
  218. data/{vendor → app}/assets/images/flags/td.png +0 -0
  219. data/{vendor → app}/assets/images/flags/tf.png +0 -0
  220. data/{vendor → app}/assets/images/flags/tg.png +0 -0
  221. data/{vendor → app}/assets/images/flags/th.png +0 -0
  222. data/{vendor → app}/assets/images/flags/tj.png +0 -0
  223. data/{vendor → app}/assets/images/flags/tk.png +0 -0
  224. data/{vendor → app}/assets/images/flags/tl.png +0 -0
  225. data/{vendor → app}/assets/images/flags/tm.png +0 -0
  226. data/{vendor → app}/assets/images/flags/tn.png +0 -0
  227. data/{vendor → app}/assets/images/flags/to.png +0 -0
  228. data/{vendor → app}/assets/images/flags/tr.png +0 -0
  229. data/{vendor → app}/assets/images/flags/tt.png +0 -0
  230. data/{vendor → app}/assets/images/flags/tv.png +0 -0
  231. data/{vendor → app}/assets/images/flags/tw.png +0 -0
  232. data/{vendor → app}/assets/images/flags/tz.png +0 -0
  233. data/{vendor → app}/assets/images/flags/ua.png +0 -0
  234. data/{vendor → app}/assets/images/flags/ug.png +0 -0
  235. data/{vendor → app}/assets/images/flags/um.png +0 -0
  236. data/{vendor → app}/assets/images/flags/us.png +0 -0
  237. data/{vendor → app}/assets/images/flags/uy.png +0 -0
  238. data/{vendor → app}/assets/images/flags/uz.png +0 -0
  239. data/{vendor → app}/assets/images/flags/va.png +0 -0
  240. data/{vendor → app}/assets/images/flags/vc.png +0 -0
  241. data/{vendor → app}/assets/images/flags/ve.png +0 -0
  242. data/{vendor → app}/assets/images/flags/vg.png +0 -0
  243. data/{vendor → app}/assets/images/flags/vi.png +0 -0
  244. data/{vendor → app}/assets/images/flags/vn.png +0 -0
  245. data/{vendor → app}/assets/images/flags/vu.png +0 -0
  246. data/{vendor → app}/assets/images/flags/wales.png +0 -0
  247. data/{vendor → app}/assets/images/flags/wf.png +0 -0
  248. data/{vendor → app}/assets/images/flags/ws.png +0 -0
  249. data/{vendor → app}/assets/images/flags/ye.png +0 -0
  250. data/{vendor → app}/assets/images/flags/yt.png +0 -0
  251. data/{vendor → app}/assets/images/flags/za.png +0 -0
  252. data/{vendor → app}/assets/images/flags/zm.png +0 -0
  253. data/{vendor → app}/assets/images/flags/zw.png +0 -0
  254. data/app/assets/images/logo/spree_50.png +0 -0
  255. data/app/assets/images/spree_header.jpg +0 -0
  256. data/app/assets/javascripts/spree/frontend.js +1 -1
  257. data/app/assets/javascripts/spree/frontend/checkout/payment.js.coffee +2 -2
  258. data/app/assets/stylesheets/spree/frontend.css +4 -4
  259. data/app/assets/stylesheets/spree/frontend/_variables.scss +4 -61
  260. data/app/assets/stylesheets/spree/frontend/frontend_bootstrap.css.scss +102 -0
  261. data/app/controllers/spree/checkout_controller.rb +31 -27
  262. data/app/controllers/spree/orders_controller.rb +20 -8
  263. data/app/controllers/spree/store_controller.rb +2 -3
  264. data/app/controllers/spree/taxons_controller.rb +2 -2
  265. data/app/helpers/spree/frontend_helper.rb +93 -0
  266. data/app/helpers/spree/orders_helper.rb +16 -0
  267. data/app/helpers/spree/store_helper.rb +10 -0
  268. data/app/helpers/spree/taxons_helper.rb +19 -0
  269. data/app/models/spree/frontend_configuration.rb +1 -1
  270. data/app/views/kaminari/twitter-bootstrap-3/_first_page.html.erb +13 -0
  271. data/app/views/kaminari/twitter-bootstrap-3/_gap.html.erb +8 -0
  272. data/app/views/kaminari/twitter-bootstrap-3/_last_page.html.erb +13 -0
  273. data/app/views/kaminari/twitter-bootstrap-3/_next_page.html.erb +13 -0
  274. data/app/views/kaminari/twitter-bootstrap-3/_page.html.erb +12 -0
  275. data/app/views/kaminari/twitter-bootstrap-3/_paginator.html.erb +24 -0
  276. data/app/views/kaminari/twitter-bootstrap-3/_prev_page.html.erb +13 -0
  277. data/app/views/spree/address/_form.html.erb +24 -24
  278. data/app/views/spree/checkout/_address.html.erb +33 -22
  279. data/app/views/spree/checkout/_confirm.html.erb +10 -9
  280. data/app/views/spree/checkout/_delivery.html.erb +24 -20
  281. data/app/views/spree/checkout/_payment.html.erb +17 -18
  282. data/app/views/spree/checkout/_summary.html.erb +2 -2
  283. data/app/views/spree/checkout/edit.html.erb +23 -14
  284. data/app/views/spree/checkout/payment/_gateway.html.erb +31 -28
  285. data/app/views/spree/layouts/spree_application.html.erb +6 -12
  286. data/app/views/spree/orders/_adjustments.html.erb +5 -0
  287. data/app/views/spree/orders/_form.html.erb +8 -8
  288. data/app/views/spree/orders/_line_item.html.erb +6 -6
  289. data/app/views/spree/orders/edit.html.erb +14 -16
  290. data/app/views/spree/orders/show.html.erb +9 -4
  291. data/app/views/spree/products/_cart_form.html.erb +15 -11
  292. data/app/views/spree/products/_promotions.html.erb +1 -1
  293. data/app/views/spree/products/_properties.html.erb +2 -2
  294. data/app/views/spree/products/_taxons.html.erb +4 -4
  295. data/app/views/spree/products/_thumbnails.html.erb +3 -3
  296. data/app/views/spree/products/index.html.erb +13 -9
  297. data/app/views/spree/products/show.html.erb +11 -9
  298. data/app/views/spree/shared/_error_messages.html.erb +12 -0
  299. data/app/views/spree/shared/_filters.html.erb +4 -4
  300. data/app/views/spree/shared/_footer.html.erb +10 -6
  301. data/app/views/spree/shared/_google_add_items.js.erb +11 -0
  302. data/app/views/spree/shared/_google_analytics.js.erb +13 -0
  303. data/app/views/spree/shared/_google_checkout.js.erb +10 -0
  304. data/app/views/spree/shared/_google_purchase.js.erb +13 -0
  305. data/app/views/spree/shared/_head.html.erb +1 -1
  306. data/app/views/spree/shared/_header.html.erb +17 -5
  307. data/app/views/spree/shared/_login.html.erb +19 -0
  308. data/app/views/spree/shared/_login_bar.html.erb +6 -0
  309. data/app/views/spree/shared/_main_nav_bar.html.erb +15 -11
  310. data/app/views/spree/shared/_nav_bar.html.erb +3 -2
  311. data/app/views/spree/shared/_order_details.html.erb +30 -31
  312. data/app/views/spree/shared/_products.html.erb +19 -15
  313. data/app/views/spree/shared/_search.html.erb +8 -4
  314. data/app/views/spree/shared/_sidebar.html.erb +1 -1
  315. data/app/views/spree/shared/_taxonomies.html.erb +1 -1
  316. data/app/views/spree/taxons/show.html.erb +1 -1
  317. data/config/initializers/spree.rb +0 -2
  318. data/lib/spree/frontend.rb +5 -4
  319. data/lib/spree/frontend/engine.rb +2 -2
  320. data/script/rails +9 -0
  321. data/spec/controllers/controller_extension_spec.rb +115 -0
  322. data/spec/controllers/controller_helpers_spec.rb +26 -0
  323. data/spec/controllers/spree/checkout_controller_spec.rb +424 -0
  324. data/spec/controllers/spree/checkout_controller_with_views_spec.rb +36 -0
  325. data/spec/controllers/spree/content_controller_spec.rb +12 -0
  326. data/spec/controllers/spree/current_order_tracking_spec.rb +44 -0
  327. data/spec/controllers/spree/home_controller_spec.rb +27 -0
  328. data/spec/controllers/spree/orders_controller_ability_spec.rb +104 -0
  329. data/spec/controllers/spree/orders_controller_spec.rb +134 -0
  330. data/spec/controllers/spree/orders_controller_transitions_spec.rb +31 -0
  331. data/spec/controllers/spree/products_controller_spec.rb +36 -0
  332. data/spec/controllers/spree/taxons_controller_spec.rb +12 -0
  333. data/spec/features/address_spec.rb +93 -0
  334. data/spec/features/automatic_promotion_adjustments_spec.rb +47 -0
  335. data/spec/features/caching/products_spec.rb +55 -0
  336. data/spec/features/caching/taxons_spec.rb +22 -0
  337. data/spec/features/cart_spec.rb +84 -0
  338. data/spec/features/checkout_spec.rb +515 -0
  339. data/spec/features/checkout_unshippable_spec.rb +34 -0
  340. data/spec/features/coupon_code_spec.rb +87 -0
  341. data/spec/features/currency_spec.rb +18 -0
  342. data/spec/features/free_shipping_promotions_spec.rb +59 -0
  343. data/spec/features/locale_spec.rb +60 -0
  344. data/spec/features/order_spec.rb +74 -0
  345. data/spec/features/page_promotions_spec.rb +36 -0
  346. data/spec/features/products_spec.rb +262 -0
  347. data/spec/features/taxons_spec.rb +147 -0
  348. data/spec/features/template_rendering_spec.rb +19 -0
  349. data/spec/fixtures/thinking-cat.jpg +0 -0
  350. data/spec/helpers/frontend_helper_spec.rb +41 -0
  351. data/spec/helpers/order_helper_spec.rb +12 -0
  352. data/spec/helpers/taxons_helper_spec.rb +17 -0
  353. data/spec/spec_helper.rb +115 -0
  354. data/spec/support/shared_contexts/checkout_setup.rb +9 -0
  355. data/spec/support/shared_contexts/custom_products.rb +25 -0
  356. data/spec/support/shared_contexts/product_prototypes.rb +30 -0
  357. data/spec/views/spree/checkout/_summary_spec.rb +11 -0
  358. data/spree_frontend.gemspec +30 -0
  359. metadata +392 -282
  360. data/app/assets/images/icons/add-to-cart.png +0 -0
  361. data/app/assets/images/icons/checkout.png +0 -0
  362. data/app/assets/images/icons/delete.png +0 -0
  363. data/app/assets/images/icons/update.png +0 -0
  364. data/app/assets/images/spinner.gif +0 -0
  365. data/app/assets/images/spree/frontend/cart.png +0 -0
  366. data/app/assets/images/spree/frontend/select_arrow.gif +0 -0
  367. data/app/assets/stylesheets/spree/frontend/screen.css.scss +0 -1321
  368. data/app/views/spree/shared/_google_analytics.html.erb +0 -40
  369. data/config/initializers/assets.rb +0 -1
  370. data/config/initializers/check_for_orphaned_preferences.rb +0 -9
  371. data/config/initializers/deprecation_checker.rb +0 -7
  372. data/config/initializers/rails_5868.rb +0 -8
  373. data/lib/spree/frontend/preference_rescue.rb +0 -25
  374. data/vendor/assets/images/datepicker/cal.gif +0 -0
  375. data/vendor/assets/images/jquery.formalize/button.png +0 -0
  376. data/vendor/assets/images/jquery.formalize/select_arrow.gif +0 -0
  377. data/vendor/assets/javascripts/jquery.formalize.min.js +0 -1
  378. data/vendor/assets/stylesheets/jquery.formalize.css.erb +0 -363
@@ -1,20 +1,25 @@
1
+ <% content_for :google_analytics do %>
2
+ <% if order_just_completed?(@order) %>
3
+ <%= render partial: 'spree/shared/google_purchase.js', locals: { order: @order } %>
4
+ <% end %>
5
+ <% end %>
1
6
  <fieldset id="order_summary" data-hook>
2
- <legend><%= Spree.t(:order_number, :number => @order.number) %></legend>
7
+ <legend><%= Spree.t(:order_number, number: @order.number) %></legend>
3
8
  <h1><%= accurate_title %></h1>
4
9
  <% if order_just_completed?(@order) %>
5
10
  <strong><%= Spree.t(:thank_you_for_your_order) %></strong>
6
11
  <% end %>
7
12
 
8
13
  <div id="order" data-hook>
9
- <%= render :partial => 'spree/shared/order_details', :locals => { :order => @order } %>
14
+ <%= render partial: 'spree/shared/order_details', locals: { order: @order } %>
10
15
 
11
16
  <br class="clear" />
12
17
 
13
18
  <p data-hook="links">
14
- <%= link_to Spree.t(:back_to_store), spree.root_path, :class => "button" %>
19
+ <%= link_to Spree.t(:back_to_store), spree.root_path, class: "button" %>
15
20
  <% unless order_just_completed?(@order) %>
16
21
  <% if try_spree_current_user && respond_to?(:spree_account_path) %>
17
- <%= link_to Spree.t(:my_account), spree_account_path, :class => "button" %>
22
+ <%= link_to Spree.t(:my_account), spree_account_path, class: "button" %>
18
23
  <% end %>
19
24
  <% end %>
20
25
  </p>
@@ -1,10 +1,10 @@
1
1
  <%= form_for :order, :url => populate_orders_path do |f| %>
2
- <div id="inside-product-cart-form" data-hook="inside_product_cart_form" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
2
+ <div class="row" id="inside-product-cart-form" data-hook="inside_product_cart_form" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
3
3
 
4
4
  <% if @product.variants_and_option_values(current_currency).any? %>
5
- <div id="product-variants" class="columns five alpha">
6
- <h6 class="product-section-title"><%= Spree.t(:variants) %></h6>
7
- <ul>
5
+ <div id="product-variants" class="col-md-6">
6
+ <h3 class="product-section-title"><%= Spree.t(:variants) %></h3>
7
+ <ul class="list-group">
8
8
  <% @product.variants_and_option_values(current_currency).each_with_index do |variant, index| %>
9
9
  <li>
10
10
  <%= radio_button_tag "variant_id", variant.id, index == 0, 'data-price' => variant.price_in(current_currency).money %>
@@ -15,7 +15,6 @@
15
15
  <% if variant_price variant %>
16
16
  <span class="price diff"><%= variant_price variant %></span>
17
17
  <% end %>
18
-
19
18
  <% unless variant.can_supply? %>
20
19
  <span class="out-of-stock"><%= Spree.t(:out_of_stock) %></span>
21
20
  <% end %>
@@ -29,12 +28,12 @@
29
28
  <% end %>
30
29
 
31
30
  <% if @product.price_in(current_currency) and !@product.price.nil? %>
32
- <div data-hook="product_price" class="columns five <% if !@product.has_variants? %> alpha <% else %> omega <% end %>">
31
+ <div data-hook="product_price" class="col-md-5">
33
32
 
34
33
  <div id="product-price">
35
34
  <h6 class="product-section-title"><%= Spree.t(:price) %></h6>
36
35
  <div>
37
- <span class="price selling" itemprop="price">
36
+ <span class="lead price selling" itemprop="price">
38
37
  <%= display_price(@product) %>
39
38
  </span>
40
39
  <span itemprop="priceCurrency" content="<%= @product.currency %>"></span>
@@ -49,10 +48,15 @@
49
48
  </div>
50
49
 
51
50
  <div class="add-to-cart">
52
- <%= number_field_tag :quantity, 1, :class => 'title', :min => 1 %>
53
- <%= button_tag :class => 'large primary', :id => 'add-to-cart-button', :type => :submit do %>
54
- <%= Spree.t(:add_to_cart) %>
55
- <% end %>
51
+ <br/>
52
+ <div class="input-group">
53
+ <%= number_field_tag :quantity, 1, :class => 'title form-control', :min => 1 %>
54
+ <span class="input-group-btn">
55
+ <%= button_tag :class => 'btn btn-success', :id => 'add-to-cart-button', :type => :submit do %>
56
+ <%= Spree.t(:add_to_cart) %>
57
+ <% end %>
58
+ </span>
59
+ </div>
56
60
  </div>
57
61
  </div>
58
62
  <% else %>
@@ -3,7 +3,7 @@
3
3
  <div id="promotions">
4
4
  <h3><%= Spree.t(:promotions) %></h3>
5
5
  <% promotions.each do |promotion| %>
6
- <div>
6
+ <div class="well well-sm">
7
7
  <h4><%= promotion.name %></h4>
8
8
  <p><%= promotion.description %></p>
9
9
  <% if promotion.products.any? %>
@@ -1,6 +1,6 @@
1
1
  <% unless @product_properties.empty? %>
2
- <h6 class="product-section-title"><%= Spree.t('properties')%></h6>
3
- <table id="product-properties" class="table-display" data-hook>
2
+ <h3 class="product-section-title"><%= Spree.t('properties')%></h3>
3
+ <table id="product-properties" class="table table-striped" data-hook>
4
4
  <tbody>
5
5
  <% @product_properties.each do |product_property| %>
6
6
  <% css_class = cycle('even', 'odd', :name => "properties") %>
@@ -1,11 +1,11 @@
1
1
  <% if !@product.taxons.blank? %>
2
- <div id="taxon-crumbs" data-hook class="alpha columns five omega">
3
- <h6 class="product-section-title"><%= Spree.t(:look_for_similar_items) %></h6>
2
+ <div id="taxon-crumbs" data-hook class=" five ">
3
+ <h3 class="product-section-title"><%= Spree.t(:look_for_similar_items) %></h3>
4
4
 
5
5
  <div data-hook="product_taxons">
6
- <ul id="similar_items_by_taxon" data-hook>
6
+ <ul class="list-group" id="similar_items_by_taxon" data-hook>
7
7
  <% @product.taxons.each do |taxon| %>
8
- <li><%= link_to taxon.name, seo_url(taxon) %></li>
8
+ <li class="list-group-item"><%= link_to taxon.name, seo_url(taxon) %></li>
9
9
  <% end %>
10
10
  </ul>
11
11
  </div>
@@ -1,9 +1,9 @@
1
1
  <%# no need for thumbnails unless there is more than one image %>
2
2
  <% if (@product.images + @product.variant_images).uniq.size > 1 %>
3
- <ul id="product-thumbnails" class="thumbnails inline" data-hook>
3
+ <ul id="product-thumbnails" class="thumbnails list-inline" data-hook>
4
4
  <% @product.images.each do |i| %>
5
5
  <li class='tmb-all tmb-<%= i.viewable.id %>'>
6
- <%= link_to(image_tag(i.attachment.url(:mini)), i.attachment.url(:product)) %>
6
+ <%= link_to(image_tag(i.attachment.url(:mini), class: "thumbnail"), i.attachment.url(:product)) %>
7
7
  </li>
8
8
  <% end %>
9
9
 
@@ -11,7 +11,7 @@
11
11
  <% @product.variant_images.each do |i| %>
12
12
  <% next if @product.images.include?(i) %>
13
13
  <li class='vtmb tmb-<%= i.viewable.id %>'>
14
- <%= link_to(image_tag(i.attachment.url(:mini)), i.attachment.url(:product)) %>
14
+ <%= link_to(image_tag(i.attachment.url(:mini), class: "thumbnail"), i.attachment.url(:product)) %>
15
15
  </li>
16
16
  <% end %>
17
17
  <% end %>
@@ -1,11 +1,13 @@
1
- <% content_for :sidebar do %>
2
- <div data-hook="homepage_sidebar_navigation">
3
- <% if "spree/products" == params[:controller] && @taxon %>
4
- <%= render :partial => 'spree/shared/filters' %>
5
- <% else %>
6
- <%= render :partial => 'spree/shared/taxonomies' %>
7
- <% end %>
8
- </div>
1
+ <% if "spree/products" == params[:controller] && @taxon || !@taxonomies.empty? %>
2
+ <% content_for :sidebar do %>
3
+ <div data-hook="homepage_sidebar_navigation">
4
+ <% if "spree/products" == params[:controller] && @taxon %>
5
+ <%= render :partial => 'spree/shared/filters' %>
6
+ <% else %>
7
+ <%= render :partial => 'spree/shared/taxonomies' %>
8
+ <% end %>
9
+ </div>
10
+ <% end %>
9
11
  <% end %>
10
12
 
11
13
 
@@ -22,6 +24,8 @@
22
24
  <% else %>
23
25
 
24
26
  <div data-hook="homepage_products">
25
- <%= render :partial => 'spree/shared/products', :locals => { :products => @products, :taxon => @taxon } %>
27
+ <% cache(cache_key_for_products) do %>
28
+ <%= render :partial => 'spree/shared/products', :locals => { :products => @products, :taxon => @taxon } %>
29
+ <% end %>
26
30
  </div>
27
31
  <% end %>
@@ -1,13 +1,15 @@
1
- <% cache [I18n.locale, current_currency, @product, @product.possible_promotions] do %>
1
+ <% @body_id = 'product-details' %>
2
+ <% cache [I18n.locale, current_currency, @product] do %>
2
3
  <div data-hook="product_show" itemscope itemtype="http://schema.org/Product">
3
- <% @body_id = 'product-details' %>
4
4
 
5
- <div class="columns six alpha" data-hook="product_left_part">
6
- <div class="row" data-hook="product_left_part_wrap">
5
+ <div class="col-md-4" data-hook="product_left_part">
6
+ <div data-hook="product_left_part_wrap">
7
7
 
8
8
  <div id="product-images" data-hook="product_images">
9
- <div id="main-image" data-hook>
10
- <%= render :partial => 'image' %>
9
+ <div id="main-image" class="panel panel-default" data-hook>
10
+ <div class="panel-body text-center">
11
+ <%= render :partial => 'image' %>
12
+ </div>
11
13
  </div>
12
14
  <div id="thumbnails" data-hook>
13
15
  <%= render :partial => 'thumbnails' %>
@@ -25,14 +27,14 @@
25
27
  </div>
26
28
  </div>
27
29
 
28
- <div class="columns ten omega" data-hook="product_right_part">
29
- <div class="row" data-hook="product_right_part_wrap">
30
+ <div class="col-md-8" data-hook="product_right_part">
31
+ <div data-hook="product_right_part_wrap">
30
32
 
31
33
  <div id="product-description" data-hook="product_description">
32
34
 
33
35
  <h1 class="product-title" itemprop="name"><%= @product.name %></h1>
34
36
 
35
- <div itemprop="description" data-hook="description">
37
+ <div class="well" itemprop="description" data-hook="description">
36
38
  <%= product_description(@product) rescue Spree.t(:product_has_no_description) %>
37
39
  </div>
38
40
 
@@ -0,0 +1,12 @@
1
+ <% if target && target.errors.any? %>
2
+ <div id="errorExplanation" class="alert alert-danger" data-hook>
3
+ <h3><%= Spree.t(:errors_prohibited_this_record_from_being_saved, :count => target.errors.count) %>:</h3>
4
+ <p><%= Spree.t(:there_were_problems_with_the_following_fields) %>:</p>
5
+ <ul>
6
+ <% target.errors.full_messages.each do |msg| %>
7
+ <li><%= msg %></li>
8
+ <% end %>
9
+ </ul>
10
+ <br/>
11
+ </div>
12
+ <% end %>
@@ -6,11 +6,11 @@
6
6
  <% labels = filter[:labels] || filter[:conds].map {|m,c| [m,m]} %>
7
7
  <% next if labels.empty? %>
8
8
  <div class="navigation" data-hook="navigation">
9
- <h6 class="filter-title"> <%= filter[:name] %> </h6>
10
- <ul class="filter_choices">
9
+ <h4 class="filter-title"> <%= filter[:name] %> </h4>
10
+ <ul class="list-group">
11
11
  <% labels.each do |nm,val| %>
12
12
  <% label = "#{filter[:name]}_#{nm}".gsub(/\s+/,'_') %>
13
- <li class="nowrap">
13
+ <li class="list-group-item">
14
14
  <input type="checkbox"
15
15
  id="<%= label %>"
16
16
  name="search[<%= filter[:scope].to_s %>][]"
@@ -22,6 +22,6 @@
22
22
  </ul>
23
23
  </div>
24
24
  <% end %>
25
- <%= submit_tag Spree.t(:search), :name => nil %>
25
+ <%= submit_tag Spree.t(:search), :name => nil, :class => 'btn btn-primary' %>
26
26
  <% end %>
27
27
  <% end %>
@@ -1,6 +1,10 @@
1
- <footer id="footer" class="sixteen columns" data-hook>
2
- <div id="footer-left" class="columns alpha eight" data-hook>
3
- <p><%= Spree.t :powered_by %> <%= link_to 'Spree', 'http://spreecommerce.com/' %></p>
4
- </div>
5
- <div id="footer-right" class="columns omega eight" data-hook></div>
6
- </footer>
1
+ <div id="spree-footer">
2
+ <div class="container">
3
+ <footer id="footer" class="row" data-hook>
4
+ <div id="footer-left" class="col-md-6" data-hook>
5
+ <p><%= Spree.t :powered_by %>&nbsp;<%= link_to 'Spree', 'http://spreecommerce.com/' %></p>
6
+ </div>
7
+ <div id="footer-right" class="col-md-6" data-hook></div>
8
+ </footer>
9
+ </div>
10
+ </div>
@@ -0,0 +1,11 @@
1
+ <% order.line_items.each do |line_item| %>
2
+ ga('ec:addProduct', { // Provide product details in a productFieldObject.
3
+ 'id': '<%= j (line_item.variant.sku || line_item.variant_id) %>', // Product ID (string).
4
+ 'name': '<%= j line_item.variant.product.name %>', // Product name (string).
5
+ 'category': '', // Product category (string).
6
+ 'brand': '', // Product brand (string).
7
+ 'variant': '', // Product variant (string).
8
+ 'price': '<%= line_item.price %>',
9
+ 'quantity': <%= line_item.quantity %>
10
+ });
11
+ <% end %>
@@ -0,0 +1,13 @@
1
+ <% if tracker = Spree::Tracker.current %>
2
+ <script>
3
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
4
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
5
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
6
+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
7
+
8
+ ga('create', '<%= tracker.analytics_id %>', 'auto');
9
+ ga('require', 'displayfeatures');
10
+ <%= yield :google_analytics %>
11
+ ga('send', 'pageview');
12
+ </script>
13
+ <% end %>
@@ -0,0 +1,10 @@
1
+ <%# more info: https://developers.google.com/analytics/devguides/collection/analyticsjs/enhanced-ecommerce %>
2
+ ga('require', 'ec');
3
+ ga('set', '&cu', '<%= current_currency %>');
4
+
5
+ <%= render partial: 'spree/shared/google_add_items.js', locals: { order: order } %>
6
+
7
+ // Add the step number and additional info about the checkout to the action.
8
+ ga('ec:setAction','checkout', {
9
+ 'step': <%= step_number %>
10
+ });
@@ -0,0 +1,13 @@
1
+ <%# more info: https://developers.google.com/analytics/devguides/collection/analyticsjs/enhanced-ecommerce %>
2
+ ga('require', 'ec');
3
+ ga('set', '&cu', '<%= current_currency %>');
4
+
5
+ <%= render partial: 'spree/shared/google_add_items.js', locals: { order: order } %>
6
+
7
+ ga('ec:setAction', 'purchase', { // Transaction details are provided in an actionFieldObject.
8
+ 'id': '<%= j order.number %>', // Transaction ID. Required.
9
+ 'affiliation': '<%= current_store.name %>', // Affiliation (string).
10
+ 'revenue': '<%= order.total %>', // Revenue (currency).
11
+ 'tax': '<%= @order.tax_total %>', // Tax.
12
+ 'shipping': '<%= @order.ship_total %>' // Shipping.
13
+ });
@@ -5,7 +5,7 @@
5
5
  <%== meta_data_tags %>
6
6
  <%= canonical_tag(current_store.url) %>
7
7
  <%= favicon_link_tag 'favicon.ico' %>
8
- <%= stylesheet_link_tag 'spree/frontend/all', :media => 'screen' %>
8
+ <%= stylesheet_link_tag 'spree/frontend/all', media: 'screen' %>
9
9
  <%= csrf_meta_tags %>
10
10
  <%= javascript_include_tag 'spree/frontend/all' %>
11
11
  <!--[if lt IE 9]>
@@ -1,5 +1,17 @@
1
- <header id="header" class="row" data-hook>
2
- <figure id="logo" class="columns six" data-hook><%= logo %></figure>
3
- <%= render :partial => 'spree/shared/nav_bar' %>
4
- <%= render :partial => 'spree/shared/main_nav_bar' if store_menu? %>
5
- </header>
1
+ <div id="spree-header">
2
+
3
+ <header id="header" data-hook>
4
+ <div class="container">
5
+ <div class="row">
6
+ <figure id="logo" class="col-md-4" data-hook>
7
+ <%= logo %>
8
+ </figure>
9
+ <%= render :partial => 'spree/shared/nav_bar' %>
10
+ </div>
11
+ </div>
12
+ </header>
13
+ <div class="container">
14
+ <%= render :partial => 'spree/shared/main_nav_bar' if store_menu? %>
15
+ </div>
16
+
17
+ </div>
@@ -0,0 +1,19 @@
1
+ <%= form_for Spree::User.new, :as => :spree_user, :url => spree.create_new_session_path do |f| %>
2
+ <fieldset id="password-credentials">
3
+ <div class="form-group">
4
+ <%= f.email_field :email, :class => 'form-control', :tabindex => 1, :placeholder => Spree.t(:email) %>
5
+ </div>
6
+ <div class="form-group">
7
+ <%= f.password_field :password, :class => 'form-control', :tabindex => 2, :placeholder => Spree.t(:password) %>
8
+ </div>
9
+ <div class="checkbox">
10
+ <label>
11
+ <%= f.check_box :remember_me %>
12
+ <%= f.label :remember_me, Spree.t(:remember_me) %>
13
+ </label>
14
+ </div>
15
+ <div class="form-group">
16
+ <%= f.submit Spree.t(:login), :class => 'btn btn-lg btn-success btn-block', :tabindex => 3 %>
17
+ </div>
18
+ </fieldset>
19
+ <% end %>
@@ -0,0 +1,6 @@
1
+ <% if spree_current_user %>
2
+ <li><%= link_to Spree.t(:my_account), spree.account_path %></li>
3
+ <li><%= link_to Spree.t(:logout), spree.logout_path %></li>
4
+ <% else %>
5
+ <li id="link-to-login"><%= link_to Spree.t(:login), spree.login_path %></li>
6
+ <% end %>
@@ -1,12 +1,16 @@
1
- <nav class="columns sixteen">
2
- <ul id="main-nav-bar" class="inline" data-hook>
3
- <li id="home-link" data-hook><%= link_to Spree.t(:home), spree.root_path %></li>
4
- <li id="link-to-cart" data-hook>
5
- <noscript>
6
- <%= link_to Spree.t(:cart), '/cart' %>
7
- </noscript>
8
- &nbsp;
9
- </li>
10
- <script>Spree.fetch_cart()</script>
11
- </ul>
1
+ <nav class="col-md-12">
2
+ <div id="main-nav-bar" class="navbar">
3
+ <ul class="nav navbar-nav" data-hook>
4
+ <li id="home-link" data-hook><%= link_to Spree.t(:home), spree.root_path %></li>
5
+ </ul>
6
+ <ul class="nav navbar-nav navbar-right" data-hook>
7
+ <li id="link-to-cart" data-hook>
8
+ <noscript>
9
+ <%= link_to Spree.t(:cart), '/cart' %>
10
+ </noscript>
11
+ &nbsp;
12
+ </li>
13
+ <script>Spree.fetch_cart()</script>
14
+ </ul>
15
+ </div>
12
16
  </nav>
@@ -1,7 +1,8 @@
1
- <nav id="top-nav-bar" class="columns ten">
2
- <ul id="nav-bar" class="inline" data-hook>
1
+ <nav class="navbar col-md-8" id="top-nav-bar">
2
+ <ul id="nav-bar" class="nav navbar-nav navbar-right" data-hook>
3
3
  <li id="search-bar" data-hook>
4
4
  <%= render :partial => 'spree/shared/search' %>
5
5
  </li>
6
6
  </ul>
7
+
7
8
  </nav>
@@ -2,34 +2,34 @@
2
2
 
3
3
  <% if order.has_step?("address") %>
4
4
 
5
- <div class="columns alpha four" data-hook="order-bill-address">
6
- <h6><%= Spree.t(:billing_address) %> <%= link_to "(#{Spree.t(:edit)})", checkout_state_path(:address) unless order.completed? %></h6>
7
- <%= render :partial => 'spree/shared/address', :locals => { :address => order.bill_address } %>
5
+ <div class="col-md-3" data-hook="order-bill-address">
6
+ <h4><%= Spree.t(:billing_address) %> <%= link_to "(#{Spree.t(:edit)})", checkout_state_path(:address) unless order.completed? %></h4>
7
+ <%= render partial: 'spree/shared/address', locals: { address: order.bill_address } %>
8
8
  </div>
9
9
 
10
10
  <% if order.has_step?("delivery") %>
11
- <div class="columns alpha four" data-hook="order-ship-address">
12
- <h6><%= Spree.t(:shipping_address) %> <%= link_to "(#{Spree.t(:edit)})", checkout_state_path(:address) unless order.completed? %></h6>
13
- <%= render :partial => 'spree/shared/address', :locals => { :address => order.ship_address } %>
11
+ <div class="col-md-3" data-hook="order-ship-address">
12
+ <h4><%= Spree.t(:shipping_address) %> <%= link_to "(#{Spree.t(:edit)})", checkout_state_path(:address) unless order.completed? %></h4>
13
+ <%= render partial: 'spree/shared/address', locals: { address: order.ship_address } %>
14
14
  </div>
15
15
 
16
- <div class="columns alpha four" data-hook="order-shipment">
17
- <h6><%= Spree.t(:shipments) %> <%= link_to "(#{Spree.t(:edit)})", checkout_state_path(:delivery) unless order.completed? %></h6>
16
+ <div class=" col-md-3" data-hook="order-shipment">
17
+ <h4><%= Spree.t(:shipments) %> <%= link_to "(#{Spree.t(:edit)})", checkout_state_path(:delivery) unless order.completed? %></h4>
18
18
  <div class="delivery">
19
19
  <% order.shipments.each do |shipment| %>
20
20
  <div>
21
21
  <i class='fa fa-truck'></i>
22
- <%= Spree.t(:shipment_details, :stock_location => shipment.stock_location.name, :shipping_method => shipment.selected_shipping_rate.name) %>
22
+ <%= Spree.t(:shipment_details, stock_location: shipment.stock_location.name, shipping_method: shipment.selected_shipping_rate.name) %>
23
23
  </div>
24
24
  <% end %>
25
25
  </div>
26
- <%= render(:partial => 'spree/shared/shipment_tracking', :locals => {:order => order}) if order.shipped? %>
26
+ <%= render(partial: 'spree/shared/shipment_tracking', locals: { order: order } ) if order.shipped? %>
27
27
  </div>
28
28
  <% end %>
29
29
  <% end %>
30
30
 
31
- <div class="columns omega four">
32
- <h6><%= Spree.t(:payment_information) %> <%= link_to "(#{Spree.t(:edit)})", checkout_state_path(:payment) unless order.completed? %></h6>
31
+ <div class="col-md-3">
32
+ <h4><%= Spree.t(:payment_information) %> <%= link_to "(#{Spree.t(:edit)})", checkout_state_path(:payment) unless order.completed? %></h4>
33
33
  <div class="payment-info">
34
34
  <% order.payments.valid.each do |payment| %>
35
35
  <%= render payment%><br/>
@@ -41,7 +41,7 @@
41
41
 
42
42
  <hr />
43
43
 
44
- <table id='line-items' class="index columns alpha omega sixteen" data-hook="order_details">
44
+ <table id='line-items' class="table" data-hook="order_details">
45
45
  <col width="15%" valign="middle" halign="center">
46
46
  <col width="70%" valign="middle">
47
47
  <col width="5%" valign="middle" halign="center">
@@ -49,7 +49,7 @@
49
49
  <col width="5%" valign="middle" halign="center">
50
50
 
51
51
  <thead data-hook>
52
- <tr data-hook="order_details_line_items_headers">
52
+ <tr class="active" data-hook="order_details_line_items_headers">
53
53
  <th colspan="2"><%= Spree.t(:item) %></th>
54
54
  <th class="price"><%= Spree.t(:price) %></th>
55
55
  <th class="qty"><%= Spree.t(:qty) %></th>
@@ -72,16 +72,16 @@
72
72
  <%= truncated_product_description(item.variant.product) %>
73
73
  <%= "(" + item.variant.options_text + ")" unless item.variant.option_values.empty? %>
74
74
  </td>
75
- <td data-hook="order_item_price" class="price"><span><%= item.single_money.to_html %></span></td>
76
- <td data-hook="order_item_qty"><%= item.quantity %></td>
77
- <td data-hook="order_item_total" class="total"><span><%= item.display_amount.to_html %></span></td>
75
+ <td data-hook="order_item_price" class="lead text-primary price"><span><%= item.single_money.to_html %></span></td>
76
+ <td data-hook="order_item_qty" class="order-qty"><%= item.quantity %></td>
77
+ <td data-hook="order_item_total" class="lead text-primary total"><span><%= item.display_amount.to_html %></span></td>
78
78
  </tr>
79
79
  <% end %>
80
80
  </tbody>
81
81
  <tfoot id="order-total" data-hook="order_details_total">
82
- <tr class="total">
83
- <td colspan="4"><b><%= Spree.t(:order_total) %>:</b></td>
84
- <td class="total"><span id="order_total"><%= order.display_total.to_html %></span></td>
82
+ <tr class="warning total">
83
+ <td colspan="4" align="right"><b><%= Spree.t(:order_total) %>:</b></td>
84
+ <td class="total"><span id="order_total" class="lead text-primary"><%= order.display_total.to_html %></span></td>
85
85
  </tr>
86
86
  </tfoot>
87
87
 
@@ -96,19 +96,19 @@
96
96
  <% if order.all_adjustments.promotion.eligible.exists? %>
97
97
  <tfoot id="price-adjustments" data-hook="order_details_price_adjustments">
98
98
  <% order.all_adjustments.promotion.eligible.group_by(&:label).each do |label, adjustments| %>
99
- <tr class="total">
100
- <td colspan="4"><%= Spree.t(:promotion) %>: <strong><%= label %></strong></td>
101
- <td class="total"><span><%= Spree::Money.new(adjustments.sum(&:amount), currency: order.currency) %></span></td>
102
- </tr>
103
- <% end %>
104
- </tfoot>
99
+ <tr class="total">
100
+ <td colspan="4"><%= Spree.t(:promotion) %>: <strong><%= label %></strong></td>
101
+ <td class="total"><span><%= Spree::Money.new(adjustments.sum(&:amount), currency: order.currency) %></span></td>
102
+ </tr>
103
+ <% end %>
104
+ </tfoot>
105
105
  <% end %>
106
106
  <% end %>
107
107
 
108
108
  <tfoot id='shipment-total'>
109
109
  <% order.shipments.group_by { |s| s.selected_shipping_rate.name }.each do |name, shipments| %>
110
110
  <tr class="total" data-hook='shipment-row'>
111
- <td colspan="4"><%= Spree.t(:shipping) %>: <strong><%= name %></strong></td>
111
+ <td colspan="4" align="right" class="text-muted"><%= Spree.t(:shipping) %>: <strong><%= name %></strong></td>
112
112
  <td class="total"><span><%= Spree::Money.new(shipments.sum(&:discounted_cost), currency: order.currency).to_html %></span></td>
113
113
  </tr>
114
114
  <% end %>
@@ -118,7 +118,7 @@
118
118
  <tfoot id="tax-adjustments" data-hook="order_details_tax_adjustments">
119
119
  <% order.all_adjustments.tax.group_by(&:label).each do |label, adjustments| %>
120
120
  <tr class="total">
121
- <td colspan="4"><%= Spree.t(:tax) %>: <strong><%= label %></strong></td>
121
+ <td colspan="4" align="right" class="text-muted"><%= Spree.t(:tax) %>: <strong><%= label %></strong></td>
122
122
  <td class="total"><span><%= Spree::Money.new(adjustments.sum(&:amount), currency: order.currency) %></span></td>
123
123
  </tr>
124
124
  <% end %>
@@ -127,12 +127,11 @@
127
127
 
128
128
  <tfoot id="order-charges" data-hook="order_details_adjustments">
129
129
  <% order.adjustments.eligible.each do |adjustment| %>
130
- <% next if (adjustment.source_type == 'Spree::TaxRate') and (adjustment.amount == 0) %>
130
+ <% next if (adjustment.source_type == 'Spree::TaxRate') and (adjustment.amount == 0) %>
131
131
  <tr class="total">
132
- <td colspan="4"><strong><%= adjustment.label %></strong></td>
132
+ <td colspan="4" align="right"><strong><%= adjustment.label %></strong></td>
133
133
  <td class="total"><span><%= adjustment.display_amount.to_html %></span></td>
134
134
  </tr>
135
135
  <% end %>
136
136
  </tfoot>
137
-
138
137
  </table>