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