Commit | Line | Data |
---|---|---|
fee0416f AH |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
3 | | CiviCRM version 5 | | |
4 | +--------------------------------------------------------------------+ | |
6b83d5bd | 5 | | Copyright CiviCRM LLC (c) 2004-2019 | |
fee0416f AH |
6 | +--------------------------------------------------------------------+ |
7 | | This file is a part of CiviCRM. | | |
8 | | | | |
9 | | CiviCRM is free software; you can copy, modify, and distribute it | | |
10 | | under the terms of the GNU Affero General Public License | | |
11 | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | | |
12 | | | | |
13 | | CiviCRM is distributed in the hope that it will be useful, but | | |
14 | | WITHOUT ANY WARRANTY; without even the implied warranty of | | |
15 | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | | |
16 | | See the GNU Affero General Public License for more details. | | |
17 | | | | |
18 | | You should have received a copy of the GNU Affero General Public | | |
19 | | License and the CiviCRM Licensing Exception along | | |
20 | | with this program; if not, contact CiviCRM LLC | | |
21 | | at info[AT]civicrm[DOT]org. If you have questions about the | | |
22 | | GNU Affero General Public License or the licensing of CiviCRM, | | |
23 | | see the CiviCRM license FAQ at http://civicrm.org/licensing | | |
24 | +--------------------------------------------------------------------+ | |
25 | *} | |
26 | {* Partial for displaying permissions associated with a relationship *} | |
27 | ||
3097904a AH |
28 | {if $permType eq 1} |
29 | {include file="CRM/Contact/Page/View/RelationshipPerm.tpl" permType=2 displayText=false} | |
fee0416f AH |
30 | {/if} |
31 | ||
3097904a | 32 | {if $permDisplayName and $otherDisplayName} |
fee0416f AH |
33 | {capture assign="permText"} |
34 | {if $permType eq 1} | |
3097904a | 35 | {ts 1=$permDisplayName 2=$otherDisplayName}%2 can be edited by %1.{/ts} |
fee0416f | 36 | {else} |
3097904a | 37 | {ts 1=$permDisplayName 2=$otherDisplayName}%2 can be viewed by %1.{/ts} |
fee0416f AH |
38 | {/if} |
39 | {/capture} | |
3097904a | 40 | {/if} |
fee0416f AH |
41 | |
42 | <span class="fa-stack" title="{$permText}"> | |
5484cc43 | 43 | <i class="crm-i fa-square fa-stack-2x {if $permType eq 1}crm-i-blue{else}crm-i-green{/if}"></i> |
fee0416f AH |
44 | <i class="crm-i {if $permType eq 1}fa-pencil{else}fa-eye{/if} fa-inverse fa-stack-1x"></i> |
45 | </span> | |
3097904a | 46 | |
c83c5e51 AH |
47 | {* Used for viewing a relationship *} |
48 | {if $displayText} | |
49 | {if $permType eq 1} | |
50 | {ts 1=$permDisplayName 2=$otherDisplayName}<strong>%1</strong> can view and update information about <strong>%2</strong>.{/ts} | |
51 | {else} | |
52 | {ts 1=$permDisplayName 2=$otherDisplayName}<strong>%1</strong> can view information about <strong>%2</strong>.{/ts} | |
53 | {/if} | |
54 | {/if} | |
55 | ||
56 | {* Used for legend on relationships tab *} | |
3097904a AH |
57 | {if $afterText} |
58 | {if $permType eq 1} | |
59 | {ts}This contact can be edited by the other.{/ts} | |
60 | {else} | |
61 | {ts}This contact can be viewed by the other.{/ts} | |
62 | {/if} | |
63 | {/if} |