spree_backend 2.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (370) hide show
  1. checksums.yaml +15 -0
  2. data/app/assets/images/admin/bg/spree_50.png +0 -0
  3. data/app/assets/images/admin/payment_banner.png +0 -0
  4. data/app/assets/images/admin/progress.gif +0 -0
  5. data/app/assets/javascripts/admin/address_states.js +27 -0
  6. data/app/assets/javascripts/admin/admin.js.erb +283 -0
  7. data/app/assets/javascripts/admin/calculator.js +16 -0
  8. data/app/assets/javascripts/admin/checkouts/edit.js +94 -0
  9. data/app/assets/javascripts/admin/gateway.js +13 -0
  10. data/app/assets/javascripts/admin/image_settings.js.erb +62 -0
  11. data/app/assets/javascripts/admin/images/index.js.coffee +15 -0
  12. data/app/assets/javascripts/admin/images/new.js.coffee +7 -0
  13. data/app/assets/javascripts/admin/nested-attribute.js +23 -0
  14. data/app/assets/javascripts/admin/option_type_autocomplete.js.erb +35 -0
  15. data/app/assets/javascripts/admin/orders/edit.js +17 -0
  16. data/app/assets/javascripts/admin/orders/edit_form.js +16 -0
  17. data/app/assets/javascripts/admin/payments/new.js +16 -0
  18. data/app/assets/javascripts/admin/product_picker.js +37 -0
  19. data/app/assets/javascripts/admin/progress.coffee +27 -0
  20. data/app/assets/javascripts/admin/promotions.js +98 -0
  21. data/app/assets/javascripts/admin/shipments.js.erb +66 -0
  22. data/app/assets/javascripts/admin/spree-select2.js.erb +22 -0
  23. data/app/assets/javascripts/admin/spree_backend.js +19 -0
  24. data/app/assets/javascripts/admin/states.js +9 -0
  25. data/app/assets/javascripts/admin/stock_management.js.coffee +9 -0
  26. data/app/assets/javascripts/admin/stock_transfer.js.coffee +181 -0
  27. data/app/assets/javascripts/admin/taxon_autocomplete.js.erb +32 -0
  28. data/app/assets/javascripts/admin/taxon_tree_menu.js.coffee +22 -0
  29. data/app/assets/javascripts/admin/taxonomy.js.coffee +127 -0
  30. data/app/assets/javascripts/admin/underscore-min.js +1227 -0
  31. data/app/assets/javascripts/admin/user_picker.js +31 -0
  32. data/app/assets/javascripts/admin/variant_autocomplete.js.erb +180 -0
  33. data/app/assets/javascripts/admin/zone.js.coffee +39 -0
  34. data/app/assets/javascripts/store/backend.js +1 -0
  35. data/app/assets/stylesheets/admin/components/_actions.scss +31 -0
  36. data/app/assets/stylesheets/admin/components/_date-picker.scss +154 -0
  37. data/app/assets/stylesheets/admin/components/_messages.scss +43 -0
  38. data/app/assets/stylesheets/admin/components/_navigation.scss +150 -0
  39. data/app/assets/stylesheets/admin/components/_pagination.scss +17 -0
  40. data/app/assets/stylesheets/admin/components/_product_autocomplete.scss +29 -0
  41. data/app/assets/stylesheets/admin/components/_progress.scss +35 -0
  42. data/app/assets/stylesheets/admin/components/_sidebar.scss +24 -0
  43. data/app/assets/stylesheets/admin/components/_states.scss +34 -0
  44. data/app/assets/stylesheets/admin/components/_table-filter.scss +14 -0
  45. data/app/assets/stylesheets/admin/globals/_functions.scss +25 -0
  46. data/app/assets/stylesheets/admin/globals/_mixins.scss +25 -0
  47. data/app/assets/stylesheets/admin/globals/_variables.scss +142 -0
  48. data/app/assets/stylesheets/admin/globals/_variables_override.scss +7 -0
  49. data/app/assets/stylesheets/admin/hacks/_ie.scss +73 -0
  50. data/app/assets/stylesheets/admin/hacks/_mozilla.scss +32 -0
  51. data/app/assets/stylesheets/admin/hacks/_opera.scss +17 -0
  52. data/app/assets/stylesheets/admin/plugins/_jstree.scss +132 -0
  53. data/app/assets/stylesheets/admin/plugins/_powertip.scss +86 -0
  54. data/app/assets/stylesheets/admin/plugins/_select2.scss +176 -0
  55. data/app/assets/stylesheets/admin/plugins/_token-input.scss +110 -0
  56. data/app/assets/stylesheets/admin/plugins/font-awesome.scss +303 -0
  57. data/app/assets/stylesheets/admin/sections/_bulk_transfer.scss +8 -0
  58. data/app/assets/stylesheets/admin/sections/_edit_checkouts.scss +72 -0
  59. data/app/assets/stylesheets/admin/sections/_image_settings.scss +3 -0
  60. data/app/assets/stylesheets/admin/sections/_orders.scss +54 -0
  61. data/app/assets/stylesheets/admin/sections/_overview.scss +86 -0
  62. data/app/assets/stylesheets/admin/sections/_products.scss +113 -0
  63. data/app/assets/stylesheets/admin/sections/_promotions.scss +100 -0
  64. data/app/assets/stylesheets/admin/shared/_forms.scss +262 -0
  65. data/app/assets/stylesheets/admin/shared/_icons.scss +22 -0
  66. data/app/assets/stylesheets/admin/shared/_layout.scss +91 -0
  67. data/app/assets/stylesheets/admin/shared/_tables.scss +198 -0
  68. data/app/assets/stylesheets/admin/shared/_typography.scss +132 -0
  69. data/app/assets/stylesheets/admin/spree_admin.scss +39 -0
  70. data/app/assets/stylesheets/admin/spree_backend.css +16 -0
  71. data/app/assets/stylesheets/store/backend.css +1 -0
  72. data/app/controllers/spree/admin/adjustments_controller.rb +30 -0
  73. data/app/controllers/spree/admin/banners_controller.rb +14 -0
  74. data/app/controllers/spree/admin/base_controller.rb +92 -0
  75. data/app/controllers/spree/admin/countries_controller.rb +11 -0
  76. data/app/controllers/spree/admin/general_settings_controller.rb +34 -0
  77. data/app/controllers/spree/admin/image_settings_controller.rb +66 -0
  78. data/app/controllers/spree/admin/images_controller.rb +35 -0
  79. data/app/controllers/spree/admin/inventory_units_controller.rb +6 -0
  80. data/app/controllers/spree/admin/line_items_controller.rb +49 -0
  81. data/app/controllers/spree/admin/mail_methods_controller.rb +38 -0
  82. data/app/controllers/spree/admin/option_types_controller.rb +46 -0
  83. data/app/controllers/spree/admin/option_values_controller.rb +11 -0
  84. data/app/controllers/spree/admin/orders/customer_details_controller.rb +40 -0
  85. data/app/controllers/spree/admin/orders_controller.rb +133 -0
  86. data/app/controllers/spree/admin/overview_controller.rb +13 -0
  87. data/app/controllers/spree/admin/payment_methods_controller.rb +65 -0
  88. data/app/controllers/spree/admin/payments_controller.rb +111 -0
  89. data/app/controllers/spree/admin/product_properties_controller.rb +18 -0
  90. data/app/controllers/spree/admin/products_controller.rb +115 -0
  91. data/app/controllers/spree/admin/promotion_actions_controller.rb +45 -0
  92. data/app/controllers/spree/admin/promotion_rules_controller.rb +50 -0
  93. data/app/controllers/spree/admin/promotions_controller.rb +23 -0
  94. data/app/controllers/spree/admin/properties_controller.rb +12 -0
  95. data/app/controllers/spree/admin/prototypes_controller.rb +27 -0
  96. data/app/controllers/spree/admin/reports_controller.rb +55 -0
  97. data/app/controllers/spree/admin/resource_controller.rb +261 -0
  98. data/app/controllers/spree/admin/return_authorizations_controller.rb +21 -0
  99. data/app/controllers/spree/admin/search_controller.rb +27 -0
  100. data/app/controllers/spree/admin/shipping_categories_controller.rb +6 -0
  101. data/app/controllers/spree/admin/shipping_methods_controller.rb +45 -0
  102. data/app/controllers/spree/admin/states_controller.rb +29 -0
  103. data/app/controllers/spree/admin/stock_items_controller.rb +24 -0
  104. data/app/controllers/spree/admin/stock_locations_controller.rb +7 -0
  105. data/app/controllers/spree/admin/stock_movements_controller.rb +60 -0
  106. data/app/controllers/spree/admin/stock_transfers_controller.rb +53 -0
  107. data/app/controllers/spree/admin/tax_categories_controller.rb +19 -0
  108. data/app/controllers/spree/admin/tax_rates_controller.rb +26 -0
  109. data/app/controllers/spree/admin/tax_settings_controller.rb +17 -0
  110. data/app/controllers/spree/admin/taxonomies_controller.rb +21 -0
  111. data/app/controllers/spree/admin/taxons_controller.rb +112 -0
  112. data/app/controllers/spree/admin/trackers_controller.rb +6 -0
  113. data/app/controllers/spree/admin/variants_controller.rb +44 -0
  114. data/app/controllers/spree/admin/zones_controller.rb +26 -0
  115. data/app/helpers/spree/admin/base_helper.rb +168 -0
  116. data/app/helpers/spree/admin/general_settings_helper.rb +13 -0
  117. data/app/helpers/spree/admin/inventory_settings_helper.rb +9 -0
  118. data/app/helpers/spree/admin/navigation_helper.rb +154 -0
  119. data/app/helpers/spree/admin/orders_helper.rb +19 -0
  120. data/app/helpers/spree/admin/payments_helper.rb +11 -0
  121. data/app/helpers/spree/admin/products_helper.rb +27 -0
  122. data/app/helpers/spree/admin/stock_movements_helper.rb +13 -0
  123. data/app/helpers/spree/admin/tables_helper.rb +15 -0
  124. data/app/helpers/spree/admin/taxons_helper.rb +9 -0
  125. data/app/helpers/spree/promotion_rules_helper.rb +13 -0
  126. data/app/models/spree/backend_configuration.rb +5 -0
  127. data/app/views/spree/admin/adjustments/_adjustments_table.html.erb +36 -0
  128. data/app/views/spree/admin/adjustments/_form.html.erb +16 -0
  129. data/app/views/spree/admin/adjustments/edit.html.erb +22 -0
  130. data/app/views/spree/admin/adjustments/index.html.erb +14 -0
  131. data/app/views/spree/admin/adjustments/new.html.erb +23 -0
  132. data/app/views/spree/admin/banners/_gateway.html.erb +16 -0
  133. data/app/views/spree/admin/countries/_form.html.erb +22 -0
  134. data/app/views/spree/admin/countries/edit.html.erb +21 -0
  135. data/app/views/spree/admin/countries/index.html.erb +34 -0
  136. data/app/views/spree/admin/general_settings/edit.html.erb +92 -0
  137. data/app/views/spree/admin/image_settings/edit.html.erb +126 -0
  138. data/app/views/spree/admin/images/_form.html.erb +18 -0
  139. data/app/views/spree/admin/images/edit.html.erb +28 -0
  140. data/app/views/spree/admin/images/index.html.erb +58 -0
  141. data/app/views/spree/admin/images/new.html.erb +15 -0
  142. data/app/views/spree/admin/inventory_units/adjust.html.erb +31 -0
  143. data/app/views/spree/admin/line_items/create.js.erb +1 -0
  144. data/app/views/spree/admin/line_items/destroy.js.erb +1 -0
  145. data/app/views/spree/admin/mail_methods/_form.html.erb +80 -0
  146. data/app/views/spree/admin/mail_methods/edit.html.erb +21 -0
  147. data/app/views/spree/admin/option_types/_form.html.erb +17 -0
  148. data/app/views/spree/admin/option_types/_option_value_fields.html.erb +9 -0
  149. data/app/views/spree/admin/option_types/edit.html.erb +50 -0
  150. data/app/views/spree/admin/option_types/index.html.erb +40 -0
  151. data/app/views/spree/admin/option_types/new.html.erb +11 -0
  152. data/app/views/spree/admin/option_types/new.js.erb +2 -0
  153. data/app/views/spree/admin/orders/_add_product.html.erb +15 -0
  154. data/app/views/spree/admin/orders/_form.html.erb +45 -0
  155. data/app/views/spree/admin/orders/_line_item.html.erb +9 -0
  156. data/app/views/spree/admin/orders/_shipment.html.erb +148 -0
  157. data/app/views/spree/admin/orders/customer_details/_form.html.erb +66 -0
  158. data/app/views/spree/admin/orders/customer_details/edit.html.erb +27 -0
  159. data/app/views/spree/admin/orders/edit.html.erb +30 -0
  160. data/app/views/spree/admin/orders/index.html.erb +134 -0
  161. data/app/views/spree/admin/payment_methods/_form.html.erb +57 -0
  162. data/app/views/spree/admin/payment_methods/edit.html.erb +23 -0
  163. data/app/views/spree/admin/payment_methods/index.html.erb +52 -0
  164. data/app/views/spree/admin/payment_methods/new.html.erb +22 -0
  165. data/app/views/spree/admin/payments/_bill_address_form.html.erb +9 -0
  166. data/app/views/spree/admin/payments/_form.html.erb +28 -0
  167. data/app/views/spree/admin/payments/_list.html.erb +26 -0
  168. data/app/views/spree/admin/payments/credit.html.erb +18 -0
  169. data/app/views/spree/admin/payments/index.html.erb +24 -0
  170. data/app/views/spree/admin/payments/new.html.erb +26 -0
  171. data/app/views/spree/admin/payments/show.html.erb +18 -0
  172. data/app/views/spree/admin/payments/source_forms/_check.html.erb +0 -0
  173. data/app/views/spree/admin/payments/source_forms/_gateway.html.erb +50 -0
  174. data/app/views/spree/admin/payments/source_views/_check.html.erb +0 -0
  175. data/app/views/spree/admin/payments/source_views/_gateway.html.erb +29 -0
  176. data/app/views/spree/admin/product_properties/_product_property_fields.html.erb +17 -0
  177. data/app/views/spree/admin/product_properties/index.html.erb +59 -0
  178. data/app/views/spree/admin/products/_add_stock_form.html.erb +6 -0
  179. data/app/views/spree/admin/products/_form.html.erb +128 -0
  180. data/app/views/spree/admin/products/_properties_form.erb +10 -0
  181. data/app/views/spree/admin/products/edit.html.erb +18 -0
  182. data/app/views/spree/admin/products/index.html.erb +102 -0
  183. data/app/views/spree/admin/products/new.html.erb +81 -0
  184. data/app/views/spree/admin/products/new.js.erb +7 -0
  185. data/app/views/spree/admin/products/stock.html.erb +79 -0
  186. data/app/views/spree/admin/promotion_actions/create.js.erb +13 -0
  187. data/app/views/spree/admin/promotion_actions/destroy.js.erb +1 -0
  188. data/app/views/spree/admin/promotion_rules/create.js.erb +7 -0
  189. data/app/views/spree/admin/promotion_rules/destroy.js.erb +3 -0
  190. data/app/views/spree/admin/promotions/_actions.html.erb +32 -0
  191. data/app/views/spree/admin/promotions/_form.html.erb +56 -0
  192. data/app/views/spree/admin/promotions/_promotion_action.html.erb +11 -0
  193. data/app/views/spree/admin/promotions/_promotion_rule.html.erb +9 -0
  194. data/app/views/spree/admin/promotions/_rules.html.erb +45 -0
  195. data/app/views/spree/admin/promotions/_tab.html.erb +1 -0
  196. data/app/views/spree/admin/promotions/actions/_create_adjustment.html.erb +26 -0
  197. data/app/views/spree/admin/promotions/actions/_create_line_items.html.erb +22 -0
  198. data/app/views/spree/admin/promotions/edit.html.erb +28 -0
  199. data/app/views/spree/admin/promotions/index.html.erb +52 -0
  200. data/app/views/spree/admin/promotions/new.html.erb +16 -0
  201. data/app/views/spree/admin/promotions/rules/_first_order.html.erb +0 -0
  202. data/app/views/spree/admin/promotions/rules/_item_total.html.erb +6 -0
  203. data/app/views/spree/admin/promotions/rules/_landing_page.html.erb +5 -0
  204. data/app/views/spree/admin/promotions/rules/_product.html.erb +9 -0
  205. data/app/views/spree/admin/promotions/rules/_user.html.erb +4 -0
  206. data/app/views/spree/admin/promotions/rules/_user_logged_in.html.erb +0 -0
  207. data/app/views/spree/admin/properties/_form.html.erb +16 -0
  208. data/app/views/spree/admin/properties/edit.html.erb +18 -0
  209. data/app/views/spree/admin/properties/filtered.html.erb +1 -0
  210. data/app/views/spree/admin/properties/index.html.erb +41 -0
  211. data/app/views/spree/admin/properties/new.html.erb +13 -0
  212. data/app/views/spree/admin/properties/new.js.erb +2 -0
  213. data/app/views/spree/admin/prototypes/_form.html.erb +25 -0
  214. data/app/views/spree/admin/prototypes/_prototypes.html.erb +25 -0
  215. data/app/views/spree/admin/prototypes/available.js.erb +2 -0
  216. data/app/views/spree/admin/prototypes/edit.html.erb +20 -0
  217. data/app/views/spree/admin/prototypes/index.html.erb +40 -0
  218. data/app/views/spree/admin/prototypes/new.html.erb +11 -0
  219. data/app/views/spree/admin/prototypes/new.js.erb +5 -0
  220. data/app/views/spree/admin/prototypes/select.js.erb +4 -0
  221. data/app/views/spree/admin/prototypes/show.html.erb +42 -0
  222. data/app/views/spree/admin/reports/index.html.erb +21 -0
  223. data/app/views/spree/admin/reports/sales_total.html.erb +37 -0
  224. data/app/views/spree/admin/return_authorizations/_form.html.erb +78 -0
  225. data/app/views/spree/admin/return_authorizations/edit.html.erb +32 -0
  226. data/app/views/spree/admin/return_authorizations/index.html.erb +52 -0
  227. data/app/views/spree/admin/return_authorizations/new.html.erb +22 -0
  228. data/app/views/spree/admin/search/users.rabl +30 -0
  229. data/app/views/spree/admin/shared/_address.html.erb +6 -0
  230. data/app/views/spree/admin/shared/_address_form.html.erb +72 -0
  231. data/app/views/spree/admin/shared/_alert.html.erb +5 -0
  232. data/app/views/spree/admin/shared/_calculator_fields.html.erb +22 -0
  233. data/app/views/spree/admin/shared/_configuration_menu.html.erb +30 -0
  234. data/app/views/spree/admin/shared/_destroy.js.erb +16 -0
  235. data/app/views/spree/admin/shared/_edit_resource_links.html.erb +5 -0
  236. data/app/views/spree/admin/shared/_head.html.erb +25 -0
  237. data/app/views/spree/admin/shared/_new_resource_links.html.erb +5 -0
  238. data/app/views/spree/admin/shared/_order_details.html.erb +56 -0
  239. data/app/views/spree/admin/shared/_order_tabs.html.erb +75 -0
  240. data/app/views/spree/admin/shared/_product_sub_menu.html.erb +8 -0
  241. data/app/views/spree/admin/shared/_product_tabs.html.erb +30 -0
  242. data/app/views/spree/admin/shared/_report_criteria.html.erb +17 -0
  243. data/app/views/spree/admin/shared/_routes.html.erb +8 -0
  244. data/app/views/spree/admin/shared/_show_resource_links.html.erb +5 -0
  245. data/app/views/spree/admin/shared/_stock_movement_form.html.erb +30 -0
  246. data/app/views/spree/admin/shared/_tabs.html.erb +14 -0
  247. data/app/views/spree/admin/shared/_translations.html.erb +32 -0
  248. data/app/views/spree/admin/shared/_update_order_state.js +7 -0
  249. data/app/views/spree/admin/shipping_categories/_form.html.erb +6 -0
  250. data/app/views/spree/admin/shipping_categories/edit.html.erb +20 -0
  251. data/app/views/spree/admin/shipping_categories/index.html.erb +35 -0
  252. data/app/views/spree/admin/shipping_categories/new.html.erb +20 -0
  253. data/app/views/spree/admin/shipping_methods/_form.html.erb +58 -0
  254. data/app/views/spree/admin/shipping_methods/edit.html.erb +29 -0
  255. data/app/views/spree/admin/shipping_methods/index.html.erb +48 -0
  256. data/app/views/spree/admin/shipping_methods/new.html.erb +29 -0
  257. data/app/views/spree/admin/states/_form.html.erb +14 -0
  258. data/app/views/spree/admin/states/_state_list.html.erb +31 -0
  259. data/app/views/spree/admin/states/edit.html.erb +20 -0
  260. data/app/views/spree/admin/states/index.html.erb +24 -0
  261. data/app/views/spree/admin/states/new.html.erb +15 -0
  262. data/app/views/spree/admin/states/new.js.erb +2 -0
  263. data/app/views/spree/admin/stock_locations/_form.html.erb +87 -0
  264. data/app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb +39 -0
  265. data/app/views/spree/admin/stock_locations/edit.html.erb +17 -0
  266. data/app/views/spree/admin/stock_locations/index.html.erb +49 -0
  267. data/app/views/spree/admin/stock_locations/new.html.erb +16 -0
  268. data/app/views/spree/admin/stock_movements/_form.html.erb +13 -0
  269. data/app/views/spree/admin/stock_movements/edit.html.erb +16 -0
  270. data/app/views/spree/admin/stock_movements/index.html.erb +43 -0
  271. data/app/views/spree/admin/stock_movements/new.html.erb +16 -0
  272. data/app/views/spree/admin/stock_transfers/_stock_movements.html.erb +27 -0
  273. data/app/views/spree/admin/stock_transfers/index.html.erb +94 -0
  274. data/app/views/spree/admin/stock_transfers/new.html.erb +108 -0
  275. data/app/views/spree/admin/stock_transfers/show.html.erb +48 -0
  276. data/app/views/spree/admin/tax_categories/_form.html.erb +24 -0
  277. data/app/views/spree/admin/tax_categories/edit.html.erb +18 -0
  278. data/app/views/spree/admin/tax_categories/index.html.erb +48 -0
  279. data/app/views/spree/admin/tax_categories/new.html.erb +19 -0
  280. data/app/views/spree/admin/tax_categories/show.html.erb +1 -0
  281. data/app/views/spree/admin/tax_rates/_form.html.erb +42 -0
  282. data/app/views/spree/admin/tax_rates/edit.html.erb +21 -0
  283. data/app/views/spree/admin/tax_rates/index.html.erb +59 -0
  284. data/app/views/spree/admin/tax_rates/new.html.erb +25 -0
  285. data/app/views/spree/admin/tax_settings/edit.html.erb +18 -0
  286. data/app/views/spree/admin/taxonomies/_form.html.erb +7 -0
  287. data/app/views/spree/admin/taxonomies/_js_head.html.erb +13 -0
  288. data/app/views/spree/admin/taxonomies/_list.html.erb +26 -0
  289. data/app/views/spree/admin/taxonomies/_taxon.html.erb +12 -0
  290. data/app/views/spree/admin/taxonomies/edit.erb +42 -0
  291. data/app/views/spree/admin/taxonomies/index.html.erb +15 -0
  292. data/app/views/spree/admin/taxonomies/new.html.erb +22 -0
  293. data/app/views/spree/admin/taxons/_form.html.erb +44 -0
  294. data/app/views/spree/admin/taxons/_taxon_table.html.erb +23 -0
  295. data/app/views/spree/admin/taxons/edit.html.erb +23 -0
  296. data/app/views/spree/admin/taxons/search.rabl +5 -0
  297. data/app/views/spree/admin/trackers/_form.html.erb +34 -0
  298. data/app/views/spree/admin/trackers/edit.html.erb +20 -0
  299. data/app/views/spree/admin/trackers/index.html.erb +48 -0
  300. data/app/views/spree/admin/trackers/new.html.erb +20 -0
  301. data/app/views/spree/admin/variants/_autocomplete.js.erb +67 -0
  302. data/app/views/spree/admin/variants/_form.html.erb +37 -0
  303. data/app/views/spree/admin/variants/edit.html.erb +15 -0
  304. data/app/views/spree/admin/variants/index.html.erb +74 -0
  305. data/app/views/spree/admin/variants/new.html.erb +9 -0
  306. data/app/views/spree/admin/variants/new.js.erb +3 -0
  307. data/app/views/spree/admin/zones/_country_member.html.erb +5 -0
  308. data/app/views/spree/admin/zones/_form.html.erb +34 -0
  309. data/app/views/spree/admin/zones/_member_type.html.erb +19 -0
  310. data/app/views/spree/admin/zones/_state_member.html.erb +5 -0
  311. data/app/views/spree/admin/zones/edit.html.erb +23 -0
  312. data/app/views/spree/admin/zones/index.html.erb +53 -0
  313. data/app/views/spree/admin/zones/new.html.erb +21 -0
  314. data/app/views/spree/layouts/admin.html.erb +135 -0
  315. data/app/views/spree/test_mailer/test_email.text.erb +4 -0
  316. data/config/initializers/form_builder.rb +15 -0
  317. data/config/routes.rb +159 -0
  318. data/lib/spree/backend.rb +21 -0
  319. data/lib/spree/backend/action_callbacks.rb +26 -0
  320. data/lib/spree/backend/engine.rb +41 -0
  321. data/lib/spree_backend.rb +1 -0
  322. data/vendor/assets/fonts/fontawesome-webfont.eot +0 -0
  323. data/vendor/assets/fonts/fontawesome-webfont.svg +255 -0
  324. data/vendor/assets/fonts/fontawesome-webfont.ttf +0 -0
  325. data/vendor/assets/fonts/fontawesome-webfont.woff +0 -0
  326. data/vendor/assets/images/jquery-ui/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  327. data/vendor/assets/images/jquery-ui/ui-bg_flat_0_eeeeee_40x100.png +0 -0
  328. data/vendor/assets/images/jquery-ui/ui-bg_flat_55_ffffff_40x100.png +0 -0
  329. data/vendor/assets/images/jquery-ui/ui-bg_flat_75_ffffff_40x100.png +0 -0
  330. data/vendor/assets/images/jquery-ui/ui-bg_glass_65_ffffff_1x400.png +0 -0
  331. data/vendor/assets/images/jquery-ui/ui-bg_highlight-soft_100_f6f6f6_1x100.png +0 -0
  332. data/vendor/assets/images/jquery-ui/ui-bg_highlight-soft_25_0073ea_1x100.png +0 -0
  333. data/vendor/assets/images/jquery-ui/ui-bg_highlight-soft_50_dddddd_1x100.png +0 -0
  334. data/vendor/assets/images/jquery-ui/ui-icons_0073ea_256x240.png +0 -0
  335. data/vendor/assets/images/jquery-ui/ui-icons_454545_256x240.png +0 -0
  336. data/vendor/assets/images/jquery-ui/ui-icons_666666_256x240.png +0 -0
  337. data/vendor/assets/images/jquery-ui/ui-icons_ff0084_256x240.png +0 -0
  338. data/vendor/assets/images/jquery-ui/ui-icons_ffffff_256x240.png +0 -0
  339. data/vendor/assets/images/jquery.alerts/images/help.gif +0 -0
  340. data/vendor/assets/images/jquery.alerts/images/important.gif +0 -0
  341. data/vendor/assets/images/jquery.alerts/images/info.gif +0 -0
  342. data/vendor/assets/images/jquery.alerts/images/title.gif +0 -0
  343. data/vendor/assets/javascripts/css_browser_selector_dev.js +156 -0
  344. data/vendor/assets/javascripts/equalize.js +41 -0
  345. data/vendor/assets/javascripts/handlebars.js +1920 -0
  346. data/vendor/assets/javascripts/jquery.adaptivemenu.js +60 -0
  347. data/vendor/assets/javascripts/jquery.alerts/jquery.alerts.js +235 -0
  348. data/vendor/assets/javascripts/jquery.cookie.js +41 -0
  349. data/vendor/assets/javascripts/jquery.delayedobserver.js +35 -0
  350. data/vendor/assets/javascripts/jquery.horizontalNav.js +141 -0
  351. data/vendor/assets/javascripts/jquery.jstree/jquery.jstree.js +4540 -0
  352. data/vendor/assets/javascripts/jquery.jstree/themes/apple/bg.jpg +0 -0
  353. data/vendor/assets/javascripts/jquery.jstree/themes/apple/d.png +0 -0
  354. data/vendor/assets/javascripts/jquery.jstree/themes/apple/dot_for_ie.gif +0 -0
  355. data/vendor/assets/javascripts/jquery.jstree/themes/apple/style.css +61 -0
  356. data/vendor/assets/javascripts/jquery.jstree/themes/apple/throbber.gif +0 -0
  357. data/vendor/assets/javascripts/jquery.powertip.js +796 -0
  358. data/vendor/assets/javascripts/jquery.vAlign.js +11 -0
  359. data/vendor/assets/javascripts/modernizr.js +4 -0
  360. data/vendor/assets/javascripts/responsive-tables.js +42 -0
  361. data/vendor/assets/javascripts/spin.js +319 -0
  362. data/vendor/assets/javascripts/trunk8.js +233 -0
  363. data/vendor/assets/stylesheets/font-awesome-ie7.css +645 -0
  364. data/vendor/assets/stylesheets/font-awesome.css.erb +303 -0
  365. data/vendor/assets/stylesheets/jquery-ui.datepicker.css.erb +357 -0
  366. data/vendor/assets/stylesheets/jquery.alerts/jquery.alerts.css.erb +57 -0
  367. data/vendor/assets/stylesheets/jquery.alerts/jquery.alerts.spree.css +29 -0
  368. data/vendor/assets/stylesheets/jquery.powertip.css +85 -0
  369. data/vendor/assets/stylesheets/responsive-tables.css +21 -0
  370. metadata +509 -0
