Merge pull request #15698 from jitendrapurohit/fix-participant-fields
[civicrm-core.git] / templates / CRM / Activity / Page / UserDashboard.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
fee14197 3 | CiviCRM version 5 |
6a488035 4 +--------------------------------------------------------------------+
6b83d5bd 5 | Copyright CiviCRM LLC (c) 2004-2019 |
6a488035
TO
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*}
6b3ac136
C
26{crmRegion name="crm-activity-userdashboard-pre"}
27{/crmRegion}
6a488035
TO
28<div class="view-content">
29 {if $activity_rows}
30 {strip}
31 <div class="description">
32 {ts}Click on the activity subject for more information.{/ts}
33 </div>
34 <table class="selector">
35 <tr class="columnheader">
36 <th>{ts}Type{/ts}</th>
37 <th>{ts}Subject{/ts}</th>
38 <th>{ts}Added By{/ts}</th>
39 <th>{ts}With{/ts}</th>
40 <th>{ts}Date{/ts}</th>
41 <th>{ts}Status{/ts}</th>
42 </tr>
43 {counter start=0 skip=1 print=false}
44 {capture assign="no_subject"}{ts}(no subject){/ts}{/capture}
45 {foreach from=$activity_rows item=row}
46 <tr id='rowid{$row.activity_id}' class=" crm-activity-id_{$row.activity_id} {cycle values="odd-row,even-row"}">
47 <td class="crm-activity_type">{$row.activity_type}</td>
48 <td class="crm-activity_subject"><a href="{crmURL p='civicrm/activity'
49q="action=view&reset=1&id=`$row.activity_id`&cid=`$row.contact_id`&context=dashboard"}">{$row.activity_subject|default:$no_subject}</a></td>
50 <td class="crm-source_contact_name">
51 <a href="{crmURL p="civicrm/contact/view" q="reset=1&cid=`$row.source_contact_id`"}">{$row.source_contact_name}</a>;
52 </td>
53 <td class="crm-target_contact_name">
54 {foreach from=$row.target_contact_name item=name key=cid}
55 <a href="{crmURL p="civicrm/contact/view" q="reset=1&cid=`$cid`"}">{$name}</a>;
56 {/foreach}
57 </td>
58 <td class="crm-activity_date_time">{$row.activity_date_time|crmDate}</td>
59 <td class="crm-activity_status">{$row.activity_status}</td>
60 </tr>
61 {/foreach}
62 </table>
63 {/strip}
64 {else}
65 <div class="messages status no-popup">
66 <div class="icon inform-icon"></div>&nbsp;
67 {ts}There are no scheduled activities assigned to you.{/ts}
68
69 </div>
70 {/if}
71</div>
6b3ac136
C
72{crmRegion name="crm-activity-userdashboard-post"}
73{/crmRegion}