added universties site angular controler

This commit is contained in:
Henry Oswald 2016-02-01 14:33:32 +00:00
parent a0e129b880
commit 1f6b43e1b1
3 changed files with 19 additions and 1 deletions

View file

@ -8,7 +8,7 @@ block content
.card
.page-header
h1 #{translate("your_subscription")}
div To make changes to your subscription please contact team@sharelatex.com
div To make changes to your subscription please contact accounts@sharelatex.com
div  
div
-if(subscription.groupPlan)

View file

@ -15,6 +15,7 @@ define [
"main/annual-upgrade"
"main/register-users"
"main/subscription/group-subscription-invite-controller"
"main/universties-site"
"analytics/AbTestingManager"
"directives/asyncForm"
"directives/stopPropagation"

View file

@ -0,0 +1,17 @@
define [
"base"
], (App) ->
App.controller 'UniverstiesContactController', ($scope, $modal) ->
$scope.form = {}
$scope.contactUs = ->
params =
name: $scope.form.name || $scope.form.email
email: $scope.form.email
labels: $scope.form.type
message: "Please contact me with more details"
subject: $scope.form.subject
about : "#{$scope.form.position || ''} #{$scope.form.university || ''} #{$scope.form.source || ''}"
Groove.createTicket params, (err, json)->