~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-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/multidimensional/addDataElementCategoryOptionComboForm.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
#parse( "/dhis-web-maintenance-datadictionary/multidimensional/select.vm" )
 
2
 
 
3
<h3>$i18n.getString( "create_new_data_element_category_option_comb" )</h3>
 
4
 
 
5
<form id="selectOption" name="selectOption" method="post" action="addDataElementCategoryOptionCombo.action">
 
6
        
 
7
        <input type="hidden" id="selectedCategoryComboId" name="selectedCategoryComboId" value="$selectedCategoryComboId">
 
8
        <table id="dataElementCategorySelectionArea">
 
9
                <col width="200">
 
10
                #foreach ( $dataElementCategory in $dataElementCategories )
 
11
                        <col width="200"> ## preparing columns for the available categories                     
 
12
                #end
 
13
                <thead>
 
14
                        <tr>
 
15
                                <th></th>
 
16
                                #foreach ( $dataElementCategory in $dataElementCategories )
 
17
                                        <th>$dataElementCategory.name</th> ## Creating column headers with category name as label                       
 
18
                                #end                            
 
19
                        </tr>
 
20
                </thead>                
 
21
                <tbody>      
 
22
                        <tr>
 
23
                                <td>$i18n.getString( "selected_options" )</td>
 
24
                                #foreach ( $dataElementCategory in $dataElementCategories )
 
25
                                        <td>
 
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>
 
31
                                                        #end                                            
 
32
                                                </select>                                               
 
33
                                        </td>                                                           
 
34
                                #end
 
35
                        </tr>
 
36
                        
 
37
                        <tr>
 
38
                                <td>
 
39
                                        <select id="selectedList" name="selectedList" multiple="multiple" style="min-width:20em;height:20em" >
 
40
                                                <!-- initially empty -->
 
41
                                        </select>
 
42
                                </td>
 
43
                        </tr>
 
44
                </tbody>
 
45
                
 
46
        </table>        
 
47
        
 
48
        <table>
 
49
                <tbody>
 
50
                        <tr>
 
51
                                <td colspan="4">
 
52
                                        <span id="message"></span>
 
53
                                </td>
 
54
                        </tr>
 
55
                        <tr>
 
56
                                <td colspan="4">                                        
 
57
                                        <input type="submit" name="add" value="$i18n.getString( "add" )">
 
58
                                                <!--
 
59
                                        Cancel and go back to the overview
 
60
                                        -->
 
61
                                        <input type="button" name="cancel"
 
62
                                                onclick="window.location.href='categoryOptionCombo.action'" value="$i18n.getString( "cancel" )">
 
63
                        </td>
 
64
                </tr>
 
65
        </tbody>
 
66
  </table>
 
67
        
 
68
</form>
 
 
b'\\ No newline at end of file'