2
<h3>$i18n.getString( "edit_section" )</h3>
4
<form id="editDataSetForm" name="editDataSetForm" action="updateSection.action" method="post" onsubmit="submitForm();">
5
<div style="display:inline">
6
<input type="hidden" id="dataSetId" name="dataSetId" value="$dataSet.id">
7
<input type="hidden" id="sectionId" name="sectionId" value="$sectionId">
10
<table id="detailsList">
15
<th colspan="2">$i18n.getString( "section_details" )</th>
20
<td><label>$i18n.getString( "name" ) <em title="$i18n.getString( "required" )" class="required">*</em></label></td>
21
<td><input type="text" id="sectionName" name="sectionName" style="width:20em" value= "$section.name" disabled="disabled"></td>
24
<td><label>$i18n.getString( "label" ) <em title="$i18n.getString( "required" )" class="required">*</em></label></td>
25
<td><input type="text" id="sectionLabel" name="sectionLabel" style="width:20em" value="$section.label" ></td>
27
<tr><td> </td><td> </td></tr>
31
<table id="dataElementSelectionArea">
32
<col> ## Selected DataElements
34
<col> ## Available DataElements
37
<th>$i18n.getString( "available_data_elements" )</th>
39
<th>$i18n.getString( "selected_data_elements" )</th>
46
<!-- List of all available DataElements -->
47
<select size="15" id="availableList" name="dataElementOfDataSet" multiple="multiple" style="min-width:20em;height:20em" ondblclick="move( 'availableList' )">
48
<!-- Show all available DataElements -->
49
#foreach ( $availableDataElement in $dataElementOfDataSet )
50
<option value="$availableDataElement.id"> $availableDataElement.name</option>
55
<input type="button" value=">" title="$i18n.getString('move_selected')" onclick="move( 'availableList' )">
57
<input type="button" value="<" title="$i18n.getString('remove_selected')" onclick="move( 'selectedList' )">
60
<select id="selectedList" name="selectedList" multiple="multiple" style="min-width:20em;height:20em" ondblclick="move( 'selectedList' )">
61
#foreach ( $dataElement in $selectedList )
62
<option value="$dataElement.id">$dataElement.name</option>
70
<p><span id="message"></span></p>
76
<input type="submit" value="$i18n.getString( "save" )"><input type="button"
77
onclick="window.location.href='index.action'" value="$i18n.getString( "cancel" )">