Преглед изворни кода

More specific group contact controller name and email subject

This form is only used on the group contact modal.
Jessica Lawshe пре 8 година
родитељ
комит
4f5c12e9ac

+ 1 - 1
services/web/app/views/subscriptions/_modal_group_inquiry.pug

@@ -2,7 +2,7 @@ script(type="text/ng-template", id="groupPlanModalTemplate")
 	.modal-header
 	.modal-header
 		h3 #{translate("group_plan_enquiry")}
 		h3 #{translate("group_plan_enquiry")}
 	.modal-body
 	.modal-body
-		form.text-left.form(ng-controller="UniverstiesContactController", ng-submit="contactUs()")
+		form.text-left.form(ng-controller="GroupPlanContactController", ng-submit="contactUs()")
 			span(ng-show="sent == false && error == false")
 			span(ng-show="sent == false && error == false")
 				.form-group
 				.form-group
 					label#title9(for='Field9')
 					label#title9(for='Field9')

+ 2 - 2
services/web/public/coffee/main/contact-us.coffee

@@ -2,7 +2,7 @@ define [
 	"base"
 	"base"
 	"libs/platform"
 	"libs/platform"
 ], (App, platform) ->
 ], (App, platform) ->
-	App.controller 'UniverstiesContactController', ($scope, $modal, $http) ->
+	App.controller 'GroupPlanContactController', ($scope, $modal, $http) ->
 
 
 		$scope.form = {}
 		$scope.form = {}
 		$scope.sent = false
 		$scope.sent = false
@@ -20,7 +20,7 @@ define [
 				email: $scope.form.email
 				email: $scope.form.email
 				labels: "#{$scope.form.source} accounts"
 				labels: "#{$scope.form.source} accounts"
 				message: "Please contact me with more details"
 				message: "Please contact me with more details"
-				subject: "#{$scope.form.name} - General Enquiry - #{$scope.form.position} - #{$scope.form.university}"
+				subject: "#{$scope.form.name} - Group Enquiry - #{$scope.form.position} - #{$scope.form.university}"
 				inbox: "accounts"
 				inbox: "accounts"
 
 
 			request = $http.post "/support", data
 			request = $http.post "/support", data