@@ -0,0 +1,18 @@
1
+ <div data-hook="admin_image_form_fields">
2
+ <div class="four columns alpha">
3
+ <div data-hook="file" class="field">
4
+ <%= f.label Spree.t(:filename) %><br>
5
+ <%= f.file_field :attachment %>
6
+ </div>
7
+ <div data-hook="variant" class="field">
8
+ <%= f.label Spree::Variant.model_name.human %><br>
9
+ <%= f.select :viewable_id, @variants, {}, {:class => 'select2 fullwidth'} %>
10
+ </div>
11
+ </div>
12
+ <div data-hook="alt_text" class="field omega five columns">
13
+ <%= f.label Spree.t(:alt_text) %><br>
14
+ <%= f.text_area :alt, :rows => 4, :class => 'fullwidth' %>
15
+ </div>
16
+ </div>
17
+
18
+ <div class="clear"></div>
@@ -0,0 +1,28 @@
1
+ <%= render :partial => 'spree/admin/shared/product_sub_menu' %>
2
+
3
+ <%= render :partial => 'spree/admin/shared/product_tabs', :locals => { :current => 'Images' } %>
4
+
5
+ <%= render :partial => 'spree/shared/error_messages', :locals => { :target => @image } %>
6
+
7
+ <% content_for :page_actions do %>
8
+ <li><%= button_link_to Spree.t(:back_to_images_list), admin_product_images_url(@product), :icon => 'icon-arrow-left' %></li>
9
+ <% end %>
10
+
11
+ <%= form_for [:admin, @product, @image], :html => { :multipart => true } do |f| %>
12
+ <fieldset data-hook="edit_image">
13
+ <legend align="center"><%= @image.attachment_file_name%></legend>
14
+ <div data-hook="thumbnail" class="field alpha three columns align-center">
15
+ <%= f.label Spree.t(:thumbnail) %><br>
16
+ <%= link_to image_tag(@image.attachment.url(:small)), @image.attachment.url(:product) %>
17
+ </div>
18
+ <div class="nine columns omega">
19
+ <%= render :partial => 'form', :locals => { :f => f } %>
20
+ </div>
21
+ <div class="clear"></div>
22
+ <div class="form-buttons filter-actions actions" data-hook="buttons">
23
+ <%= button Spree.t('actions.update'), 'icon-refresh' %>
24
+ <span class="or"><%= Spree.t(:or) %></span>
25
+ <%= link_to Spree.t('actions.cancel'), admin_product_images_url(@product), :id => 'cancel_link', :class => 'button icon-remove' %>
26
+ </div>
27
+ </fieldset>
28
+ <% end %>
@@ -0,0 +1,58 @@
1
+ <%= render :partial => 'spree/admin/shared/product_sub_menu' %>
2
+
3
+ <%= render :partial => 'spree/admin/shared/product_tabs', :locals => {:current => 'Images'} %>
4
+
5
+ <% content_for :page_actions do %>
6
+ <li><%= link_to_with_icon('icon-plus', Spree.t(:new_image), new_admin_product_image_url(@product), :id => 'new_image_link', :class => 'button') %></li>
7
+ <% end %>
8
+
9
+ <div id="images" data-hook></div>
10
+
11
+ <% unless @product.images.any? || @product.variant_images.any? %>
12
+ <div class="no-objects-found">
13
+ <%= Spree.t(:no_images_found) %>.
14
+ </div>
15
+ <% else %>
16
+ <table class="index sortable" data-hook="images_table" data-sortable-link="<%= update_positions_admin_product_images_url(@product) %>">
17
+ <colgroup>
18
+ <col style="width: 5%">
19
+ <col style="width: 10%">
20
+ <% if @product.has_variants? %>
21
+ <col style="width: 25%">
22
+ <% end %>
23
+ <col style="width: 45%">
24
+ <col style="width: 15%">
25
+ </colgroup>
26
+ <thead>
27
+ <tr data-hook="images_header">
28
+ <th colspan="2"><%= Spree.t(:thumbnail) %></th>
29
+ <% if @product.has_variants? %>
30
+ <th><%= Spree::Variant.model_name.human %></th>
31
+ <% end %>
32
+ <th><%= Spree.t(:alt_text) %></th>
33
+ <th class="actions"></th>
34
+ </tr>
35
+ </thead>
36
+
37
+ <tbody>
38
+ <% (@product.variant_images).each do |image| %>
39
+ <tr id="<%= spree_dom_id image %>" data-hook="images_row" class="<%= cycle('odd', 'even')%>">
40
+ <td class="no-border">
41
+ <span class="handle"></span>
42
+ </td>
43
+ <td>
44
+ <%= link_to image_tag(image.attachment.url(:mini)), image.attachment.url(:product) %>
45
+ </td>
46
+ <% if @product.has_variants? %>
47
+ <td><%= options_text_for(image) %></td>
48
+ <% end %>
49
+ <td><%= image.alt %></td>
50
+ <td class="actions">
51
+ <%= link_to_with_icon 'icon-edit', Spree.t(:edit), edit_admin_product_image_url(@product, image), :no_text => true, :data => {:action => 'edit'} %>
52
+ <%= link_to_delete image, { :url => admin_product_image_url(@product, image), :no_text => true } %>
53
+ </td>
54
+ </tr>
55
+ <% end %>
56
+ </tbody>
57
+ </table>
58
+ <% end %>
@@ -0,0 +1,15 @@
1
+ <%= form_for [:admin, @product, @image], :html => { :multipart => true } do |f| %>
2
+ <fieldset data-hook="new_image">
3
+ <legend align="center"><%= Spree.t(:new_image) %></legend>
4
+
5
+ <%= render :partial => 'form', :locals => { :f => f } %>
6
+
7
+ <div class="form-buttons filter-actions actions" data-hook="buttons">
8
+ <%= button Spree.t('actions.update'), 'icon-refresh' %>
9
+ <span class="or"><%= Spree.t(:or) %></span>
10
+ <%= link_to_with_icon 'icon-remove', Spree.t('actions.cancel'), admin_product_images_url(@product), :id => 'cancel_link', :class => 'button' %>
11
+ </div>
12
+ </fieldset>
13
+ <% end %>
14
+
15
+ <%= javascript_include_tag 'admin/images/new.js' %>
@@ -0,0 +1,31 @@
1
+ <%= render :partial => 'spree/shared/error_messages', :locals => { :target => @level } %>
2
+
3
+ <%= form_tag do %>
4
+ <br /><br />
5
+
6
+ <h1><%= Spree.t(:inventory_adjustment) %></h1>
7
+
8
+ <table class="basic-table">
9
+ <thead data-hook="inventory_header">
10
+ <tr>
11
+ <th><%= Spree.t(:sku) %></th>
12
+ <th><%= Spree.t(:product) %></th>
13
+ <th><%= Spree.t(:options) %></th>
14
+ <th><%= Spree.t(:adjustment) %></th>
15
+ </tr>
16
+ </thead>
17
+ <tbody>
18
+ <tr data-hook="inventory_row">
19
+ <td><%= @variant.sku %></td>
20
+ <td><%= @variant.product.name %></td>
21
+ <td><%= variant_options @variant %></td>
22
+ <td>
23
+ <%= text_field :level, :adjustment, :class => 'quantity' %>
24
+ </td>
25
+ </tr>
26
+ </tbody>
27
+ </table>
28
+ <%= submit_tag Spree.t('actions.update') %>
29
+ <%= Spree.t(:or) %>
30
+ <%= link_to Spree.t('actions.cancel'), :controller => 'overview', :action => :index %>
31
+ <% end %>
@@ -0,0 +1 @@
1
+ $("#order-form-wrapper").html('<%= escape_javascript(render :partial => "spree/admin/orders/form") %>');
@@ -0,0 +1 @@
1
+ $("#order-form-wrapper").html('<%= escape_javascript(render :partial => "spree/admin/orders/form") %>');
@@ -0,0 +1,80 @@
1
+ <div data-hook="admin_mail_method_form_fields">
2
+ <div class="row">
3
+
4
+ <div class="alpha six columns" data-hook="general">
5
+ <fieldset class="no-border-bottom">
6
+ <legend align="center"><%= Spree.t(:general) %></legend>
7
+
8
+ <div class="field">
9
+ <%= preference_field_tag("enable_mail_delivery", Spree::Config[:enable_mail_delivery], :type => :boolean) %>
10
+ <%= label_tag :enable_mail_delivery, Spree.t(:enable_mail_delivery) %>
11
+ </div>
12
+
13
+ <div class="field">
14
+ <%= label_tag :mails_from, Spree.t(:send_mails_as) %><br />
15
+ <%= text_field_tag :mails_from, Spree::Config[:mails_from], :maxlength => 256, :class => 'fullwidth' %>
16
+ <br />
17
+ <span class="info">
18
+ <%= Spree.t(:smtp_send_all_emails_as_from_following_address) %>
19
+ </span>
20
+ </div>
21
+
22
+ <div class="field">
23
+ <%= label_tag :mail_bcc, Spree.t(:send_copy_of_all_mails_to) %><br />
24
+ <%= text_field_tag :mail_bcc, Spree::Config[:mail_bcc], :maxlength => 256, :class => 'fullwidth' %>
25
+ <br />
26
+ <span class="info">
27
+ <%= Spree.t(:smtp_send_copy_to_this_addresses) %>
28
+ </span>
29
+ </div>
30
+
31
+ <div class="field">
32
+ <%= label_tag :intercept_email, Spree.t(:intercept_email_address) %><br />
33
+ <%= text_field_tag :intercept_email, Spree::Config[:intercept_email], :maxlength => 256, :class => 'fullwidth' %>
34
+ <br />
35
+ <span class="info">
36
+ <%= Spree.t(:intercept_email_instructions) %>
37
+ </span>
38
+ </div>
39
+ </fieldset>
40
+ </div>
41
+
42
+ <div class="six columns omega" data-hook="smtp">
43
+ <fieldset class="no-border-bottom">
44
+ <legend align="center"><%= Spree.t(:smtp) %></legend>
45
+ <div class="field">
46
+ <%= label_tag :mail_domain, Spree.t(:smtp_domain) %><br />
47
+ <%= text_field_tag :mail_domain, Spree::Config[:mail_domain], :class => 'fullwidth' %>
48
+ </div>
49
+ <div class="field">
50
+ <%= label_tag :mail_host, Spree.t(:smtp_mail_host) %><br />
51
+ <%= text_field_tag :mail_host, Spree::Config[:mail_host], :class => 'fullwidth' %>
52
+ </div>
53
+ <div class="field">
54
+ <%= label_tag :mail_port, Spree.t(:smtp_port) %><br />
55
+ <%= text_field_tag :mail_port, Spree::Config[:mail_port], :class => 'fullwidth' %>
56
+ </div>
57
+ <div class="field">
58
+ <%= label_tag :secure_connection_type, Spree.t(:secure_connection_type) %><br />
59
+ <%= select_tag(:secure_connection_type,
60
+ options_from_collection_for_select(Spree::Core::MailSettings::SECURE_CONNECTION_TYPES, :to_s, :to_s, Spree::Config[:secure_connection_type]),
61
+ :class => 'select2 fullwidth') %>
62
+ </div>
63
+ <div class="field">
64
+ <%= label_tag :mail_auth_type, Spree.t(:smtp_authentication_type) %><br />
65
+ <%= select_tag(:mail_auth_type,
66
+ options_from_collection_for_select(Spree::Core::MailSettings::MAIL_AUTH, :to_s, :to_s, Spree::Config[:mail_auth_type]),
67
+ :class => 'select2 fullwidth') %>
68
+ </div>
69
+ <div class="field">
70
+ <%= label_tag :smtp_username, Spree.t(:smtp_username) %><br />
71
+ <%= text_field_tag :smtp_username, Spree::Config[:smtp_username], :class => 'fullwidth' %>
72
+ </div>
73
+ <div class="field">
74
+ <%= label_tag :preferred_smtp_password, Spree.t(:smtp_password) %><br />
75
+ <%= password_field_tag :smtp_password, Spree::Config[:smtp_password], :class => 'fullwidth' %>
76
+ </div>
77
+ </fieldset>
78
+ </div>
79
+ </div>
80
+ </div>
@@ -0,0 +1,21 @@
1
+ <%= render :partial => 'spree/admin/shared/configuration_menu' %>
2
+
3
+ <% content_for :page_title do %>
4
+ <%= Spree.t(:mail_method_settings) %>
5
+ <% end %>
6
+
7
+ <% content_for :page_actions do %>
8
+ <li>
9
+ <%= link_to_with_icon 'icon-envelope-alt', Spree.t('admin.mail_methods.send_testmail'), testmail_admin_mail_method_path,
10
+ :method => :post, :title => Spree.t('admin.mail_methods.send_testmail'), :class => 'send_mail button no-text' %>
11
+ </li>
12
+ <% end %>
13
+
14
+ <%= render :partial => 'spree/shared/error_messages', :locals => { :target => @mail_method } %>
15
+
16
+ <%= form_tag admin_mail_method_path, :method => :put do |f| %>
17
+ <fieldset class="no-border-top">
18
+ <%= render :partial => 'form', :locals => { :f => f } %>
19
+ <div class="form-buttons filter-actions actions" data-hook="buttons"><%= button Spree.t('actions.update'), 'icon-refresh' %></div>
20
+ </fieldset>
21
+ <% end %>
@@ -0,0 +1,17 @@
1
+ <div data-hook="admin_option_type_form_fields" class="align-center row">
2
+ <div class="alpha eight columns">
3
+ <%= f.field_container :name do %>
4
+ <%= f.label :name, Spree.t(:name) %> <span class="required">*</span><br />
5
+ <%= f.text_field :name, :class => "fullwidth" %>
6
+ <%= f.error_message_on :name %>
7
+ <% end %>
8
+ </div>
9
+
10
+ <div class="omega eight columns">
11
+ <%= f.field_container :presentation do %>
12
+ <%= f.label :presentation, Spree.t(:presentation) %> <span class="required">*</span><br />
13
+ <%= f.text_field :presentation, :class => "fullwidth" %>
14
+ <%= f.error_message_on :presentation %>
15
+ <% end %>
16
+ </div>
17
+ </div>
@@ -0,0 +1,9 @@
1
+ <tr class="option_value fields" id="spree_<%= dom_id(f.object) %>" data-hook="option_value" class="<%= cycle('odd', 'even')%>">
2
+ <td class="no-border">
3
+ <span class="handle"></span>
4
+ <%= f.hidden_field :id %>
5
+ </td>
6
+ <td class="name"><%= f.text_field :name %></td>
7
+ <td class="presentation"><%= f.text_field :presentation %></td>
8
+ <td class="actions"><%= link_to_remove_fields Spree.t(:remove), f, :no_text => true %></td>
9
+ </tr>
@@ -0,0 +1,50 @@
1
+ <%= render :partial => 'spree/admin/shared/product_sub_menu' %>
2
+
3
+ <% content_for :page_title do %>
4
+ <%= Spree.t(:editing_option_type) %> <span class="green">"<%= @option_type.name %>"</span>
5
+ <% end %>
6
+
7
+ <% content_for :page_actions do %>
8
+ <li>
9
+ <span id="new_add_option_value" data-hook>
10
+ <%= link_to_add_fields Spree.t(:add_option_value), "tbody#option_values", :class => 'button icon-plus' %>
11
+ </span>
12
+ </li>
13
+ <li>
14
+ <%= button_link_to Spree.t(:back_to_option_types_list), spree.admin_option_types_path, :icon => 'icon-arrow-left' %>
15
+ </li>
16
+ <% end %>
17
+
18
+ <%= render :partial => 'spree/shared/error_messages', :locals => { :target => @option_type } %>
19
+
20
+ <%= form_for [:admin, @option_type] do |f| %>
21
+ <fieldset>
22
+ <legend align="center"><%= Spree.t(:option_values) %></legend>
23
+
24
+ <%= render :partial => 'form', :locals => { :f => f } %>
25
+
26
+ <table class="index sortable" data-hook data-sortable-link="<%= update_values_positions_admin_option_types_url %>">
27
+ <thead data-hook="option_header">
28
+ <tr>
29
+ <th colspan="2"><%= Spree.t(:name) %></th>
30
+ <th><%= Spree.t(:display) %></th>
31
+ <th class="actions"></th>
32
+ </tr>
33
+ </thead>
34
+ <tbody id="option_values">
35
+ <% if @option_type.option_values.empty? %>
36
+ <tr id="none" data-hook="option_none" class="<%= cycle('odd', 'even')%>">
37
+ <td colspan="2"><%= Spree.t(:none) %></td>
38
+ <td class="actions"></td>
39
+ </tr>
40
+ <% else %>
41
+ <%= f.fields_for :option_values do |option_value_form| %>
42
+ <%= render :partial => 'option_value_fields', :locals => { :f => option_value_form } %>
43
+ <% end %>
44
+ <% end %>
45
+ </tbody>
46
+ </table>
47
+
48
+ <%= render :partial => 'spree/admin/shared/edit_resource_links' %>
49
+ </fieldset>
50
+ <% end %>
@@ -0,0 +1,40 @@
1
+ <% content_for :page_title do %>
2
+ <%= Spree.t(:option_types) %>
3
+ <% end %>
4
+
5
+ <% content_for :page_actions do %>
6
+ <li id="new_ot_link">
7
+ <%= button_link_to Spree.t(:new_option_type), new_admin_option_type_url, { :remote => true, :icon => 'icon-plus', :id => 'new_option_type_link' } %>
8
+ </li>
9
+ <% end %>
10
+
11
+ <%= render :partial => 'spree/admin/shared/product_sub_menu' %>
12
+
13
+ <div id="new_option_type"></div>
14
+
15
+ <table class="index sortable" id="listing_option_types" data-hook data-sortable-link="<%= update_positions_admin_option_types_url %>">
16
+ <colgroup>
17
+ <col style="width: 44%">
18
+ <col style="width: 44%">
19
+ <col style="width: 12%">
20
+ </colgroup>
21
+ <thead>
22
+ <tr data-hook="option_header">
23
+ <th><%= Spree.t(:name) %></th>
24
+ <th><%= Spree.t(:presentation) %></th>
25
+ <th class="actions"></th>
26
+ </tr>
27
+ </thead>
28
+ <tbody>
29
+ <% @option_types.each do |option_type| %>
30
+ <tr class="spree_option_type <%= cycle('odd', 'even')%>" id="<%= spree_dom_id option_type %>" data-hook="option_row">
31
+ <td><span class="handle"></span> <%= option_type.name %></td>
32
+ <td class="presentation"><%= option_type.presentation %></td>
33
+ <td class="actions">
34
+ <%= link_to_edit(option_type, :class => 'admin_edit_option_type', :no_text => true) %>
35
+ <%= link_to_delete(option_type, :no_text => true) %>
36
+ </td>
37
+ </tr>
38
+ <% end %>
39
+ </tbody>
40
+ </table>
@@ -0,0 +1,11 @@
1
+ <%= render :partial => 'spree/admin/shared/product_sub_menu' %>
2
+
3
+ <%= render :partial => 'spree/shared/error_messages', :locals => { :target => @option_type } %>
4
+
5
+ <%= form_for [:admin, @option_type] do |f| %>
6
+ <fieldset>
7
+ <legend align="center"><%= Spree.t(:new_option_type) %></legend>
8
+ <%= render :partial => 'form', :locals => { :f => f } %>
9
+ <%= render :partial => 'spree/admin/shared/new_resource_links' %>
10
+ </fieldset>
11
+ <% end %>
@@ -0,0 +1,2 @@
1
+ $("#new_option_type").html('<%= escape_javascript(render :template => "spree/admin/option_types/new", :formats => [:html], :handlers => [:erb]) %>');
2
+ $("#new_option_type_link").parent().hide();
@@ -0,0 +1,15 @@
1
+ <%= render :partial => "spree/admin/variants/autocomplete", :formats => :js %>
2
+
3
+ <div id="add-line-item" data-hook>
4
+ <fieldset class="no-border-bottom">
5
+ <legend align="center"><%= Spree.t(:add_product) %></legend>
6
+
7
+ <div data-hook="add_product_name" class="field twelve columns alpha">
8
+ <%= label_tag :add_variant_id, Spree.t(:name_or_sku) %>
9
+ <%= hidden_field_tag :add_variant_id, "", :class => "variant_autocomplete fullwidth" %>
10
+ </div>
11
+
12
+ </fieldset>
13
+
14
+ <div id="stock_details"></div>
15
+ </div>
@@ -0,0 +1,45 @@
1
+ <div data-hook="admin_order_form_fields">
2
+ <% if @line_item.try(:errors).present? %>
3
+ <%= render :partial => 'spree/shared/error_messages', :locals => { :target => @line_item } %>
4
+ <% end %>
5
+
6
+ <%= render :partial => "spree/admin/orders/shipment", :collection => @order.shipments, :locals => { :order => order } %>
7
+ <% if order.adjustments.eligible.exists? %>
8
+ <fieldset class="no-border-bottom">
9
+ <legend><%= Spree.t('adjustments') %></legend>
10
+ <table>
11
+ <thead>
12
+ <th><%= Spree.t('name')%></th>
13
+ <th><%= Spree.t('amount')%></th>
14
+ </thead>
15
+ <tbody id="order-charges" data-hook="order_details_adjustments" class="with-border">
16
+ <% order.adjustments.eligible.each do |adjustment| %>
17
+ <% next if ((adjustment.originator_type == 'Spree::TaxRate') and (adjustment.amount == 0)) || adjustment.originator_type == 'Spree::ShippingMethod' %>
18
+ <tr class="total">
19
+ <td><strong><%= adjustment.label %>:</strong></td>
20
+ <td class="total align-center"><span><%= adjustment.display_amount %></span></td>
21
+ </tr>
22
+ <% end %>
23
+ </tbody>
24
+ </table>
25
+ </fieldset>
26
+ <% end %>
27
+
28
+ <% if order.line_items.exists? %>
29
+ <fieldset class="no-border-bottom" id="order-total" data-hook="order_details_total">
30
+ <legend><%= Spree.t(:order_total) %></legend>
31
+ <span class="order-total"><%= order.display_total %></span>
32
+ </fieldset>
33
+ <% end %>
34
+
35
+ <%= javascript_tag do -%>
36
+ var order_number = '<%= @order.number %>';
37
+ var shipments = [];
38
+
39
+ <% @order.shipments.each do |shipment| %>
40
+ shipments.push(<%== shipment.to_json(:root => false, :include => :inventory_units) %>);
41
+ <% end %>
42
+
43
+ <%= render :partial => 'spree/admin/shared/update_order_state', :handlers => [:js] %>
44
+ <% end -%>
45
+ </div>