~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/editLegend.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" )</h2>
 
2
<form name="editLegend" action="editLegend.action" method="post" onsubmit="return validateUpdateLegend();">
 
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>$encoder.xmlEncode( $legend.name )<input type="hidden" name="legendId" value="$legend.id"/><input type="hidden" id="name" name="nameField" value="$legend.name" style="width:20em"/></td>
 
7
                </tr>
 
8
                <tr>
 
9
                        <td><label>$i18n.getString( "color" ) <em title="$i18n.getString( "required" )" class="required">*</em></label></td>
 
10
                        <td><input type="text" id="color" name="colorField" readonly=true style="width:20em;background:#$legend.color" value="$legend.color"/>
 
11
                        <a href="javascript:TCP.popup(document.getElementById('color'))">
 
12
                                 <img width="15" height="13" border="0" src="images/sel.gif"></a></td>
 
13
                </tr>
 
14
                <tr>
 
15
                        <td><label>$i18n.getString( "min" ) <em title="$i18n.getString( "required" )" class="required">*</em></label></td>
 
16
                        <td><input type="text" id="min" name="minField" style="width:20em" value="$legend.min"/></td>
 
17
                </tr>
 
18
                <tr>
 
19
                        <td><label>$i18n.getString( "max" ) <em title="$i18n.getString( "required" )" class="required">*</em></label></td>
 
20
                        <td><input type="text" id="max" name="maxField" style="width:20em" value="$legend.max" #if($legend.autoCreateMax==1) disabled=true #end/>
 
21
                        <input type="hidden" name="autoCreateMax" id="autoCreateMaxId"/>
 
22
                        <input type="checkbox" id="automax" #if($legend.autoCreateMax==1) checked=true  #end onclick="javascript:check('automax','max');"/>&nbsp;&nbsp;$i18n.getString( "auto_create_max" )
 
23
                        </td>
 
24
                </tr>
 
25
        <script>
 
26
                        function check(checkBoxId, otherInputId){
 
27
                                var check = document.getElementById(checkBoxId).checked;        
 
28
                        
 
29
                                if(check){
 
30
                                        document.getElementById('autoCreateMaxId').value = true;
 
31
                                        document.getElementById(otherInputId).disabled=true;
 
32
                                }else{
 
33
                                        document.getElementById('autoCreateMaxId').value = false;
 
34
                                        document.getElementById(otherInputId).disabled=false;
 
35
                                }
 
36
                        }
 
37
                </script>
 
38
                 <tr>
 
39
                        <td colspan="4">
 
40
                          <span id="message"></span>
 
41
                        </td>
 
42
         </tr>  
 
43
                 <tr>
 
44
        <td colspan="4">
 
45
          <input  type="submit" value="    $i18n.getString( 'Update' )    "/>
 
46
          <!--
 
47
            Cancel and go back to the overview
 
48
          -->
 
49
          <input type="button" name="cancel"
 
50
            onclick="window.location.href='listLegends.action'" value="$i18n.getString( "cancel" )">
 
51
        </td>
 
52
      </tr>             
 
53
</table>
 
54
</form>
 
 
b'\\ No newline at end of file'