2
jQuery(document).ready( function(){
4
jQuery('aIsToB').focus();
6
validation( 'updateRelationshipTypeForm', function(form){
7
validateUpdateRelationshipType();
13
<h3>$i18n.getString( "update_relationship_type" )</h3>
15
<form id="updateRelationshipTypeForm" name="updateRelationshipTypeForm" action="updateRelationshipType.action" method="post">
17
<div style="display:inline">
18
<input type="hidden" id="id" name="id" value="$relationshipType.id"/>
21
<table id="detailsList">
23
<tr><th colspan="2">$i18n.getString( "relationship_type_details" )</th></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>
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>
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>
40
<td colspan="2" style="height:15px"></td>
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"/>