~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/addDataElementCategoryForm.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( "create_new_data_element_category" )</h3>
 
3
 
 
4
<form id="addDataElementCategoryForm" name="addDataElementCategoryForm" action="addDataElementCategory.action" method="post" onsubmit="submitForm(); return validateAddDataElementCategory()">
 
5
  <table id="detailsList">
 
6
    <col> ## Labels
 
7
    <col> ## Input
 
8
    <thead>
 
9
      <tr>
 
10
        <th colspan="2">$i18n.getString( "details" )</th>
 
11
      </tr>
 
12
    </thead>
 
13
    <tbody>
 
14
      <tr>
 
15
        <td><label>$i18n.getString( "name" ) <em title="$i18n.getString( "required" )" class="required">*</em></label></td>
 
16
        <td><input type="text" id="nameField" name="nameField" style="width:20em"></td>
 
17
      </tr>      
 
18
      <tr><td>&nbsp;</td><td>&nbsp;</td></tr>
 
19
    </tbody>
 
20
  </table>
 
21
 
 
22
  <table id="dataElementCategoryOptionSelectionArea">
 
23
    <col> ## Selected DataElementCategoryOptions
 
24
    <col> ## Actions    
 
25
        <col> ## only a space
 
26
    <col> ## Available DataElementCategoryOptions
 
27
    <thead>
 
28
      <tr>        
 
29
                <th>$i18n.getString( "available_options" )</th>
 
30
                <td></td>
 
31
                <th>$i18n.getString( "selected_options" )</th>
 
32
      </tr>
 
33
    </thead>
 
34
    <tbody>
 
35
      
 
36
      <tr>
 
37
        <td>
 
38
          <!-- List of all available DataElementCategoryOptions -->
 
39
          <select size="15" id="availableList" name="availableList" multiple="multiple" style="min-width:20em;height:20em" ondblclick="move( 'availableList' )">
 
40
            <!-- Show all available DataElementCategoryOptions -->
 
41
            #foreach ( $availableDataElementCategoryOption in $dataElementCategoryOptions )
 
42
              <option value="$availableDataElementCategoryOption.id">$encoder.htmlEncode( $availableDataElementCategoryOption.name )</option>
 
43
            #end
 
44
          </select>
 
45
        </td>
 
46
                <td valign="top" align="center">                 
 
47
          <input type="button" value="&gt;" onclick="move( 'availableList' )"><br>      
 
48
                  <input type="button" value="&lt;" onclick="move ( 'selectedList' )">  <br>    <br>    
 
49
                  <a href="#" onclick="moveUp('selectedList')"><img src="../images/move_up.png" border="0" alt=""></a><br><br>
 
50
                  <a href="#" onclick="moveDown('selectedList')"><img src="../images/move_down.png" border="0" alt=""></a>                
 
51
        </td>  
 
52
                <td>
 
53
          <select id="selectedList" name="selectedList" multiple="multiple" style="min-width:20em;height:20em" ondblclick="move( 'selectedList' )">
 
54
            <!-- initially empty -->
 
55
          </select>
 
56
        </td>           
 
57
       
 
58
      </tr>
 
59
 
 
60
      <tr>
 
61
        <td colspan="4">
 
62
          <span id="message"></span>
 
63
        </td>
 
64
      </tr>
 
65
 
 
66
      <tr>
 
67
        <td colspan="4">
 
68
          <input type="submit" name="add" value="$i18n.getString( "add" )">
 
69
          <!--
 
70
            Cancel and go back to the overview
 
71
          -->
 
72
          <input type="button" name="cancel"
 
73
            onclick="window.location.href='category.action'" value="$i18n.getString( "cancel" )">
 
74
        </td>
 
75
      </tr>
 
76
    </tbody>
 
77
  </table>
 
78
</form>