CRM-15603 - Standardize 'None found' messages
[civicrm-core.git] / templates / CRM / Campaign / Page / Campaign.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
819d0d41 3 | CiviCRM version 4.5 |
6a488035 4 +--------------------------------------------------------------------+
819d0d41 5 | Copyright CiviCRM LLC (c) 2004-2014 |
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*}
26{* this template is used for displaying survey information *}
27{if $campaigns}
28 <div class="action-link">
29 <a href="{$addCampaignUrl}" class="button"><span>&raquo; {ts}Add Campaign{/ts}</span></a>
30 </div>
4d17a233
CW
31 {include file="CRM/common/enableDisableApi.tpl"}
32 {include file="CRM/common/crmeditable.tpl"}
6a488035
TO
33 <div id="campaignType">
34 <table id="options" class="display">
35 <thead>
36 <tr>
37 <th>{ts}Campaign Title{/ts}</th>
38 <th>{ts}Description{/ts}</th>
39 <th>{ts}Start Date{/ts}</th>
40 <th>{ts}End Date{/ts}</th>
41 <th>{ts}Campaign Type{/ts}</th>
42 <th>{ts}Status{/ts}</th>
43 <th>{ts}Active?{/ts}</th>
44 <th id="nosort"></th>
45 </tr>
46 </thead>
47 {foreach from=$campaigns item=campaign}
4d17a233
CW
48 <tr id="campaign-{$campaign.campaign_id}" class="crm-entity {if $campaign.is_active neq 1} disabled{/if}">
49 <td class="crm-editable" data-field="title">{$campaign.title}</td>
6a488035
TO
50 <td>{$campaign.description}</td>
51 <td>{$campaign.start_date}</td>
52 <td>{$campaign.end_date}</td>
53 <td>{$campaign.campaign_type_id}</td>
54 <td>{$campaign.status_id}</td>
55 <td id="row_{$campaign.id}_status">{if $campaign.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
56 <td>{$campaign.action}</td>
57 </tr>
58 {/foreach}
59 </table>
60 </div>
61
62{else}
63 <div class="messages status no-popup">
64 <div class="icon inform-icon"></div> &nbsp;
1eba7e53 65 {ts}None found.{/ts}
6a488035
TO
66 </div>
67{/if}
68<div class="action-link">
69 <a href="{$addCampaignUrl}" class="button"><span>&raquo; {ts}Add Campaign{/ts}</span></a>
70</div>