mno-enterprise-frontend 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (313) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +1 -0
  3. data/Rakefile +12 -0
  4. data/app/assets/images/favicon.ico +0 -0
  5. data/app/assets/images/mno_enterprise/impac/close-widget-pink.png +0 -0
  6. data/app/assets/images/mno_enterprise/impac/close-widget.png +0 -0
  7. data/app/assets/images/mno_enterprise/loader-32x32-bg-inverse.gif +0 -0
  8. data/app/assets/images/mno_enterprise/loader-32x32-bg-main.gif +0 -0
  9. data/app/assets/images/mno_enterprise/maestrano/logo-whitebg.png +0 -0
  10. data/app/assets/javascripts/mno_enterprise/angular/app.js.coffee.erb +173 -0
  11. data/app/assets/javascripts/mno_enterprise/angular/controllers/maestrano-controllers.js.coffee +4 -0
  12. data/app/assets/javascripts/mno_enterprise/angular/controllers/modals/modals-ctrl.js.coffee +62 -0
  13. data/app/assets/javascripts/mno_enterprise/angular/directives/dashboard/dashboard-account.js.coffee +157 -0
  14. data/app/assets/javascripts/mno_enterprise/angular/directives/dashboard/dashboard-app-deletion-request.js.coffee +62 -0
  15. data/app/assets/javascripts/mno_enterprise/angular/directives/dashboard/dashboard-apps-list.js.coffee +127 -0
  16. data/app/assets/javascripts/mno_enterprise/angular/directives/dashboard/dashboard-components.js.coffee +25 -0
  17. data/app/assets/javascripts/mno_enterprise/angular/directives/dashboard/dashboard-marketplace-app.js.coffee +77 -0
  18. data/app/assets/javascripts/mno_enterprise/angular/directives/dashboard/dashboard-marketplace.js.coffee +51 -0
  19. data/app/assets/javascripts/mno_enterprise/angular/directives/dashboard/dashboard-menu.js.coffee +174 -0
  20. data/app/assets/javascripts/mno_enterprise/angular/directives/dashboard/organization/arrears.js.coffee +70 -0
  21. data/app/assets/javascripts/mno_enterprise/angular/directives/dashboard/organization/billing.js.coffee +48 -0
  22. data/app/assets/javascripts/mno_enterprise/angular/directives/dashboard/organization/credit-card.js.coffee +142 -0
  23. data/app/assets/javascripts/mno_enterprise/angular/directives/dashboard/organization/index.js.coffee +61 -0
  24. data/app/assets/javascripts/mno_enterprise/angular/directives/dashboard/organization/invoices.js.coffee +42 -0
  25. data/app/assets/javascripts/mno_enterprise/angular/directives/dashboard/organization/members.js.coffee +280 -0
  26. data/app/assets/javascripts/mno_enterprise/angular/directives/dashboard/organization/settings.js.coffee +91 -0
  27. data/app/assets/javascripts/mno_enterprise/angular/directives/dashboard/organization/team-list.js.coffee +179 -0
  28. data/app/assets/javascripts/mno_enterprise/angular/directives/dashboard/organization/teams.js.coffee +268 -0
  29. data/app/assets/javascripts/mno_enterprise/angular/directives/maestrano-components/file-model.js.coffee +33 -0
  30. data/app/assets/javascripts/mno_enterprise/angular/directives/maestrano-components/maestrano-components.js.coffee +22 -0
  31. data/app/assets/javascripts/mno_enterprise/angular/directives/maestrano-components/mno-autostop-app.js.coffee +123 -0
  32. data/app/assets/javascripts/mno_enterprise/angular/directives/maestrano-components/mno-compile.js.coffee +18 -0
  33. data/app/assets/javascripts/mno_enterprise/angular/directives/maestrano-components/mno-currency-widget.js.coffee +43 -0
  34. data/app/assets/javascripts/mno_enterprise/angular/directives/maestrano-components/mno-current-currency.js.coffee +22 -0
  35. data/app/assets/javascripts/mno_enterprise/angular/directives/maestrano-components/mno-editable.js.coffee +68 -0
  36. data/app/assets/javascripts/mno_enterprise/angular/directives/maestrano-components/mno-flash-msg.js.coffee +40 -0
  37. data/app/assets/javascripts/mno_enterprise/angular/directives/maestrano-components/mno-helptext.js.coffee +38 -0
  38. data/app/assets/javascripts/mno_enterprise/angular/directives/maestrano-components/mno-loading-lounge.js.coffee +184 -0
  39. data/app/assets/javascripts/mno_enterprise/angular/directives/maestrano-components/mno-match.js.coffee +14 -0
  40. data/app/assets/javascripts/mno_enterprise/angular/directives/maestrano-components/mno-message-modal.js.coffee +56 -0
  41. data/app/assets/javascripts/mno_enterprise/angular/directives/maestrano-components/mno-notification-widget.js.coffee +192 -0
  42. data/app/assets/javascripts/mno_enterprise/angular/directives/maestrano-components/mno-partner-code-popup.js.coffee +74 -0
  43. data/app/assets/javascripts/mno_enterprise/angular/directives/maestrano-components/mno-partner-contact.js.coffee +59 -0
  44. data/app/assets/javascripts/mno_enterprise/angular/directives/maestrano-components/mno-password-strength.js.coffee +154 -0
  45. data/app/assets/javascripts/mno_enterprise/angular/directives/maestrano-components/mno-password.js.coffee +40 -0
  46. data/app/assets/javascripts/mno_enterprise/angular/directives/maestrano-components/mno-price-converter.js.coffee +49 -0
  47. data/app/assets/javascripts/mno_enterprise/angular/directives/maestrano-components/mno-scroll-to.js.coffee +14 -0
  48. data/app/assets/javascripts/mno_enterprise/angular/directives/maestrano-components/mno-typeahead.js.coffee +89 -0
  49. data/app/assets/javascripts/mno_enterprise/angular/directives/user-setup/components.js.coffee +7 -0
  50. data/app/assets/javascripts/mno_enterprise/angular/directives/user-setup/index.js.coffee +256 -0
  51. data/app/assets/javascripts/mno_enterprise/angular/filters/maestrano-app-by-category.js.coffee +5 -0
  52. data/app/assets/javascripts/mno_enterprise/angular/filters/maestrano-currency.js.coffee +30 -0
  53. data/app/assets/javascripts/mno_enterprise/angular/filters/maestrano-filters.js.coffee +7 -0
  54. data/app/assets/javascripts/mno_enterprise/angular/filters/maestrano-replace-underscore-with-space.js.coffee +4 -0
  55. data/app/assets/javascripts/mno_enterprise/angular/filters/maestrano-titleize.js.coffee +7 -0
  56. data/app/assets/javascripts/mno_enterprise/angular/filters/maestrano-truncate.js.coffee +24 -0
  57. data/app/assets/javascripts/mno_enterprise/angular/services/dashboard/maestrano-app-instance.js.coffee +15 -0
  58. data/app/assets/javascripts/mno_enterprise/angular/services/dashboard/maestrano-apps-document.js.coffee +83 -0
  59. data/app/assets/javascripts/mno_enterprise/angular/services/dashboard/maestrano-user.js.coffee +27 -0
  60. data/app/assets/javascripts/mno_enterprise/angular/services/dashboard/organization-svc.js.coffee +318 -0
  61. data/app/assets/javascripts/mno_enterprise/angular/services/dashboard/team-svc.js.coffee +180 -0
  62. data/app/assets/javascripts/mno_enterprise/angular/services/dashboard/tickets-svc.js.coffee +109 -0
  63. data/app/assets/javascripts/mno_enterprise/angular/services/impac-config.svc.js.coffee +35 -0
  64. data/app/assets/javascripts/mno_enterprise/angular/services/maestrano-apps-list-helper.js.coffee +337 -0
  65. data/app/assets/javascripts/mno_enterprise/angular/services/maestrano-assets.js.coffee.erb +21 -0
  66. data/app/assets/javascripts/mno_enterprise/angular/services/maestrano-current-currency.js.coffee +7 -0
  67. data/app/assets/javascripts/mno_enterprise/angular/services/maestrano-current-user-svc.js.coffee +99 -0
  68. data/app/assets/javascripts/mno_enterprise/angular/services/maestrano-exchange-rates.js.coffee +102 -0
  69. data/app/assets/javascripts/mno_enterprise/angular/services/maestrano-message-svc.js.coffee +71 -0
  70. data/app/assets/javascripts/mno_enterprise/angular/services/maestrano-miscellaneous.js.coffee.erb +46 -0
  71. data/app/assets/javascripts/mno_enterprise/angular/services/maestrano-modal.js.coffee +67 -0
  72. data/app/assets/javascripts/mno_enterprise/angular/services/maestrano-msg-bus.js.coffee +50 -0
  73. data/app/assets/javascripts/mno_enterprise/angular/services/maestrano-services.js.coffee +21 -0
  74. data/app/assets/javascripts/mno_enterprise/angular/services/maestrano-shopping-cart.js.coffee +361 -0
  75. data/app/assets/javascripts/mno_enterprise/angular/services/maestrano-utilities.js.coffee +61 -0
  76. data/app/assets/javascripts/mno_enterprise/angular/services/marketplace-svc.js.coffee +59 -0
  77. data/app/assets/javascripts/mno_enterprise/application.js +17 -0
  78. data/app/assets/javascripts/mno_enterprise/application_lib.js +14 -0
  79. data/app/assets/javascripts/mno_enterprise/lib/angular-really-click.js +17 -0
  80. data/app/assets/javascripts/mno_enterprise/lib/sortable.js +315 -0
  81. data/app/assets/javascripts/mno_enterprise/lib/ui-bootstrap-tpls-0.13.4.js +5836 -0
  82. data/app/assets/javascripts/mno_enterprise/lib/xeditable.js +1588 -0
  83. data/app/assets/javascripts/mno_enterprise/twitter/bootstrap.js +12 -0
  84. data/app/assets/javascripts/mno_enterprise/twitter/bootstrap/affix.js +162 -0
  85. data/app/assets/javascripts/mno_enterprise/twitter/bootstrap/alert.js +94 -0
  86. data/app/assets/javascripts/mno_enterprise/twitter/bootstrap/button.js +116 -0
  87. data/app/assets/javascripts/mno_enterprise/twitter/bootstrap/carousel.js +237 -0
  88. data/app/assets/javascripts/mno_enterprise/twitter/bootstrap/collapse.js +211 -0
  89. data/app/assets/javascripts/mno_enterprise/twitter/bootstrap/dropdown.js +161 -0
  90. data/app/assets/javascripts/mno_enterprise/twitter/bootstrap/modal.js +324 -0
  91. data/app/assets/javascripts/mno_enterprise/twitter/bootstrap/popover.js +113 -0
  92. data/app/assets/javascripts/mno_enterprise/twitter/bootstrap/scrollspy.js +175 -0
  93. data/app/assets/javascripts/mno_enterprise/twitter/bootstrap/tab.js +153 -0
  94. data/app/assets/javascripts/mno_enterprise/twitter/bootstrap/tooltip.js +472 -0
  95. data/app/assets/javascripts/mno_enterprise/twitter/bootstrap/transition.js +59 -0
  96. data/app/assets/javascripts/ng-performance/ngPerformance.html +109 -0
  97. data/app/assets/javascripts/ng-performance/ngPerformance.js +211 -0
  98. data/app/assets/stylesheets/mno_enterprise/application.css +13 -0
  99. data/app/assets/stylesheets/mno_enterprise/custom/accordion.less +90 -0
  100. data/app/assets/stylesheets/mno_enterprise/custom/alert.less +30 -0
  101. data/app/assets/stylesheets/mno_enterprise/custom/angular-animate.less +42 -0
  102. data/app/assets/stylesheets/mno_enterprise/custom/angular-material.less +56 -0
  103. data/app/assets/stylesheets/mno_enterprise/custom/bootstrap-on-juice.less +22 -0
  104. data/app/assets/stylesheets/mno_enterprise/custom/button.less +84 -0
  105. data/app/assets/stylesheets/mno_enterprise/custom/footer.less +44 -0
  106. data/app/assets/stylesheets/mno_enterprise/custom/form.less +191 -0
  107. data/app/assets/stylesheets/mno_enterprise/custom/header.less +281 -0
  108. data/app/assets/stylesheets/mno_enterprise/custom/impac-variables-override.less +65 -0
  109. data/app/assets/stylesheets/mno_enterprise/custom/modal.less +183 -0
  110. data/app/assets/stylesheets/mno_enterprise/custom/utilities.less +729 -0
  111. data/app/assets/stylesheets/mno_enterprise/custom/utility/app-presentation.less +77 -0
  112. data/app/assets/stylesheets/mno_enterprise/custom/utility/banners.less +145 -0
  113. data/app/assets/stylesheets/mno_enterprise/custom/utility/carousel.less +68 -0
  114. data/app/assets/stylesheets/mno_enterprise/custom/utility/helptext.less +40 -0
  115. data/app/assets/stylesheets/mno_enterprise/custom/utility/miscellaneous.less +134 -0
  116. data/app/assets/stylesheets/mno_enterprise/custom/utility/progress-bar.less +55 -0
  117. data/app/assets/stylesheets/mno_enterprise/custom/utility/step.less +101 -0
  118. data/app/assets/stylesheets/mno_enterprise/custom/utility/tabset.less +87 -0
  119. data/app/assets/stylesheets/mno_enterprise/custom/utility/testimonial.less +118 -0
  120. data/app/assets/stylesheets/mno_enterprise/custom/utility/text.less +23 -0
  121. data/app/assets/stylesheets/mno_enterprise/custom/views/apps.less +243 -0
  122. data/app/assets/stylesheets/mno_enterprise/custom/views/myspace.less +477 -0
  123. data/app/assets/stylesheets/mno_enterprise/custom/views/pages/confirmation_lounge.less +31 -0
  124. data/app/assets/stylesheets/mno_enterprise/custom/views/pages/home.less +57 -0
  125. data/app/assets/stylesheets/mno_enterprise/custom/views/pages/oauth-config-page.less +6 -0
  126. data/app/assets/stylesheets/mno_enterprise/custom/views/registration.less +84 -0
  127. data/app/assets/stylesheets/mno_enterprise/custom/views/star.less +18 -0
  128. data/app/assets/stylesheets/mno_enterprise/custom/views/templates/dashboard/bootstrap-wizard.less +63 -0
  129. data/app/assets/stylesheets/mno_enterprise/custom/views/templates/dashboard/dashboard-marketplace.less +187 -0
  130. data/app/assets/stylesheets/mno_enterprise/custom/views/templates/dashboard/dashboard-organization.less +149 -0
  131. data/app/assets/stylesheets/mno_enterprise/custom/views/templates/dashboard/dashboard-teams.less +119 -0
  132. data/app/assets/stylesheets/mno_enterprise/custom/views/templates/dashboard/support.less +42 -0
  133. data/app/assets/stylesheets/mno_enterprise/custom/views/templates/dashboard/tickets.less +80 -0
  134. data/app/assets/stylesheets/mno_enterprise/custom/views/templates/mno-editable.less +60 -0
  135. data/app/assets/stylesheets/mno_enterprise/custom/views/templates/notification-widget.less +49 -0
  136. data/app/assets/stylesheets/mno_enterprise/custom/views/templates/password-strength.less +28 -0
  137. data/app/assets/stylesheets/mno_enterprise/custom/views/templates/shopping-cart.less +333 -0
  138. data/app/assets/stylesheets/mno_enterprise/custom/views/templates/star-wizard.less +49 -0
  139. data/app/assets/stylesheets/mno_enterprise/custom/views/user-setup.less +10 -0
  140. data/app/assets/stylesheets/mno_enterprise/custom/xeditable.less +40 -0
  141. data/app/assets/stylesheets/mno_enterprise/font-awesome/font-awesome-regular.less +13 -0
  142. data/app/assets/stylesheets/mno_enterprise/font-awesome/font-awesome-sprockets.less +13 -0
  143. data/app/assets/stylesheets/mno_enterprise/font-awesome/font-awesome.less +16 -0
  144. data/app/assets/stylesheets/mno_enterprise/font-awesome/fonts/FontAwesome.otf +0 -0
  145. data/app/assets/stylesheets/mno_enterprise/font-awesome/fonts/fontawesome-webfont.eot +0 -0
  146. data/app/assets/stylesheets/mno_enterprise/font-awesome/fonts/fontawesome-webfont.svg +640 -0
  147. data/app/assets/stylesheets/mno_enterprise/font-awesome/fonts/fontawesome-webfont.ttf +0 -0
  148. data/app/assets/stylesheets/mno_enterprise/font-awesome/fonts/fontawesome-webfont.woff +0 -0
  149. data/app/assets/stylesheets/mno_enterprise/font-awesome/fonts/fontawesome-webfont.woff2 +0 -0
  150. data/app/assets/stylesheets/mno_enterprise/font-awesome/framework/animated.less +34 -0
  151. data/app/assets/stylesheets/mno_enterprise/font-awesome/framework/bordered-pulled.less +25 -0
  152. data/app/assets/stylesheets/mno_enterprise/font-awesome/framework/core.less +12 -0
  153. data/app/assets/stylesheets/mno_enterprise/font-awesome/framework/extras.less +2 -0
  154. data/app/assets/stylesheets/mno_enterprise/font-awesome/framework/fixed-width.less +6 -0
  155. data/app/assets/stylesheets/mno_enterprise/font-awesome/framework/icons.less +677 -0
  156. data/app/assets/stylesheets/mno_enterprise/font-awesome/framework/larger.less +13 -0
  157. data/app/assets/stylesheets/mno_enterprise/font-awesome/framework/list.less +19 -0
  158. data/app/assets/stylesheets/mno_enterprise/font-awesome/framework/mixins.less +26 -0
  159. data/app/assets/stylesheets/mno_enterprise/font-awesome/framework/rotated-flipped.less +20 -0
  160. data/app/assets/stylesheets/mno_enterprise/font-awesome/framework/stacked.less +20 -0
  161. data/app/assets/stylesheets/mno_enterprise/font-awesome/framework/variables.less +687 -0
  162. data/app/assets/stylesheets/mno_enterprise/main.less +132 -0
  163. data/app/assets/stylesheets/mno_enterprise/mixins.less +75 -0
  164. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/alerts.less +73 -0
  165. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/badges.less +65 -0
  166. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/bootstrap.less +50 -0
  167. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/breadcrumbs.less +26 -0
  168. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/button-groups.less +243 -0
  169. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/buttons.less +160 -0
  170. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/carousel.less +269 -0
  171. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/close.less +34 -0
  172. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/code.less +69 -0
  173. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/component-animations.less +34 -0
  174. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/dropdowns.less +214 -0
  175. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/forms.less +566 -0
  176. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/glyphicons.less +301 -0
  177. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/grid.less +84 -0
  178. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/input-groups.less +166 -0
  179. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/jumbotron.less +50 -0
  180. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/labels.less +64 -0
  181. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/list-group.less +124 -0
  182. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/media.less +61 -0
  183. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins.less +39 -0
  184. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/alerts.less +14 -0
  185. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/background-variant.less +8 -0
  186. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/border-radius.less +18 -0
  187. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/buttons.less +52 -0
  188. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/center-block.less +7 -0
  189. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/clearfix.less +22 -0
  190. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/forms.less +85 -0
  191. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/gradients.less +59 -0
  192. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/grid-framework.less +91 -0
  193. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/grid.less +122 -0
  194. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/hide-text.less +21 -0
  195. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/image.less +33 -0
  196. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/labels.less +12 -0
  197. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/list-group.less +29 -0
  198. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/nav-divider.less +10 -0
  199. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/nav-vertical-align.less +9 -0
  200. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/opacity.less +8 -0
  201. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/pagination.less +23 -0
  202. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/panels.less +24 -0
  203. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/progress-bar.less +10 -0
  204. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/reset-filter.less +8 -0
  205. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/resize.less +6 -0
  206. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/responsive-visibility.less +15 -0
  207. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/size.less +10 -0
  208. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/tab-focus.less +9 -0
  209. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/table-row.less +28 -0
  210. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/text-emphasis.less +8 -0
  211. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/text-overflow.less +8 -0
  212. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/mixins/vendor-prefixes.less +227 -0
  213. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/modals.less +148 -0
  214. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/navbar.less +661 -0
  215. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/navs.less +244 -0
  216. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/normalize.less +427 -0
  217. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/pager.less +54 -0
  218. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/pagination.less +88 -0
  219. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/panels.less +265 -0
  220. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/popovers.less +135 -0
  221. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/print.less +107 -0
  222. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/progress-bars.less +87 -0
  223. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/responsive-embed.less +35 -0
  224. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/responsive-utilities.less +194 -0
  225. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/scaffolding.less +150 -0
  226. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/tables.less +234 -0
  227. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/theme.less +273 -0
  228. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/thumbnails.less +36 -0
  229. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/tooltip.less +103 -0
  230. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/type.less +302 -0
  231. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/utilities.less +56 -0
  232. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/variables.less +857 -0
  233. data/app/assets/stylesheets/mno_enterprise/twitter-bootstrap/wells.less +29 -0
  234. data/app/assets/stylesheets/mno_enterprise/variables.less +226 -0
  235. data/app/assets/templates/mno_enterprise/dashboard/account.html +131 -0
  236. data/app/assets/templates/mno_enterprise/dashboard/app_deletion.html +36 -0
  237. data/app/assets/templates/mno_enterprise/dashboard/apps_list.html +103 -0
  238. data/app/assets/templates/mno_enterprise/dashboard/horizontal_menu.html +85 -0
  239. data/app/assets/templates/mno_enterprise/dashboard/marketplace/index.html +60 -0
  240. data/app/assets/templates/mno_enterprise/dashboard/marketplace/show.html +133 -0
  241. data/app/assets/templates/mno_enterprise/dashboard/menu.html +161 -0
  242. data/app/assets/templates/mno_enterprise/dashboard/organization/arrears.html +37 -0
  243. data/app/assets/templates/mno_enterprise/dashboard/organization/billing.html +37 -0
  244. data/app/assets/templates/mno_enterprise/dashboard/organization/credit-card.html +156 -0
  245. data/app/assets/templates/mno_enterprise/dashboard/organization/index.full.html +181 -0
  246. data/app/assets/templates/mno_enterprise/dashboard/organization/index.html +173 -0
  247. data/app/assets/templates/mno_enterprise/dashboard/organization/invoices.html +27 -0
  248. data/app/assets/templates/mno_enterprise/dashboard/organization/members.html +288 -0
  249. data/app/assets/templates/mno_enterprise/dashboard/organization/settings.html +55 -0
  250. data/app/assets/templates/mno_enterprise/dashboard/teams/index.html +175 -0
  251. data/app/assets/templates/mno_enterprise/dashboard/teams/member-add-modal.html +60 -0
  252. data/app/assets/templates/mno_enterprise/dashboard/teams/member-removal-modal.html +35 -0
  253. data/app/assets/templates/mno_enterprise/dashboard/teams/team-add-modal.html +35 -0
  254. data/app/assets/templates/mno_enterprise/dashboard/teams/team-delete-modal.html +35 -0
  255. data/app/assets/templates/mno_enterprise/dashboard/teams/team-list.html +107 -0
  256. data/app/assets/templates/mno_enterprise/default_template.html +20 -0
  257. data/app/assets/templates/mno_enterprise/maestrano-components/autostop_app.html +42 -0
  258. data/app/assets/templates/mno_enterprise/maestrano-components/currency_widget.html +1 -0
  259. data/app/assets/templates/mno_enterprise/maestrano-components/editable.html +28 -0
  260. data/app/assets/templates/mno_enterprise/maestrano-components/loading_lounge.html +63 -0
  261. data/app/assets/templates/mno_enterprise/maestrano-components/modal-messages/congratulations.html +8 -0
  262. data/app/assets/templates/mno_enterprise/maestrano-components/modal-messages/default.html +1 -0
  263. data/app/assets/templates/mno_enterprise/maestrano-components/modal-messages/information.html +8 -0
  264. data/app/assets/templates/mno_enterprise/maestrano-components/notification-widget.html +31 -0
  265. data/app/assets/templates/mno_enterprise/maestrano-components/password.html +55 -0
  266. data/app/assets/templates/mno_enterprise/maestrano-components/star_wizard.html +254 -0
  267. data/app/assets/templates/mno_enterprise/maestrano-components/upload_spreadsheet.html +191 -0
  268. data/app/assets/templates/mno_enterprise/modals/new-organization-reseller-req.html +35 -0
  269. data/app/assets/templates/mno_enterprise/modals/new-organization.html +35 -0
  270. data/app/assets/templates/mno_enterprise/user-setup/index.html +312 -0
  271. data/app/controllers/mno_enterprise/invoices_controller.rb +22 -0
  272. data/app/controllers/mno_enterprise/pages_controller.rb +9 -0
  273. data/app/controllers/mno_enterprise/user_setup_controller.rb +11 -0
  274. data/app/views/layouts/mno_enterprise/_application_js.html.haml +17 -0
  275. data/app/views/layouts/mno_enterprise/_common_cdn_lib_js.html.haml +19 -0
  276. data/app/views/layouts/mno_enterprise/_footer_files.html.haml +5 -0
  277. data/app/views/layouts/mno_enterprise/_header_files.html.haml +31 -0
  278. data/app/views/layouts/mno_enterprise/_impersonate_header.html.haml +7 -0
  279. data/app/views/layouts/mno_enterprise/_public_page_header.html.haml +2 -0
  280. data/app/views/layouts/mno_enterprise/application.html.haml +18 -0
  281. data/app/views/layouts/mno_enterprise/application_dashboard.html.haml +22 -0
  282. data/app/views/layouts/mno_enterprise/third_party/_google_tag_container.html.haml +10 -0
  283. data/app/views/mno_enterprise/pages/app_access_unauthorized.html.haml +19 -0
  284. data/app/views/mno_enterprise/pages/app_logout.html.haml +18 -0
  285. data/app/views/mno_enterprise/pages/billing_details_required.html.haml +19 -0
  286. data/app/views/mno_enterprise/pages/loading.html.haml +3 -0
  287. data/app/views/mno_enterprise/pages/myspace.html.haml +6 -0
  288. data/app/views/mno_enterprise/provision/_provision_apps.html.haml +43 -0
  289. data/app/views/mno_enterprise/provision/_select_organization.html.haml +17 -0
  290. data/app/views/mno_enterprise/provision/new.html.haml +4 -0
  291. data/app/views/mno_enterprise/user_setup/index.html.haml +2 -0
  292. data/config/initializers/ng-annotate.rb +3 -0
  293. data/config/initializers/ng-performance.rb +3 -0
  294. data/config/routes.rb +19 -0
  295. data/lib/assets/javascripts/impac-angular.js +8719 -0
  296. data/lib/assets/stylesheets/impac-angular.less +2352 -0
  297. data/lib/mno-enterprise-frontend.rb +1 -0
  298. data/lib/mno_enterprise/frontend.rb +13 -0
  299. data/lib/mno_enterprise/frontend/assets_util.rb +47 -0
  300. data/lib/mno_enterprise/frontend/concerns/README.md +6 -0
  301. data/lib/mno_enterprise/frontend/concerns/controllers/pages_controller.rb +25 -0
  302. data/lib/mno_enterprise/frontend/engine.rb +13 -0
  303. data/spec/controllers/mno_enterprise/auth/confirmations_controller_spec.rb +84 -0
  304. data/spec/controllers/mno_enterprise/invoices_controller_spec.rb +34 -0
  305. data/spec/controllers/mno_enterprise/pages_controller_spec.rb +42 -0
  306. data/spec/controllers/mno_enterprise/user_setup_controller_spec.rb +33 -0
  307. data/spec/controllers/mno_enterprise/webhook/o_auth_controller_spec.rb +76 -0
  308. data/spec/rails_helper.rb +92 -0
  309. data/spec/routing/mno_enterprise/invoices_controller_routing_spec.rb +11 -0
  310. data/spec/routing/mno_enterprise/pages_controller_routing_spec.rb +18 -0
  311. data/spec/routing/mno_enterprise/user_setup_controller_routing_spec.rb +11 -0
  312. data/spec/spec_helper.rb +78 -0
  313. metadata +464 -0
