1
<h2>$i18n.getString( "edit_legendset" )</h2>
2
<form name="editLegendSet" action="editLegendSet.action" method="post" onsubmit="submitForm(); return validateUpdateLegendSet();">
3
<table id="list" style="width:50%">
5
<td><label>$i18n.getString( "name" ) <em title="$i18n.getString( "required" )" class="required">*</em></label></td>
6
<td><input type="text" id="name" name="name" style="width:200px" value="$legendSet.name" disabled="disabled"/>
7
<input type="hidden" id="id" name="id" style="width:200px" value="$legendSet.id"/></td>
12
<table id="indicatorArea">
13
<col> ## Selected DataElements
16
<col> ## Available DataElements
19
<th>$i18n.getString( "selected_indicators" )</th>
22
<th>$i18n.getString( "available_indicators" )</th>
27
<td colspan=3 align="right"><label>$i18n.getString( "group_filter" )</label></td>
29
<select id="indicatorGroupId" name="indicatorGroupId" style="min-width:20em"
30
onchange="javascript:getIndicatorByIndicatorGroup( this.options[this.selectedIndex].value ,'update')">
31
<option value="ALL" selected="selected">$i18n.getString( "all" )</option>
32
#foreach ( $indicatorGroup in $indicatorGroups )
33
<option value="$indicatorGroup.id">$encoder.htmlEncode( $indicatorGroup.name )</option>
41
<select id="selectedIndicatorList" name="selectedIndicatorList" multiple="multiple" style="min-width:20em;height:20em" ondblclick="moveIndicator( 'selectedIndicatorList' )">
42
#foreach ( $indicator in $legendSet.indicators )
43
<option value="$indicator.id">$encoder.htmlEncode( $indicator.name )</option>
48
<input type="button" value="<" title="$i18n.getString('move_selected')" onclick="moveIndicator( 'availableIndicatorList' )">
50
<input type="button" value=">" title="$i18n.getString('remove_selected')" onclick="moveIndicator ( 'selectedIndicatorList' )">
54
<!-- List of all available DataElements -->
55
<select size="15" id="availableIndicatorList" name="availableIndicatorList" multiple="multiple" style="min-width:20em;height:20em" ondblclick="moveIndicator( 'availableIndicatorList' )">
56
<!-- Show all available DataElements -->
57
#foreach ( $indicator in $indicators )
58
<option value="$indicator.id">$encoder.htmlEncode( $indicator.name )</option>
65
<table id="dataElementSelectionArea">
66
<col> ## Selected DataElements
69
<col> ## Available DataElements
72
<th>$i18n.getString( "selected_legends" )</th>
75
<th>$i18n.getString( "available_legends" )</th>
87
<select id="selectedList" name="selectedList" multiple="multiple" style="min-width:20em;height:20em" ondblclick="move( 'selectedList' )">
88
#foreach ( $legend in $legendSet.legends )
89
<option value="$legend.id">$encoder.htmlEncode( $legend.name )</option>
94
<input type="button" value="<" title="$i18n.getString('move_selected')" onclick="move( 'availableList' )">
96
<input type="button" value=">" title="$i18n.getString('remove_selected')" onclick="move ( 'selectedList' )">
100
<!-- List of all available DataElements -->
101
<select size="15" id="availableList" name="availableList" multiple="multiple" style="min-width:20em;height:20em" ondblclick="move( 'availableList' )">
102
<!-- Show all available DataElements -->
103
#foreach ( $legend in $legends )
104
<option value="$legend.id">$encoder.htmlEncode( $legend.name )</option>
112
<span id="message"></span>
118
<input type="submit" name="add" value="$i18n.getString( "update_legendset" )">
120
Cancel and go back to the overview
122
<input type="button" name="cancel"
123
onclick="window.location.href='listLegendSets.action'" value="$i18n.getString( "cancel" )">
b'\\ No newline at end of file'