62933949 |
1 | {* |
2 | +--------------------------------------------------------------------+ |
39de6fd5 |
3 | | CiviCRM version 4.6 | |
62933949 |
4 | +--------------------------------------------------------------------+ |
5 | | Copyright CiviCRM LLC (c) 2004-2014 | |
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="crm-block crm-form-block crm-event-manage-repeat-form-block"> |
27 | {include file="CRM/Core/Form/RecurringEntity.tpl"} |
28 | {if $rows} |
29 | <div id="event_status_id" class="crm-block crm-manage-events crm-accordion-wrapper"> |
431b0ca8 |
30 | <div class="crm-accordion-header">{ts}Connected Repeating Events{/ts}</div> |
62933949 |
31 | <div class="crm-accordion-body"> |
32 | {strip} |
33 | {include file="CRM/common/jsortable.tpl"} |
34 | <table id="options" class="display"> |
35 | <thead> |
36 | <tr> |
37 | <th>{ts}Event{/ts}</th> |
38 | <th>{ts}Public?{/ts}</th> |
39 | <th>{ts}Starts{/ts}</th> |
40 | <th>{ts}Ends{/ts}</th> |
41 | <th>{ts}Active?{/ts}</th> |
42 | <th>{ts}Event Link{/ts}</th> |
43 | <th class="hiddenElement"></th> |
44 | <th class="hiddenElement"></th> |
45 | </tr> |
46 | </thead> |
47 | {foreach from=$rows key=keys item=row} |
48 | {if $keys neq 'tab'} |
49 | {if $currentEventId eq $row.id} |
431b0ca8 |
50 | {assign var="highlight" value=" status bold"} |
62933949 |
51 | {else} |
52 | {assign var="highlight" value=""} |
53 | {/if} |
54 | <tr id="row_{$row.id}" class="{if NOT $row.is_active} disabled{/if}"> |
55 | <td class="crm-event_{$row.id}{$highlight}"> |
56 | <a href="{crmURL p='civicrm/event/info' q="id=`$row.id`&reset=1"}" |
57 | title="{ts}View event info page{/ts}" class="bold">{$row.title}</a> ({ts}ID:{/ts} {$row.id}) |
58 | </td> |
59 | <td class="crm-event-is_public{$highlight}">{if $row.is_public eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td> |
60 | <td class="crm-event-start_date{$highlight}">{$row.start_date|crmDate:"%b %d, %Y %l:%M %P"}</td> |
61 | <td class="crm-event-end_date{$highlight}">{$row.end_date|crmDate:"%b %d, %Y %l:%M %P"}</td> |
62 | <td class="crm-event_status{$highlight}" id="row_{$row.id}_status"> |
63 | {if $row.is_active eq 1}{ts}Yes{/ts} {else} {ts}No{/ts} {/if} |
64 | </td> |
65 | <td class="{$highlight}"> |
66 | <a href="{crmURL p="civicrm/event/manage/settings" q="reset=1&action=update&id=`$row.id`"}">Manage Event</a> |
67 | </td> |
68 | <td class="crm-event-start_date hiddenElement">{$row.start_date|crmDate}</td> |
69 | <td class="crm-event-end_date hiddenElement">{$row.end_date|crmDate}</td> |
70 | </tr> |
71 | {/if} |
72 | {/foreach} |
73 | </table> |
74 | {include file="CRM/common/pager.tpl" location="bottom"} |
75 | {/strip} |
76 | </div> |
77 | </div> |
78 | {/if} |
a83e7558 |
79 | </div> |