@@ -0,0 +1,35 @@
1
+ <div class="modal-header">
2
+ <div class="close" type="button" ng-click="modal.close(_self)" >×</div>
3
+ <h3>Create New Company For Your Customer</h3>
4
+ </div>
5
+
6
+ <div class="modal-body">
7
+ <div class="row">
8
+ <div class="col-sm-12">
9
+ <div class="alert alert-error" ng-show="modal.errors">
10
+ <button class="close" ng-click="modal.errors=''">×</button>
11
+ <ul>
12
+ <li ng-repeat="error in modal.errors">{{error}}</li>
13
+ </ul>
14
+ </div>
15
+ </div>
16
+ </div>
17
+
18
+ <div class="row">
19
+ <div class="col-sm-6 col-sm-offset-3 text-center">
20
+ <p>Enter a name for your new company</p>
21
+ <div class="spacer1"></div>
22
+ <input type="text" class="form-control" ng-model="modal.model.name" required/>
23
+ </div>
24
+ </div>
25
+ </div>
26
+
27
+ <div class="modal-footer">
28
+ <div class="row">
29
+ <div class="col-sm-12">
30
+ <button class="btn btn-lg btn-shaded" ng-click="modal.close(_self)" ng-show="!modal.isLoading">Cancel</button>
31
+ <button class="btn btn-lg btn-info" ng-click="modal.proceed(_self)" ng-show="!modal.isLoading">Create</button>
32
+ <img ng-src="{{assetPath['mno_enterprise/loader-32x32-bg-main.gif']}}" ng-show="modal.isLoading" alt="Loading">
33
+ </div>
34
+ </div>
35
+ </div>
@@ -0,0 +1,35 @@
1
+ <div class="modal-header">
2
+ <div class="close" type="button" ng-click="modal.close(_self)" >×</div>
3
+ <h3>Create New Company</h3>
4
+ </div>
5
+
6
+ <div class="modal-body">
7
+ <div class="row">
8
+ <div class="col-sm-12">
9
+ <div class="alert alert-error" ng-show="modal.errors">
10
+ <button class="close" ng-click="modal.errors=''">×</button>
11
+ <ul>
12
+ <li ng-repeat="error in modal.errors">{{error}}</li>
13
+ </ul>
14
+ </div>
15
+ </div>
16
+ </div>
17
+
18
+ <div class="row">
19
+ <div class="col-sm-6 col-sm-offset-3 text-center">
20
+ <p>Enter a name for your new company</p>
21
+ <div class="spacer1"></div>
22
+ <input type="text" class="form-control" ng-model="modal.model.name" required/>
23
+ </div>
24
+ </div>
25
+ </div>
26
+
27
+ <div class="modal-footer">
28
+ <div class="row">
29
+ <div class="col-sm-12">
30
+ <button class="btn btn-lg btn-shaded" ng-click="modal.close(_self)" ng-show="!modal.isLoading">Cancel</button>
31
+ <button class="btn btn-lg btn-info" ng-click="modal.proceed(_self)" ng-show="!modal.isLoading">Create</button>
32
+ <img ng-src="{{assetPath['mno_enterprise/loader-32x32-bg-main.gif']}}" ng-show="modal.isLoading" alt="Loading">
33
+ </div>
34
+ </div>
35
+ </div>
@@ -0,0 +1,312 @@
1
+ <div class="spacer2"></div>
2
+
3
+ <!-- Loading Icon -->
4
+ <div layout="row" layout-align="center center" ng-show="isLoading" style="height:300px;">
5
+ <md-progress-circular md-mode="indeterminate"></md-progress-circular>
6
+ </div>
7
+
8
+ <!--
9
+ Step 1: Fill additional company details
10
+ -->
11
+ <div ng-show="!isLoading && step == 1">
12
+ <div layout="column" layout-align="center center">
13
+ <h2>Hi {{user.name}}. Let's get you started...</h2>
14
+ <h3>Tell us about your business so we can customise your experience</h3>
15
+ </div>
16
+
17
+
18
+ <div layout="row" layout-align="center center" style="margin-top: 20px;">
19
+ <md-content layout-padding class="md-whiteframe-z1" flex="50">
20
+ <div layout="row" layout-align="end center">
21
+ <div class="md-toolbar-tools">
22
+ <span flex></span>
23
+ <md-button ng-click="skip()">Skip</md-button>
24
+ </div>
25
+
26
+ </div>
27
+
28
+ <!-- Business Setup form-->
29
+ <form name="userForm" flex>
30
+
31
+ <div layout="row" style="margin-bottom:10px;">
32
+ <md-select placeholder="Industry" ng-model="company.industry" style="width:100%;">
33
+ <md-option ng-value="opt" ng-repeat="opt in lists.industries">{{opt}}</md-option>
34
+ </md-select>
35
+ </div>
36
+
37
+ <md-input-container>
38
+ <label>Company name</label>
39
+ <input type="text" ng-model="company.name">
40
+ </md-input-container>
41
+
42
+ <p>My business is:</p>
43
+ <md-radio-group ng-model="company.growth_type">
44
+ <md-radio-button value="startup">Starting up</md-radio-button>
45
+ <md-radio-button value="sme">Growing</md-radio-button>
46
+ <md-radio-button value="agency">Ticking along</md-radio-button>
47
+ </md-radio-group>
48
+
49
+ <div layout="row" style="margin-bottom:10px;">
50
+ <md-select placeholder="Number of employees" ng-model="company.size" style="width:100%;">
51
+ <md-option ng-value="opt.value" ng-repeat="opt in lists.sizes">{{opt.label}}</md-option>
52
+ </md-select>
53
+ </div>
54
+
55
+ <br/>
56
+
57
+ <div layout="row" layout-align="center center">
58
+ <md-button class="md-raised md-accent" ng-click="next()">Done</md-button>
59
+ </div>
60
+ </form>
61
+
62
+ </md-content>
63
+ </div>
64
+ </div>
65
+
66
+
67
+ <!--
68
+ Step 2: Connect existing apps
69
+ -->
70
+ <div ng-show="!isLoading && !connectPane.shown && step == 2">
71
+ <div layout="column" layout-align="center center">
72
+ <h1>Do you currently use any business apps?</h1>
73
+ </div>
74
+
75
+ <!-- Skip or search -->
76
+ <div layout="row" layout-align="center center" style="margin-top: 20px;">
77
+ <div layout="row" layout-align="space-around center" layout-padding flex="50">
78
+
79
+ <md-button ng-click="next()" flex="45">No, I don't have any apps</md-button>
80
+
81
+
82
+ <md-input-container flex="45" class="md-icon-float">
83
+ <label>Search for apps</label>
84
+ <md-icon md-font-icon="fa fa-search" class="name" style='font-size: 22px; margin-top: -3px;'></md-icon>
85
+ <input type="text" ng-model="locals.search" style="padding-top:14px;">
86
+ </md-input-container>
87
+ <span flex></span>
88
+
89
+ </div>
90
+ </div>
91
+
92
+ <!-- My Apps section -->
93
+ <div ng-show="myApps.length > 0" class="fade-in-out">
94
+ <div layout="row" layout-align="center center" style="margin-top: 40px;" >
95
+ <div flex="50">
96
+ <h3 style="margin-left: 8px;">My Existing Apps</h3>
97
+ </div>
98
+ </div>
99
+
100
+ <div layout="row" layout-align="center center">
101
+ <div layout="row" layout-align="start center" style="center" flex="50">
102
+ <md-button class="md-raised md-img fade-in-out-repeat" ng-repeat="app in myApps" ng-click="toggleAppInBasket(app)" flex="15">
103
+ <img ng-src="{{app.logo}}" class="md-card-image" ng-alt="{{app.name}}">
104
+ <md-icon md-font-icon="fa fa-check" class="md-icon-check" ng-show="isAppInBasket(app)"></md-icon>
105
+ </md-button>
106
+ </div>
107
+ </div>
108
+ </div>
109
+
110
+ <div layout="row" layout-align="center center" style="margin-top: 40px;">
111
+ <div flex="50">
112
+ <h3 style="margin-left: 8px;">Popular Apps</h3>
113
+ </div>
114
+ </div>
115
+
116
+ <div layout="row" layout-align="center center">
117
+ <div layout="row" layout-align="space-between center" style="center" flex="50">
118
+ <md-button class="md-raised md-img" ng-repeat="app in popularApps().slice(0,5) track by $index" ng-click="toggleOrConnect(app)">
119
+ <img ng-src="{{app.logo}}" class="md-card-image" ng-alt="{{app.name}}">
120
+ <md-icon md-font-icon="fa fa-check" class="md-icon-check" ng-show="isAppInBasket(app)"></md-icon>
121
+ </md-button>
122
+ </div>
123
+ </div>
124
+
125
+ <div layout="row" layout-align="center center">
126
+ <div layout="row" layout-align="space-between center" style="center" flex="50">
127
+ <md-button class="md-raised md-img" ng-repeat="app in popularApps().slice(5,10) track by $index" ng-click="toggleOrConnect(app)">
128
+ <img ng-src="{{app.logo}}" class="md-card-image" ng-alt="{{app.name}}">
129
+ <md-icon md-font-icon="fa fa-check" class="md-icon-check" ng-show="isAppInBasket(app)"></md-icon>
130
+ </md-button>
131
+ </div>
132
+ </div>
133
+
134
+ <!-- Next Button -->
135
+ <div class="spacer2"></div>
136
+ <div layout="row" layout-align="center center">
137
+ <md-button class="md-raised md-accent" ng-click="next()">Done</md-button>
138
+ </div>
139
+ </div>
140
+
141
+
142
+ <!--
143
+ Step 2: App Connection Screen
144
+ -->
145
+ <div ng-show="!isLoading && connectPane.shown && step == 2">
146
+ <div layout="column" layout-align="center center">
147
+ <h1>Securely Connect</h1>
148
+ </div>
149
+
150
+ <div layout="row" layout-align="center center" style="margin-top: 20px;">
151
+ <md-content layout-padding class="md-whiteframe-z1" flex="33">
152
+ <div layout="row" layout-align="center center">
153
+ <img ng-src="{{connectPane.currentApp.logo}}" ng-alt="{{connectPane.currentApp.name}}" flex="30">
154
+ </div>
155
+
156
+ <md-input-container>
157
+ <label>Username</label>
158
+ <input type="text" ng-model="connectPane.currentApp._username">
159
+ </md-input-container>
160
+
161
+ <md-input-container>
162
+ <label>Password</label>
163
+ <input type="password" ng-model="connectPane.currentApp._password">
164
+ </md-input-container>
165
+
166
+ <div layout="row" layout-align="center center">
167
+ <md-button class="md-raised md-accent" ng-click="connectPane.connect()">Connect Securely</md-button>
168
+ </div>
169
+ <div layout="row" layout-align="center center">
170
+ <md-button class="md-mini" ng-click="connectPane.cancel()">Cancel</md-button>
171
+ </div>
172
+
173
+ <md-progress-linear md-mode="indeterminate" ng-show="connectPane.loading"></md-progress-linear>
174
+
175
+ </md-content>
176
+ </div>
177
+ </div>
178
+
179
+ <!--
180
+ Step 3: Explore more apps
181
+ -->
182
+ <div ng-show="!isLoading && step == 3">
183
+ <div layout="column" layout-align="center center">
184
+ <h1>Do you want to explore more apps?</h1>
185
+ </div>
186
+
187
+ <div layout="row" layout-align="center center" style="margin-top: 20px;">
188
+ <div layout="row" layout-align="space-around center" layout-padding flex="50">
189
+ <md-button ng-click="finishSetup()" flex="45">Not right now</md-button>
190
+ <md-button class="md-raised md-primary" ng-click="next()" flex="45">Yes</md-button>
191
+ </div>
192
+ </div>
193
+
194
+ <div layout="column" layout-align="center center">
195
+ <h3>No stress, if you want to go straight to the site, we can do this later...</h3>
196
+ </div>
197
+ </div>
198
+
199
+
200
+ <!--
201
+ Step 4: Bundle questions
202
+ -->
203
+ <div ng-show="!isLoading && step == 4">
204
+ <div layout="column" layout-align="center center">
205
+ <h2>Tell us about your needs so we can better recommend apps for you...</h2>
206
+ </div>
207
+
208
+ <div layout="row" layout-align="center center" style="margin-top: 20px;">
209
+ <md-content layout-padding class="md-whiteframe-z1" flex="50">
210
+ <h3>I need help with:</h3>
211
+
212
+ <div ng-repeat="(category,subCategorylist) in lists.bundleCategories">
213
+ <md-list-item>
214
+ <p ng-style="selectedCategories[category] && {'font-weight':600 }"> {{ category }} </p>
215
+ <md-checkbox class="md-secondary md-primary" ng-model="selectedCategories[category]"></md-checkbox>
216
+ </md-list-item>
217
+
218
+ <div class='md-sublist' ng-show="selectedCategories[category]">
219
+ <md-list-item ng-repeat="subcategory in subCategorylist">
220
+ <p> {{ subcategory }} </p>
221
+ <md-checkbox class="md-secondary" ng-model="selectedSubCategories[subcategory]"></md-checkbox>
222
+ </md-list-item>
223
+ </div>
224
+ </div>
225
+
226
+ <!-- Next Button -->
227
+ <div class="spacer2"></div>
228
+ <div layout="row" layout-align="center center">
229
+ <md-button class="md-raised md-accent" ng-click="next()">Get recommendations</md-button>
230
+ </div>
231
+
232
+ </md-content>
233
+ </div>
234
+ </div>
235
+
236
+
237
+ <!--
238
+ Step 5: Recommendation
239
+ -->
240
+ <div ng-show="!isLoading && step == 5">
241
+ <div layout="column" layout-align="center center">
242
+ <h1>Our recommendation</h1>
243
+ </div>
244
+
245
+ <!-- Skip -->
246
+ <!-- <div layout="row" layout-align="center center" style="margin-top: 20px;">
247
+ <div layout="row" layout-align="space-around center" layout-padding flex="50">
248
+
249
+ <md-button ng-click="finishSetup()" flex="45">Skip</md-button>
250
+
251
+ </div>
252
+ </div> -->
253
+
254
+ <!-- No recommendations available -->
255
+ <div ng-show="recommendedApps().length == 0">
256
+ <div layout="row" layout-align="center center" style="margin-top: 20px;">
257
+ <md-content layout-align="center center" layout-padding class="md-whiteframe-z1" flex="50">
258
+ <div layout="row" layout-align="center center">
259
+ <p>It looks like we do not have enough information to be able to recommend any app!</p>
260
+ </div>
261
+ <div layout="row" layout-align="center center">
262
+ <md-button ng-click="back()">Try again?</md-button>
263
+ <md-button ng-click="finishSetup()">Skip</md-button>
264
+ </div>
265
+ </md-content>
266
+ </div>
267
+ </div>
268
+
269
+
270
+ <!-- Recommended Apps section -->
271
+ <div ng-show="recommendedApps().length > 0">
272
+ <div layout="row" layout-align="center center" style="margin-top: 40px;" >
273
+ <h3 style="margin-left: 8px;">Based on your profile we recommend</h3>
274
+ </div>
275
+
276
+ <div class="spacer1"></div>
277
+
278
+ <div layout="row" layout-align="center center">
279
+ <div layout="row" layout-align="center center" style="center" flex="50">
280
+ <md-button class="md-raised md-img" ng-repeat="app in recommendedApps() track by $index" ng-click="toggleAppInBasket(app)" flex="15">
281
+ <img ng-src="{{app.logo}}" class="md-card-image" ng-alt="{{app.name}}">
282
+ <md-icon md-font-icon="fa fa-check" class="md-icon-check" ng-show="isAppInBasket(app)"></md-icon>
283
+ </md-button>
284
+ </div>
285
+ </div>
286
+
287
+ <!-- Next Button -->
288
+ <div class="spacer2"></div>
289
+ <div layout="row" layout-align="center center">
290
+ <md-button ng-click="finishSetup()">Skip</md-button>
291
+ <md-button class="md-raised md-accent" ng-click="finishSetup()">Done</md-button>
292
+ </div>
293
+ </div>
294
+
295
+ <!-- My Apps section -->
296
+ <div ng-show="myApps.length > 0">
297
+ <hr/>
298
+ <div layout="row" layout-align="center center" style="margin-top: 40px;" >
299
+ <h4 style="margin-left: 8px;">My Existing Apps</h4>
300
+ </div>
301
+
302
+ <div layout="row" layout-align="center center">
303
+ <div layout="row" layout-align="center center" style="center" flex="50">
304
+ <md-button class="md-raised md-img" ng-repeat="app in myApps track by $index" ng-click="toggleAppInBasket(app)" flex="5">
305
+ <img ng-src="{{app.logo}}" class="md-card-image" ng-alt="{{app.name}}">
306
+ <md-icon md-font-icon="fa fa-check" class="md-icon-check" ng-show="isAppInBasket(app)"></md-icon>
307
+ </md-button>
308
+ </div>
309
+ </div>
310
+ </div>
311
+
312
+ </div>
@@ -0,0 +1,22 @@
1
+ module MnoEnterprise
2
+ class InvoicesController < ApplicationController
3
+ before_filter :authenticate_user!
4
+ before_filter :redirect_to_lounge_if_unconfirmed
5
+
6
+ # GET /mnoe/invoices/201504-NU4
7
+ def show
8
+ @invoice = MnoEnterprise::Invoice.where(slug: params[:id].upcase).reload.first
9
+ authorize! :manage_billing, current_user.organizations.find(@invoice.organization_id)
10
+
11
+ respond_to do |format|
12
+ if @invoice
13
+ filename = "Invoice - #{@invoice.slug}.pdf"
14
+ pdf_view = MnoEnterprise::InvoicePdf.new(@invoice).render
15
+ format.html { send_data pdf_view, filename: filename, type: "application/pdf", disposition: 'inline' }
16
+ else
17
+ format.html { redirect_to root_path, :alert => 'Sorry, the page requested could not be displayed' }
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,9 @@
1
+ module MnoEnterprise
2
+ class PagesController < ApplicationController
3
+ # mno-enterprise/api concern
4
+ include MnoEnterprise::Concerns::Controllers::PagesController
5
+
6
+ # mno-enterprise/frontend concern
7
+ include MnoEnterprise::Frontend::Concerns::Controllers::PagesController
8
+ end
9
+ end
@@ -0,0 +1,11 @@
1
+ module MnoEnterprise
2
+ class UserSetupController < ApplicationController
3
+ before_filter :authenticate_user!
4
+ before_filter :redirect_to_lounge_if_unconfirmed
5
+
6
+ # GET /user_setup/:id
7
+ # Display a specific step for the user setup
8
+ def index
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,17 @@
1
+ -# Load all CDN Base libraries
2
+ = render "layouts/mno_enterprise/common_cdn_lib_js"
3
+
4
+ -# JS libraries hosted internally - usually not changing
5
+ = javascript_include_tag "mno_enterprise/application_lib"
6
+
7
+ -# Application JS - changing quite often
8
+ = javascript_include_tag "mno_enterprise/application"
9
+
10
+ -# Maestrano Enterprise extensions
11
+ -# Only loaded if the file has been included in the list of files to compile
12
+ - if Rails.application.config.assets.precompile.include?("mno_enterprise_extensions.js")
13
+ = javascript_include_tag "mno_enterprise_extensions"
14
+
15
+ -# Development extension
16
+ - if Rails.env.development?
17
+ = javascript_include_tag "ng-performance/ngPerformance"