Commit 15c8b15d authored by Gergely Ujvari's avatar Gergely Ujvari

Simplify Subscriptions table

All currently not needed columns were removed: paremeters, query, description
Client generates the description
parent 9261b62c
...@@ -2,6 +2,8 @@ class AccountController ...@@ -2,6 +2,8 @@ class AccountController
@inject = ['$scope', '$filter', 'flash', 'session', 'identity', 'formHelpers'] @inject = ['$scope', '$filter', 'flash', 'session', 'identity', 'formHelpers']
constructor: ($scope, $filter, flash, session, identity, formHelpers) -> constructor: ($scope, $filter, flash, session, identity, formHelpers) ->
persona_filter = $filter('persona') persona_filter = $filter('persona')
$scope.subscription_description =
'reply template': 'Receive notification emails when: - Someone replies to one of my annotations'
onSuccess = (form, response) -> onSuccess = (form, response) ->
# Fire flash messages. # Fire flash messages.
......
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
<div class="form-field form-checkbox-list"> <div class="form-field form-checkbox-list">
<div class="form-checkbox-item" ng-repeat="subscription in subscriptions"> <div class="form-checkbox-item" ng-repeat="subscription in subscriptions">
<input id="checkbox-{{$index}}" type="checkbox" ng-model="subscription.active" ng-change="updated($index, notificationsForm)" /> <input id="checkbox-{{$index}}" type="checkbox" ng-model="subscription.active" ng-change="updated($index, notificationsForm)" />
<label class="form-label" for="checkbox-{{$index}}">{{subscription.description}}</label> <label class="form-label" for="checkbox-{{$index}}">{{subscription_description[subscription.template]}}</label>
</div> </div>
</div> </div>
</form> </form>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment