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