diff --git a/templates/CRM/Contact/Form/Relationship.tpl b/templates/CRM/Contact/Form/Relationship.tpl index 37f9a5a6271b..f1fc994faa89 100644 --- a/templates/CRM/Contact/Form/Relationship.tpl +++ b/templates/CRM/Contact/Form/Relationship.tpl @@ -9,65 +9,6 @@ *} {* this template is used for adding/editing/viewing relationships *} - {if $action eq 4 } {* action = view *} -
{$row.relation} | -{$row.name} | -
{ts}Current Employee?{/ts} | {ts}Yes{/ts} |
{ts}Start Date{/ts} | {$row.start_date|crmDate} |
{ts}End Date{/ts} | {$row.end_date|crmDate} |
{ts}Description{/ts} | {$row.description} |
{ts}Note{/ts} | {$rec} |
- |
- {if $row.is_permission_a_b or $row.is_permission_b_a}
- {if $row.is_permission_a_b}
-
- {if $row.rtype EQ 'a_b' AND $is_contact_id_a}
- {include file="CRM/Contact/Page/View/RelationshipPerm.tpl" permType=$row.is_permission_a_b permDisplayName=$displayName otherDisplayName=$row.display_name displayText=true}
- {else}
- {include file="CRM/Contact/Page/View/RelationshipPerm.tpl" permType=$row.is_permission_a_b otherDisplayName=$displayName permDisplayName=$row.display_name displayText=true}
- {/if}
-
- {/if}
- {if $row.is_permission_b_a}
-
- {if $row.rtype EQ 'a_b' AND $is_contact_id_a}
- {include file="CRM/Contact/Page/View/RelationshipPerm.tpl" permType=$row.is_permission_b_a otherDisplayName=$displayName permDisplayName=$row.display_name displayText=true}
- {else}
- {include file="CRM/Contact/Page/View/RelationshipPerm.tpl" permType=$row.is_permission_b_a permDisplayName=$displayName otherDisplayName=$row.display_name displayText=true}
- {/if}
-
- {/if}
- {else}
- {ts}None{/ts}
- {/if}
- |
-
{ts}Status{/ts} | {if $row.is_active}{ts}Enabled{/ts}{else}{ts}Disabled{/ts}{/if} |
{$row.relation} | +{$row.name} | +
{ts}Current Employee?{/ts} | {ts}Yes{/ts} |
{ts}Start Date{/ts} | {$row.start_date|crmDate} |
{ts}End Date{/ts} | {$row.end_date|crmDate} |
{ts}Description{/ts} | {$row.description} |
{ts}Note{/ts} | {$rec} |
+ |
+ {if $row.is_permission_a_b or $row.is_permission_b_a}
+ {if $row.is_permission_a_b}
+
+ {if $row.rtype EQ 'a_b' AND $is_contact_id_a}
+ {include file="CRM/Contact/Page/View/RelationshipPerm.tpl" permType=$row.is_permission_a_b permDisplayName=$displayName otherDisplayName=$row.display_name displayText=true}
+ {else}
+ {include file="CRM/Contact/Page/View/RelationshipPerm.tpl" permType=$row.is_permission_a_b otherDisplayName=$displayName permDisplayName=$row.display_name displayText=true}
+ {/if}
+
+ {/if}
+ {if $row.is_permission_b_a}
+
+ {if $row.rtype EQ 'a_b' AND $is_contact_id_a}
+ {include file="CRM/Contact/Page/View/RelationshipPerm.tpl" permType=$row.is_permission_b_a otherDisplayName=$displayName permDisplayName=$row.display_name displayText=true}
+ {else}
+ {include file="CRM/Contact/Page/View/RelationshipPerm.tpl" permType=$row.is_permission_b_a permDisplayName=$displayName otherDisplayName=$row.display_name displayText=true}
+ {/if}
+
+ {/if}
+ {else}
+ {ts}None{/ts}
+ {/if}
+ |
+
{ts}Status{/ts} | {if $row.is_active}{ts}Enabled{/ts}{else}{ts}Disabled{/ts}{/if} |