Skip to content

Commit

Permalink
Merge pull request #471 from channab/TRUNK-3646
Browse files Browse the repository at this point in the history
Trunk 3646
  • Loading branch information
dkayiwa committed Dec 19, 2013
2 parents 0921888 + 6060489 commit 5a194f2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions webapp/src/main/webapp/WEB-INF/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ error.description.required=Description is required
general.at=at
general.with=with
general.select=Select
general.selectOrUnselectAll=Select/Unselect Al
general.name=Name
general.description=Description
general.creator=Creator
Expand Down
11 changes: 11 additions & 0 deletions webapp/src/main/webapp/WEB-INF/view/admin/users/roleForm.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,17 @@
return confirm('<openmrs:message code="Role.leaveForm" />');
}
$j(document).ready(function() {
$j("#privileges").prepend('<span class="listItem listItemSelectAll"><input type="checkbox" id="toggleSelectionCheckbox"><spring:message code="general.selectOrUnselectAll"/></span>');
$j("#toggleSelectionCheckbox").click(function(e) {
var state = $j(e.target).attr('checked') === undefined ? false : true;
$j("input[type='checkbox'][name='privileges']").each(function() {
$j(this).attr("checked", state);
}) ;
});
});
</script>

<h2><openmrs:message code="Role.manage.title"/></h2>
Expand Down
4 changes: 4 additions & 0 deletions webapp/src/main/webapp/openmrs.css
Original file line number Diff line number Diff line change
Expand Up @@ -1055,6 +1055,10 @@ table#obs td.obsValue {
color: white;
}

.listItemSelectAll {
background-color: #EFEFEF;
}

.instructions {
font-size: 0.8em;
}
Expand Down

0 comments on commit 5a194f2

Please sign in to comment.