Skip to content

Commit

Permalink
Merge pull request #4446 from archesproject/4357_msm_redesign
Browse files Browse the repository at this point in the history
Uses arches checkboxes in msm user list, re #4357
  • Loading branch information
chiatt authored Jan 17, 2019
2 parents 3dff3c9 + 8956cda commit 1836d48
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions arches/app/templates/views/mobile-survey-designer.htm
Original file line number Diff line number Diff line change
Expand Up @@ -540,9 +540,11 @@ <h1 class="page-header text-overflow mobile-designer-title">
<!--ko if: selectedNode().type === 'group' -->
<div class="msm-user-account-panel">
<!--ko foreach: {data: selectedNode().fullusers, as: 'user'} -->
<div class="msm-user-account-item" data-bind="click: function(){$parent.mobilesurvey.selectedUser(user); return true;};, css: {selected: user.id === $parent.mobilesurvey.selectedUser().id}, visible: user.filtered() === false" class="userrow">
<input style="height:15px; width:15px; margin-right: 5px;" type="checkbox" value="user.approved()" data-bind="checked: user.approved, event: {'change': $parent.mobilesurvey.toggleIdentity}" />
<span data-bind="text: user.name"></span>
<div class="msm-user-account-item checkbox" data-bind="click: function(){$parent.mobilesurvey.selectedUser(user); return true;};, css: {selected: user.id === $parent.mobilesurvey.selectedUser().id}, visible: user.filtered() === false" class="userrow">
<label class="form-checkbox form-normal form-primary" data-bind="css: {'active': user.approved}" style="padding-left: 25px; padding-top: 3px;">
<input type="checkbox" data-bind="checked: user.approved, event: {'change': $parent.mobilesurvey.toggleIdentity}"/>
<span data-bind="text: user.name"></span>
</label>
</div>
<!--/ko-->
</div>
Expand Down

0 comments on commit 1836d48

Please sign in to comment.