~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/updateDataElementCategoryComboForm.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_data_element_category_combo" )</h3>
 
3
 
 
4
<form id="editDataElementCategoryComboForm" name="editDataElementCategoryComboForm" action="updateDataElementCategoryCombo.action" method="post" onsubmit="submitForm(); return validateEditDataElementCategoryCombo()">
 
5
  <div style="display:inline">
 
6
  <input type="hidden" id="dataElementCategoryComboId" name="dataElementCategoryComboId" value="$dataElementCategoryCombo.id">
 
7
  </div>
 
8
  
 
9
  <table id="detailsList">
 
10
    <col> ## Labels
 
11
    <col> ## Input
 
12
    <thead>
 
13
      <tr>
 
14
        <th colspan="2">$i18n.getString( "data_element_category_combo_details" )</th>
 
15
      </tr>
 
16
    </thead>
 
17
    <tbody>
 
18
      <tr>
 
19
        <td><label>$i18n.getString( "name" ) <em title="$i18n.getString( "required" )" class="required">*</em></label></td>
 
20
        <td><input type="text" id="nameField" name="nameField" style="width:20em" value="$encoder.htmlEncode( $dataElementCategoryCombo.name )"></td>
 
21
      </tr>      
 
22
      <tr><td>&nbsp;</td><td>&nbsp;</td></tr>
 
23
    </tbody>
 
24
  </table>
 
25
 
 
26
 <table id="dataElementCategorySelectionArea">
 
27
    <col> ## Selected DataElementCategories
 
28
    <col> ## Actions    
 
29
    <col> ## Available DataElementCategories
 
30
    <thead>
 
31
        <tr>        
 
32
                <th>$i18n.getString( "available_categories" )</th>
 
33
                <th></th>        
 
34
                <th>$i18n.getString( "selected_categories" )</th>
 
35
      </tr>
 
36
    </thead>
 
37
  
 
38
    <tbody>
 
39
      <tr>
 
40
        <td></td>
 
41
        <td></td>        
 
42
      </tr>
 
43
      <tr>       
 
44
                <td>
 
45
          <!-- List of all available categories -->
 
46
          <select size="15" id="availableList" name="availableList" multiple="multiple" style="min-width:20em;height:20em" ondblclick="move( 'availableList' )">
 
47
            <!-- Show all available categories -->
 
48
            #foreach ( $availableDataElementCategory in $allDataElementCategories )
 
49
              <option value="$availableDataElementCategory.id">$encoder.htmlEncode( $availableDataElementCategory.name )</option>
 
50
            #end
 
51
          </select>
 
52
        </td>
 
53
       </td>
 
54
                 <td valign="top" align="center">                
 
55
          <input type="button" value="&gt;" onclick="move( 'availableList' )"><br>      
 
56
                  <input type="button" value="&lt;" onclick="move ( 'selectedList' )">  <br>    <br>    
 
57
                  <a href="#" onclick="moveUp('selectedList')"><img src="../images/move_up.png" border="0" alt=""></a><br><br>
 
58
                  <a href="#" onclick="moveDown('selectedList')"><img src="../images/move_down.png" border="0" alt=""></a>                
 
59
        </td> 
 
60
                <td>
 
61
          <select id="selectedList" name="selectedList" multiple="multiple" style="min-width:20em;height:20em" ondblclick="move( 'selectedList' )">
 
62
            #foreach ( $dataElementCategory in $dataElementCategories )
 
63
              <option value="$dataElementCategory.id">$encoder.htmlEncode( $dataElementCategory.name )</option>
 
64
            #end
 
65
          </select>
 
66
        </td>          
 
67
      </tr>
 
68
 
 
69
      <tr>
 
70
        <td colspan="4">
 
71
          <p><span id="message"></span></p>
 
72
        </td>
 
73
      </tr>
 
74
 
 
75
      <tr>
 
76
        <td colspan="4">
 
77
          <input type="submit" name="update" value="$i18n.getString( "update" )">
 
78
          <!--
 
79
            Cancel and go back to the overview
 
80
          -->
 
81
          <input type="button" name="cancel"
 
82
            onclick="window.location.href='categoryCombo.action'" value="$i18n.getString( "cancel" )">
 
83
        </td>
 
84
      </tr>
 
85
    </tbody>
 
86
  </table>
 
87
</form>