Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
justinfreeman (Agileware)
Core
Commits
db9e73fe
Commit
db9e73fe
authored
11 years ago
by
Kurund Jalmi
Browse files
Options
Downloads
Plain Diff
Merge pull request #1183 from davecivicrm/CRM-12735
Crm 12735
parents
df692b28
8ccfdb30
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/CRM/Contact/Page/View/Summary.tpl
+24
-23
24 additions, 23 deletions
templates/CRM/Contact/Page/View/Summary.tpl
with
24 additions
and
23 deletions
templates/CRM/Contact/Page/View/Summary.tpl
+
24
−
23
View file @
db9e73fe
...
...
@@ -41,33 +41,34 @@
<div
class=
"crm-actions-ribbon"
>
<ul
id=
"actions"
>
{
assign
var
=
'urlParams'
value
=
"reset=1"
}
{
if
$searchKey
}
{
assign
var
=
'urlParams'
value
=
$urlParams
|
cat
:
"&key=$searchKey"
}
{/
if
}
{
if
$context
}
{
assign
var
=
'urlParams'
value
=
$urlParams
|
cat
:
"&context=$context"
}
{/
if
}
{* Include the Actions and Edit buttons if user has 'edit' permission and contact is NOT in trash. *}
{
if
$permission
EQ
'edit'
and
!
$isDeleted
}
{
if
call_user_func
(
array
(
'CRM_Core_Permission'
,
'check'
),
'access CiviCRM'
)
}
<li
class=
"crm-contact-activity crm-summary-block"
>
{
include
file
=
"CRM/Contact/Page/Inline/Actions.tpl"
}
</li>
{
assign
var
=
'urlParams'
value
=
"reset=1"
}
{
if
$searchKey
}
{
assign
var
=
'urlParams'
value
=
$urlParams
|
cat
:
"&key=$searchKey"
}
{/
if
}
{
if
call_user_func
(
array
(
'CRM_Core_Permission'
,
'check'
),
'edit my contact'
)
}
<li>
{
assign
var
=
'editParams'
value
=
$urlParams
|
cat
:
"&action=update&cid=$contactId"
}
<a
href=
"
{
crmURL
p
=
'civicrm/contact/add'
q
=
$editParams
}
"
class=
"edit button"
title=
"
{
ts
}
Edit
{/
ts
}
"
>
<span><div
class=
"icon edit-icon"
></div>
{
ts
}
Edit
{/
ts
}
</span>
</a>
</li>
{
if
$context
}
{
assign
var
=
'urlParams'
value
=
$urlParams
|
cat
:
"&context=$context"
}
{/
if
}
{* CRM-12735 - Conditionally include the Actions and Edit buttons if contact is NOT in trash.*}
{
if
!
$isDeleted
}
{
if
call_user_func
(
array
(
'CRM_Core_Permission'
,
'check'
),
'access CiviCRM'
)
}
<li
class=
"crm-contact-activity crm-summary-block"
>
{
include
file
=
"CRM/Contact/Page/Inline/Actions.tpl"
}
</li>
{/
if
}
{* Include Edit button if contact has 'edit contacts' permission OR user is viewing their own contact AND has 'edit my contact' permission. *}
{
if
$permission
EQ
'edit'
&&
call_user_func
(
array
(
'CRM_Core_Permission'
,
'check'
),
'edit my contact'
)
}
<li>
{
assign
var
=
'editParams'
value
=
$urlParams
|
cat
:
"&action=update&cid=$contactId"
}
<a
href=
"
{
crmURL
p
=
'civicrm/contact/add'
q
=
$editParams
}
"
class=
"edit button"
title=
"
{
ts
}
Edit
{/
ts
}
"
>
<span><div
class=
"icon edit-icon"
></div>
{
ts
}
Edit
{/
ts
}
</span>
</a>
</li>
{/
if
}
{/
if
}
{* Check for permissions to provide Restore and Delete Permanently buttons for contacts that are in the trash. *}
{
if
(
call_user_func
(
array
(
'CRM_Core_Permission'
,
'check'
),
'access deleted contacts'
)
and
{* Check for permissions to provide Restore and Delete Permanently buttons for contacts that are in the trash. *}
{
if
(
call_user_func
(
array
(
'CRM_Core_Permission'
,
'check'
),
'access deleted contacts'
)
and
$is_deleted
)
}
<li
class=
"crm-contact-restore"
>
<a
href=
"
{
crmURL
p
=
'civicrm/contact/view/delete'
q
=
"reset=1&cid=$contactId&restore=1"
}
"
class=
"delete button"
title=
"
{
ts
}
Restore
{/
ts
}
"
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment