Merge pull request #16574 from civicrm/5.23
[civicrm-core.git] / templates / CRM / Activity / Page / UserDashboard.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
4 | |
5 | This work is published under the GNU AGPLv3 license with some |
6 | permitted exceptions and without any warranty. For full license |
7 | and copyright information, see https://civicrm.org/licensing |
8 +--------------------------------------------------------------------+
9 *}
10 {crmRegion name="crm-activity-userdashboard-pre"}
11 {/crmRegion}
12 <div class="view-content">
13 {if $activity_rows}
14 {strip}
15 <div class="description">
16 {ts}Click on the activity subject for more information.{/ts}
17 </div>
18 <table class="selector">
19 <tr class="columnheader">
20 <th>{ts}Type{/ts}</th>
21 <th>{ts}Subject{/ts}</th>
22 <th>{ts}Added by{/ts}</th>
23 <th>{ts}With{/ts}</th>
24 <th>{ts}Date{/ts}</th>
25 <th>{ts}Status{/ts}</th>
26 </tr>
27 {counter start=0 skip=1 print=false}
28 {capture assign="no_subject"}{ts}(no subject){/ts}{/capture}
29 {foreach from=$activity_rows item=row}
30 <tr id='rowid{$row.activity_id}' class=" crm-activity-id_{$row.activity_id} {cycle values="odd-row,even-row"}">
31 <td class="crm-activity_type">{$row.activity_type}</td>
32 <td class="crm-activity_subject"><a href="{crmURL p='civicrm/activity'
33 q="action=view&reset=1&id=`$row.activity_id`&cid=`$row.contact_id`&context=dashboard"}">{$row.activity_subject|default:$no_subject}</a></td>
34 <td class="crm-source_contact_name">
35 <a href="{crmURL p="civicrm/contact/view" q="reset=1&cid=`$row.source_contact_id`"}">{$row.source_contact_name}</a>;
36 </td>
37 <td class="crm-target_contact_name">
38 {foreach from=$row.target_contact_name item=name key=cid}
39 <a href="{crmURL p="civicrm/contact/view" q="reset=1&cid=`$cid`"}">{$name}</a>;
40 {/foreach}
41 </td>
42 <td class="crm-activity_date_time">{$row.activity_date_time|crmDate}</td>
43 <td class="crm-activity_status">{$row.activity_status}</td>
44 </tr>
45 {/foreach}
46 </table>
47 {/strip}
48 {else}
49 <div class="messages status no-popup">
50 <div class="icon inform-icon"></div>&nbsp;
51 {ts}There are no scheduled activities assigned to you.{/ts}
52
53 </div>
54 {/if}
55 </div>
56 {crmRegion name="crm-activity-userdashboard-post"}
57 {/crmRegion}