mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-31 21:21:03 -04:00
18 lines
495 B
CoffeeScript
18 lines
495 B
CoffeeScript
|
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)->
|