for support tickets include browser/os and hide email address if

set already. This way we know who they are logged in with which has
caused condfusion.
This commit is contained in:
Henry Oswald 2016-04-04 16:05:42 +01:00
parent 3d719af71e
commit 633839c98b
3 changed files with 1138 additions and 3 deletions

View file

@ -12,9 +12,9 @@ script(type='text/ng-template', id='supportModalTemplate')
| #{translate("subject")}
.form-group
input.field.text.medium.span8.form-control(ng-model="form.subject", maxlength='255', tabindex='1', onkeyup='')
label.desc
label.desc(ng-show="'#{getUserEmail()}'.length < 1")
| #{translate("email")}
.form-group
.form-group(ng-show="'#{getUserEmail()}'.length < 1")
input.field.text.medium.span8.form-control(ng-model="form.email", ng-init="form.email = '#{getUserEmail()}'", type='email', spellcheck='false', value='', maxlength='255', tabindex='2')
label#title12.desc
| #{translate("project_url")} (#{translate("optional")})

View file

@ -1,6 +1,7 @@
define [
"base"
], (App) ->
"libs/platform"
], (App, platform) ->
App.controller 'ContactModal', ($scope, $modal) ->
@ -28,6 +29,8 @@ define [
message: message or ""
subject: $scope.form.subject + " - [#{ticketNumber}]"
labels: "support"
about: "<div>browser: #{platform?.name} #{platform?.version}</div>
<div>os: #{platform?.os?.family} #{platform?.os?.version}</div>"
Groove.createTicket params, (err, json)->
$scope.sent = true
@ -59,3 +62,5 @@ define [
Groove.createTicket params, (err, json)->
$scope.sent = true
$scope.$apply()

File diff suppressed because it is too large Load diff