dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #30568
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 15528: Small change in Assign program to user roles form.
------------------------------------------------------------
revno: 15528
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2014-06-03 13:44:03 +0800
message:
Small change in Assign program to user roles form.
modified:
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/programUserrole.vm
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/programUserrole.vm'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/programUserrole.vm 2013-03-20 13:45:53 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/programUserrole.vm 2014-06-03 05:44:03 +0000
@@ -5,25 +5,32 @@
<form name="userRole" action="defineProgramUserrole.action" method="POST" onsubmit="selectAllById( 'userRoleIds' );">
<input type="hidden" name="id" value="$program.id"/>
<table>
+ <colgroup>
+ <col style='width:500px'/>
+ <col/>
+ <col style='width:500px'/>
+ </colgroup>
<tr>
<th>$i18n.getString( "available" )</th>
- <td></td>
+ <th></th>
<th>$i18n.getString( "selected" )</th>
</tr>
<tr>
<td>
- <select size="15" id="availableList" name="availableList" multiple="multiple" style="min-width:20em;height:20em" ondblclick="moveSelectedById( 'availableList', 'userRoleIds' )">
+ <select style="height:200px;width:100%;" size="15" id="availableList" name="availableList" multiple="multiple" style="min-width:20em;height:20em" ondblclick="moveSelectedById( 'availableList', 'userRoleIds' )">
#foreach ( $userRole in $userRoles )
<option value="$userRole.id">$encoder.htmlEncode( $userRole.name )</option>
#end
</select>
</td>
<td>
- <input type="button" value=">" title="$i18n.getString('move_selected')" onclick="moveSelectedById( 'availableList', 'userRoleIds' )" class="filterButton" /><br/>
- <input type="button" value="<" title="$i18n.getString('remove_selected')" onclick="moveSelectedById( 'userRoleIds', 'availableList' )" class="filterButton" />
+ <input type="button" value=">" onclick="moveSelectedById( 'availableList', 'userRoleIds' )" class="filterButton" /><br/>
+ <input type="button" value="<" onclick="moveSelectedById( 'userRoleIds', 'availableList' )" class="filterButton" /><br/>
+ <input type="button" value=">>" onclick="moveAllById( 'availableList', 'userRoleIds' )" class='filterButton' /><br/>
+ <input type="button" value="<<" onclick="moveAllById( 'userRoleIds', 'availableList' )" class='filterButton' />
</td>
<td>
- <select id="userRoleIds" name="userRoleIds" multiple="multiple" style="min-width:20em;height:20em" ondblclick="moveSelectedById( 'userRoleIds', 'availableList' )">
+ <select style="height:200px;width:100%;" id="userRoleIds" name="userRoleIds" multiple="multiple" style="min-width:20em;height:20em" ondblclick="moveSelectedById( 'userRoleIds', 'availableList' )">
#foreach ( $userRole in $program.userRoles )
<option value="$userRole.id">$encoder.htmlEncode( $userRole.name )</option>
#end