1
#parse( "/dhis-web-maintenance-datadictionary/multidimensional/select.vm" )
3
<h3>$i18n.getString( "create_new_data_element_category_option_comb" )</h3>
5
<form id="selectOption" name="selectOption" method="post" action="addDataElementCategoryOptionCombo.action">
7
<input type="hidden" id="selectedCategoryComboId" name="selectedCategoryComboId" value="$selectedCategoryComboId">
8
<table id="dataElementCategorySelectionArea">
10
#foreach ( $dataElementCategory in $dataElementCategories )
11
<col width="200"> ## preparing columns for the available categories
16
#foreach ( $dataElementCategory in $dataElementCategories )
17
<th>$dataElementCategory.name</th> ## Creating column headers with category name as label
23
<td>$i18n.getString( "selected_options" )</td>
24
#foreach ( $dataElementCategory in $dataElementCategories )
26
<select id="$dataElementCategory.id" name="$dataElementCategory.id" style="min-width:200px" onchange="addToSelectedList( $dataElementCategory.id );" >
27
<option value="null">[$i18n.getString( "select" )]</option>
28
#set( $catOptions = $categoryOptions.get( $dataElementCategory.id ) )
29
#foreach( $categoryOption in $catOptions )
30
<option value="$categoryOption.id">$encoder.htmlEncode( $categoryOption.name )</option>
39
<select id="selectedList" name="selectedList" multiple="multiple" style="min-width:20em;height:20em" >
40
<!-- initially empty -->
52
<span id="message"></span>
57
<input type="submit" name="add" value="$i18n.getString( "add" )">
59
Cancel and go back to the overview
61
<input type="button" name="cancel"
62
onclick="window.location.href='categoryOptionCombo.action'" value="$i18n.getString( "cancel" )">
b'\\ No newline at end of file'