~mortenoh/+junk/dhis2-detailed-import-export

« back to all changes in this revision

Viewing changes to dhis-2/dhis-web/dhis-web-gis/src/main/webapp/dhis-web-gis/addLegendSet.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
<h2>$i18n.getString( "add_legendset" )</h2>
 
2
<form name="addLegendSet" action="addLegendSet.action" method="post" onsubmit="submitForm(); return validateAddLegendSet();">
 
3
         <table id="list" style="width:50%">
 
4
                <tr>
 
5
                        <td><label>$i18n.getString( "name" ) <em title="$i18n.getString( "required" )" class="required">*</em></label></td>
 
6
                        <td><input type="text" id="name" name="name" style="width:200px"/></td>
 
7
                </tr>           
 
8
        </table>
 
9
        
 
10
        <table id="indicatorArea">
 
11
    <col> ## Selected DataElements
 
12
    <col> ## Actions
 
13
    <col> ## Filter
 
14
    <col> ## Available DataElements
 
15
    <thead>
 
16
      <tr>
 
17
        <th>$i18n.getString( "selected_indicators" )</th>
 
18
                <th>&nbsp;</th>
 
19
                <th>&nbsp;</th>       
 
20
        <th>$i18n.getString( "available_indicators" )</th>
 
21
      </tr>
 
22
    </thead>
 
23
    <tbody>
 
24
                <tr>                     
 
25
        <td colspan=3 align="right"><label>$i18n.getString( "group_filter" )</label></td>
 
26
        <td>
 
27
          <select id="indicatorGroupId" name="indicatorGroupId" style="min-width:20em"
 
28
              onchange="javascript:getIndicatorByIndicatorGroup( this.options[this.selectedIndex].value ,'add')">
 
29
            <option value="ALL" selected="selected">$i18n.getString( "all" )</option>
 
30
            #foreach ( $indicatorGroup in $indicatorGroups )
 
31
              <option value="$indicatorGroup.id">$encoder.htmlEncode( $indicatorGroup.name )</option>
 
32
            #end
 
33
          </select>
 
34
        </td>
 
35
      </tr>
 
36
      <tr>
 
37
                
 
38
        <td>
 
39
          <select id="selectedIndicatorList" name="selectedIndicatorList" multiple="multiple" style="min-width:20em;height:20em" ondblclick="moveIndicator( 'selectedIndicatorList' )">
 
40
            <!-- initially empty -->
 
41
          </select>
 
42
        </td>
 
43
        <td valign="top">
 
44
          <input type="button" value="&lt;" title="$i18n.getString('move_selected')" onclick="moveIndicator( 'availableIndicatorList' )">
 
45
          <br>
 
46
          <input type="button" value="&gt;" title="$i18n.getString('remove_selected')" onclick="moveIndicator ( 'selectedIndicatorList' )">
 
47
        </td>
 
48
        <td></td>
 
49
        <td>
 
50
          <!-- List of all available DataElements -->
 
51
          <select size="15" id="availableIndicatorList" name="availableIndicatorList" multiple="multiple" style="min-width:20em;height:20em" ondblclick="moveIndicator( 'availableIndicatorList' )">
 
52
            <!-- Show all available DataElements -->
 
53
            #foreach ( $indicator in $indicators )
 
54
              <option value="$indicator.id">$encoder.htmlEncode( $indicator.name )</option>
 
55
            #end
 
56
          </select>
 
57
        </td>
 
58
      </tr>
 
59
    </tbody>
 
60
  </table>
 
61
        
 
62
  <table id="legendArea">
 
63
    <col> ## Selected DataElements
 
64
    <col> ## Actions
 
65
    <col> ## Filter
 
66
    <col> ## Available DataElements
 
67
    <thead>
 
68
      <tr>
 
69
        <th>$i18n.getString( "selected_legends" )</th>
 
70
                <th>&nbsp;</th>
 
71
                <th>&nbsp;</th>       
 
72
        <th>$i18n.getString( "available_legends" )</th>
 
73
      </tr>
 
74
    </thead>
 
75
    <tbody>
 
76
      <tr>
 
77
        <td>
 
78
          <select id="selectedList" name="selectedList" multiple="multiple" style="min-width:20em;height:20em" ondblclick="move( 'selectedList' )">
 
79
            <!-- initially empty -->
 
80
          </select>
 
81
        </td>
 
82
        <td valign="top">
 
83
          <input type="button" value="&lt;" title="$i18n.getString('move_selected')" onclick="move( 'availableList' )">
 
84
          <br>
 
85
          <input type="button" value="&gt;" title="$i18n.getString('remove_selected')" onclick="move ( 'selectedList' )">
 
86
        </td>
 
87
        <td></td>
 
88
        <td>
 
89
          <!-- List of all available DataElements -->
 
90
          <select size="15" id="availableList" name="availableList" multiple="multiple" style="min-width:20em;height:20em" ondblclick="move( 'availableList' )">
 
91
            <!-- Show all available DataElements -->
 
92
            #foreach ( $legend in $legends )
 
93
              <option value="$legend.id">$encoder.htmlEncode( $legend.name )</option>
 
94
            #end
 
95
          </select>
 
96
        </td>
 
97
      </tr>
 
98
 
 
99
      <tr>
 
100
        <td colspan="4">
 
101
          <span id="message"></span>
 
102
        </td>
 
103
      </tr>
 
104
 
 
105
      <tr>
 
106
        <td colspan="4">
 
107
          <input type="submit" name="add" value="$i18n.getString( "add_legendset" )">
 
108
          <!--
 
109
            Cancel and go back to the overview
 
110
          -->
 
111
          <input type="button" name="cancel"
 
112
            onclick="window.location.href='listLegendSets.action'" value="$i18n.getString( "cancel" )">
 
113
        </td>
 
114
      </tr>
 
115
    </tbody>
 
116
  </table>
 
117
</form>
 
 
b'\\ No newline at end of file'