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 .card
.page-header .page-header
h1 #{translate("your_subscription")} 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  
div div
-if(subscription.groupPlan) -if(subscription.groupPlan)

View file

@ -15,6 +15,7 @@ define [
"main/annual-upgrade" "main/annual-upgrade"
"main/register-users" "main/register-users"
"main/subscription/group-subscription-invite-controller" "main/subscription/group-subscription-invite-controller"
"main/universties-site"
"analytics/AbTestingManager" "analytics/AbTestingManager"
"directives/asyncForm" "directives/asyncForm"
"directives/stopPropagation" "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)->