~mortenoh/+junk/dhis2-detailed-import-export

« back to all changes in this revision

Viewing changes to dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-user/src/main/webapp/dhis-web-maintenance-user/updateRoleForm.vm

  • Committer: larshelge at gmail
  • Date: 2009-03-03 16:46:36 UTC
  • Revision ID: larshelge@gmail.com-20090303164636-2sjlrquo7ib1gf7r
Initial check-in

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
<h3>$i18n.getString( "edit_user_role" )</h3>
 
3
 
 
4
<form id="updateRoleForm" action="updateRole.action" method="post" onsubmit="return validateUpdateRole()">
 
5
        <div>
 
6
                <input type="hidden" id="id" name="id" value="$userAuthorityGroup.id">
 
7
        </div>
 
8
 
 
9
        <table>
 
10
                <tr>
 
11
                        <th colspan="4">$i18n.getString( "details" )</th>        
 
12
                </tr>
 
13
                <tr>
 
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>
 
16
                        <td></td>
 
17
                        <td></td>
 
18
                </tr>
 
19
                <tr>
 
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>
 
22
                        <td></td>
 
23
                        <td></td>
 
24
                </tr>
 
25
                <tr>
 
26
                        <td colspan="4" height="10"></td>
 
27
                </tr>
 
28
                <tr>
 
29
                        <td></td>
 
30
                        <th>$i18n.getString( "available" )</th>
 
31
                        <td></td>
 
32
                        <th>$i18n.getString( "selected" )</th>
 
33
                </tr>
 
34
                <tr>
 
35
                        <td><label>$i18n.getString( "data_sets" )</label></td>  
 
36
                        <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>
 
40
                #end
 
41
                        </select>
 
42
                </td>
 
43
                <td>
 
44
                        <input type="button" value="&lt;" onclick="moveSelectedById( 'selectedList', 'availableList' )">
 
45
                        <input type="button" value="&gt;" onclick="moveSelectedById ( 'availableList', 'selectedList' )">
 
46
                        </td>
 
47
                <td>
 
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>
 
51
                #end
 
52
                        </select>
 
53
                </td>
 
54
                </tr>
 
55
        <tr>
 
56
            <td><label>$i18n.getString( "reports" )</label></td>
 
57
            <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>
 
61
                    #end
 
62
                </select>
 
63
            </td>
 
64
            <td>
 
65
                <input type="button" value="&lt;" title="$i18n.getString('remove_selected')" onclick="moveSelectedById( 'selectedListReport', 'availableListReport' )">
 
66
                <input type="button" value="&gt;" title="$i18n.getString('move_selected')" onclick="moveSelectedById( 'availableListReport', 'selectedListReport' )">
 
67
            </td>
 
68
            <td>
 
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>
 
72
                #end
 
73
                </select>
 
74
            </td>
 
75
        </tr>
 
76
                <tr>
 
77
                        <td><label>$i18n.getString( "authorities" )</label></td>
 
78
                        <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>
 
82
                                #end
 
83
                        </select>
 
84
                </td>
 
85
                <td>
 
86
                        <input type="button" value="&lt;" onclick="moveSelectedById( 'selectedListAuthority', 'availableListAuthority' )">
 
87
                        <input type="button" value="&gt;" onclick="moveSelectedById ( 'availableListAuthority', 'selectedListAuthority' )">
 
88
                        </td>
 
89
                <td>
 
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>
 
93
                #end
 
94
                        </select>
 
95
                </td>
 
96
                </tr>   
 
97
                <tr>
 
98
                        <td></td>
 
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>
 
100
                        <td></td>
 
101
                        <td></td>
 
102
                </tr>
 
103
        </table>
 
104
</form>
 
105
 
 
106
<span id="message"></span>