CRM-16176 - schema + templates update - upgrade script missing
authorSamuel Vanhove <samuel@symbiotic.coop>
Mon, 27 Apr 2015 04:49:18 +0000 (00:49 -0400)
committerSudha Bisht <sudha.bisht@webaccessglobal.com>
Wed, 5 Aug 2015 09:39:24 +0000 (15:09 +0530)
CRM/Admin/Form/RelationshipType.php
templates/CRM/Admin/Form/RelationshipType.tpl
xml/schema/Contact/RelationshipType.xml

index 9e11ac238741782b7044229ed8a35098d1eb14a4..24dc46a4286508f4bbebd1abd42115932ff1e01e 100644 (file)
@@ -101,6 +101,9 @@ class CRM_Admin_Form_RelationshipType extends CRM_Admin_Form {
     if ($this->_action & CRM_Core_Action::VIEW) {
       $this->freeze();
     }
+
+    $this->assign('relationship_type_id', $this->_id);
+
   }
 
   /**
index f7a4cbe122b0f16898e1045800fec917c5e8ecaf..55519fc8bfda210d4d70541882e6f5edd997ee0c 100644 (file)
      {else}
       <table class="form-layout-compressed">
             <tr class="crm-relationship-type-form-block-label_a_b">
-                <td class="label">{$form.label_a_b.label}</td>
+                <td class="label">{$form.label_a_b.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_relationship_type' field='label_a_b' id=$relationship_type_id}{/if}</td>
                 <td>{$form.label_a_b.html}<br />
                 <span class="description">{ts}Label for the relationship from Contact A to Contact B. EXAMPLE: Contact A is 'Parent of' Contact B.{/ts}</span></td>
             </tr>
             <tr class="crm-relationship-type-form-block-label_b_a">
-                <td class="label">{$form.label_b_a.label}</td>
+                <td class="label">{$form.label_b_a.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_relationship_type' field='label_b_a' id=$relationship_type_id}{/if}</td>
                 <td>{$form.label_b_a.html}<br />
                 <span class="description">{ts}Label for the relationship from Contact B to Contact A. EXAMPLE: Contact B is 'Child of' Contact A. You may leave this blank for relationships where the name is the same in both directions (e.g. Spouse).{/ts}</span></td>
             </tr>
@@ -54,7 +54,7 @@
                 <td>{$form.contact_types_b.html}</td>
             </tr>
             <tr class="crm-relationship-type-form-block-description">
-                <td class="label">{$form.description.label}</td>
+                <td class="label">{$form.description.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_relationship_type' field='description' id=$relationship_type_id}{/if}</td>
                 <td>{$form.description.html}</td>
             </tr>
             <tr class="crm-relationship-type-form-block-is_active">
index 705a265a3c3c8f39733f4e2bd4fc2eabd543879e..f530b032118a1a73983bcf3c934543239f227652 100644 (file)
@@ -34,6 +34,7 @@
     <length>64</length>
     <comment>label for relationship of contact_a to contact_b.</comment>
     <add>3.0</add>
+    <localizable>true</localizable>
   </field>
   <field>
     <name>name_b_a</name>
@@ -50,6 +51,7 @@
     <length>64</length>
     <comment>Optional label for relationship of contact_b to contact_a.</comment>
     <add>3.0</add>
+    <localizable>true</localizable>
   </field>
   <field>
     <name>description</name>
@@ -58,6 +60,7 @@
     <length>255</length>
     <comment>Optional verbose description of the relationship type.</comment>
     <add>1.1</add>
+    <localizable>true</localizable>
   </field>
   <field>
     <name>contact_type_a</name>