~dhis2-devs-core/dhis2/dhis2-patient-tz

« back to all changes in this revision

Viewing changes to local/tz/dhis-web-maintenance-patient-tz/src/main/webapp/dhis-web-maintenance-patient/updateRelationshipTypeForm.vm

  • Committer: John Francis Mukulu
  • Date: 2011-08-09 06:36:18 UTC
  • mfrom: (4244.1.21 dhis2)
  • Revision ID: john.f.mukulu@gmail.com-20110809063618-wad1pcc9fd1mnc6k
[merge]

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<script>
2
 
        jQuery(document).ready( function(){
3
 
                
4
 
                jQuery('aIsToB').focus();
5
 
                        
6
 
                validation( 'updateRelationshipTypeForm', function(form){
7
 
                        validateUpdateRelationshipType();
8
 
                }); 
9
 
                
10
 
        });             
11
 
</script>
12
 
 
13
 
<h3>$i18n.getString( "update_relationship_type" )</h3>
14
 
 
15
 
<form id="updateRelationshipTypeForm" name="updateRelationshipTypeForm" action="updateRelationshipType.action" method="post">
16
 
 
17
 
<div style="display:inline">
18
 
        <input type="hidden" id="id" name="id" value="$relationshipType.id"/>
19
 
</div>
20
 
  
21
 
<table id="detailsList">
22
 
    <thead>
23
 
      <tr><th colspan="2">$i18n.getString( "relationship_type_details" )</th></tr>
24
 
    </thead>
25
 
        
26
 
    <tbody>
27
 
                <tr>
28
 
                        <td>$i18n.getString( "a_is_to_b" ) <em title="$i18n.getString( 'required' )" class="required">*</em></td>
29
 
                        <td><input type="text" id="aIsToB" name="aIsToB" value="$encoder.htmlEncode( $relationshipType.aIsToB )" style="width:30em" class="{validate:{required:true,rangelength:[2,160]}}"/></td>
30
 
                </tr>   
31
 
                <tr>
32
 
                        <td>$i18n.getString( "b_is_to_a" ) <em title="$i18n.getString( 'required' )" class="required">*</em></td>
33
 
                        <td><input type="text" id="bIsToA" name="bIsToA" value="$encoder.htmlEncode( $relationshipType.bIsToA )" style="width:30em" class="{validate:{required:true,rangelength:[2,160]}}"/></td>
34
 
                </tr>
35
 
                <tr>
36
 
                        <td><label>$i18n.getString( "description" ) <em title="$i18n.getString( 'required' )" class="required">*</em></label></td>
37
 
                        <td><input type="text" id="description" name="description" value="$encoder.htmlEncode( $relationshipType.description )" style="width:30em" class="{validate:{required:true,rangelength:[2,160]}}"/></td>
38
 
                </tr>       
39
 
                <tr>
40
 
                        <td colspan="2" style="height:15px"></td>
41
 
                </tr>
42
 
    </tbody>
43
 
  </table>  
44
 
 
45
 
<p>
46
 
    <input type="submit" value="$i18n.getString( 'update' )" style="width:10em"/>
47
 
    <input type="button" value="$i18n.getString( 'cancel' )" onclick="window.location.href='relationshipType.action'" style="width:10em"/>
48
 
</p>
49
 
 
50
 
</form>