Skip to content

Commit

Permalink
FIX: Show analytics gathering option on edit current user modal
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcu committed Feb 1, 2016
1 parent 5fdb7fc commit 9f72f7d
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions src/app/users/partials/templates/user-modal-context.tpl.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,21 @@ <h3>{{isNew ? "Create User" : "Edit User"}}</h3>
</label>
<p ng-show="user.id == currentUser.id" class="help-block text-center">You cannot modify your own permissions</p>
</div>
<hr>
<div class="form-group" ng-if="!isNew && user == currentUser">
<label class="col-sm-3 control-label">Allow Analytics</label>
<div class="col-sm-7">
<div class="btn-group">
<label class="btn btn-default" ng-model="user.opt_in_to_research" btn-radio="true">
<i class="fa fa-check"></i>
</label>
<label class="btn btn-default" ng-model="user.opt_in_to_research" btn-radio="false">
<i class="fa fa-close"></i>
</label>
<div ng-if="!isNew && user.id == currentUser.id">
<hr>
<div class="form-group">
<label class="col-sm-3 control-label">Allow Analytics</label>
<div class="col-sm-7">
<div class="btn-group">
<label class="btn btn-default" ng-model="user.opt_in_to_research" btn-radio="true">
<i class="fa fa-check"></i>
</label>
<label class="btn btn-default" ng-model="user.opt_in_to_research" btn-radio="false">
<i class="fa fa-close"></i>
</label>
</div>
<p class="help-block">Allow us to anonymously gather your usage to improve Doubtfire</p>
</div>
<p class="help-block">Allow us to anonymously gather your usage to improve Doubtfire</p>
</div>
</div>
</div>
Expand Down

0 comments on commit 9f72f7d

Please sign in to comment.