2
<h3>$i18n.getString( "edit_user_role" )</h3>
4
<form id="updateRoleForm" action="updateRole.action" method="post" onsubmit="return validateUpdateRole()">
6
<input type="hidden" id="id" name="id" value="$userAuthorityGroup.id">
11
<th colspan="4">$i18n.getString( "details" )</th>
14
<td><label for="name">$i18n.getString( "name" ) <em title="$i18n.getString( "required" )" class="required">*</em></label></td>
15
<td><input type="text" id="name" name="name" value="$!encoder.htmlEncode( $userAuthorityGroup.name )" style="width:20em"></td>
20
<td><label for="description">$i18n.getString( "description" ) <em title="$i18n.getString( "required" )" class="required">*</em></label></td>
21
<td><input type="text" id="description" name="description" value="$!encoder.htmlEncode( $userAuthorityGroup.description )" style="width:20em"></td>
26
<td colspan="4" height="10"></td>
30
<th>$i18n.getString( "available" )</th>
32
<th>$i18n.getString( "selected" )</th>
35
<td><label>$i18n.getString( "data_sets" )</label></td>
37
<select size="15" id="availableList" name="availableList" multiple="multiple" style="min-width:20em;height:20em" ondblclick="moveSelectedById( 'availableList', 'selectedList' )">
38
#foreach ( $availableDataSet in $availableDataSets )
39
<option value="$availableDataSet.id">$encoder.htmlEncode( $availableDataSet.name )</option>
44
<input type="button" value="<" onclick="moveSelectedById( 'selectedList', 'availableList' )">
45
<input type="button" value=">" onclick="moveSelectedById ( 'availableList', 'selectedList' )">
48
<select id="selectedList" name="selectedList" multiple="multiple" style="min-width:20em;height:20em" ondblclick="moveSelectedById( 'selectedList', 'availableList' )">
49
#foreach ( $selectedDataSet in $roleDataSets )
50
<option value="$selectedDataSet.id">$encoder.htmlEncode( $selectedDataSet.name )</option>
56
<td><label>$i18n.getString( "reports" )</label></td>
58
<select size="15" id="availableListReport" name="availableListReport" multiple="multiple" style="min-width:20em;height:20em" ondblclick="moveSelectedById( 'availableListReport', 'selectedListReport' )">
59
#foreach( $report in $availableReports )
60
<option value="$report.id">$encoder.htmlEncode( $report.name )</option>
65
<input type="button" value="<" title="$i18n.getString('remove_selected')" onclick="moveSelectedById( 'selectedListReport', 'availableListReport' )">
66
<input type="button" value=">" title="$i18n.getString('move_selected')" onclick="moveSelectedById( 'availableListReport', 'selectedListReport' )">
69
<select id="selectedListReport" name="selectedListReport" multiple="multiple" style="min-width:20em;height:20em" ondblclick="moveSelectedById( 'selectedListReport', 'availableListReport' )">
70
#foreach ( $report in $roleReports )
71
<option value="$report.id">$encoder.htmlEncode( $report.name )</option>
77
<td><label>$i18n.getString( "authorities" )</label></td>
79
<select size="15" id="availableListAuthority" name="availableListAuthority" multiple="multiple" style="min-width:20em;height:20em" ondblclick="moveSelectedById( 'availableListAuthority', 'selectedListAuthority' )">
80
#foreach( $availableAuthority in $availableAuthorities )
81
<option value="$availableAuthority">$i18n.getString( $availableAuthority )</option>
86
<input type="button" value="<" onclick="moveSelectedById( 'selectedListAuthority', 'availableListAuthority' )">
87
<input type="button" value=">" onclick="moveSelectedById ( 'availableListAuthority', 'selectedListAuthority' )">
90
<select id="selectedListAuthority" name="selectedListAuthority" multiple="multiple" style="min-width:20em;height:20em" ondblclick="moveSelectedById( 'selectedListAuthority', 'availableListAuthority' )">
91
#foreach ( $selectedAuthority in $roleAuthorities )
92
<option value="$selectedAuthority">$i18n.getString( $selectedAuthority )</option>
99
<td valign="top"><input type="submit" value="$i18n.getString( "save" )" style="width:10em"><input type="button" value="$i18n.getString( "cancel" )" onclick="window.location.href='allRole.action'" style="width:10em"></td>
106
<span id="message"></span>