diff --git a/src/app/views/products/product.controller.coffee b/src/app/views/products/product.controller.coffee index d15c92a2..562ff297 100644 --- a/src/app/views/products/product.controller.coffee +++ b/src/app/views/products/product.controller.coffee @@ -158,6 +158,12 @@ vm.deleteLogo = (asset) -> MnoeProducts.deleteAsset(asset) + #------------------------------------------------ + # Notification Settings + #------------------------------------------------ + + vm.updateNotificationSettings = -> update(['notification_on_success', 'notification_on_failure', 'notification_on_approval']) + # Private update = (params) -> vm.product.values_attributes = _.map(_.keys(vm.product.values_display), (k) -> {name: k, data: vm.product.values_display[k]}) diff --git a/src/app/views/products/product.html b/src/app/views/products/product.html index fb3fef93..494fe91a 100644 --- a/src/app/views/products/product.html +++ b/src/app/views/products/product.html @@ -221,5 +221,32 @@

{{pricingPlan.name}}

+ + + + + +
+ + + + + + + + + + + + + + + +
+ +
+
diff --git a/src/locales/en-AU.json b/src/locales/en-AU.json index 6ead3f5a..839cc467 100644 --- a/src/locales/en-AU.json +++ b/src/locales/en-AU.json @@ -820,6 +820,10 @@ "mnoe_admin_panel.dashboard.product.status.success": "Product status of product '{product}' is now {status, select, true{published} other{draft}}", "mnoe_admin_panel.dashboard.product.status.error": "An error occurred while updating product status", "mnoe_admin_panel.dashboard.product.product_pricing": "Product Pricing", + "mnoe_admin_panel.dashboard.product.notification_settings": "Notification Settings", + "mnoe_admin_panel.dashboard.product.notification_on_success": "Receive an email notification when this product is successfully ordered", + "mnoe_admin_panel.dashboard.product.notification_on_failure": "Receive an email notification when this product fails to be ordered", + "mnoe_admin_panel.dashboard.product.notification_on_approval": "Receive an email notification when this product is approved", "mnoe_admin_panel.dashboard.product.description": "description", "mnoe_admin_panel.dashboard.product.benefits": "Key benefits", "mnoe_admin_panel.dashboard.product.nid": "Nid",