Commit | Line | Data |
---|---|---|
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 | *} | |
26 | {if $action eq 1 or $action eq 2 or $action eq 8} | |
84403e23 | 27 | {include file="CRM/Admin/Form/ParticipantStatusType.tpl"} |
6a488035 | 28 | {else} |
f6eedce7 | 29 | <div class="help">{ts}Manage event participant statuses below. Enable selected statuses to allow event waitlisting and/or participant approval.{/ts} {help id="id-disabled_statuses"}</div> |
6a488035 | 30 | |
036aa39d | 31 | <div class="crm-block crm-content-block participant-status"> |
6a488035 TO |
32 | {strip} |
33 | {* handle enable/disable actions*} | |
4d17a233 | 34 | {include file="CRM/common/enableDisableApi.tpl"} |
036aa39d | 35 | <table cellpadding="0" cellspacing="0" border="0" class="row-highlight"> |
6a488035 TO |
36 | <thead class="sticky"> |
37 | <th>{ts}Label{/ts}</th> | |
38 | <th>{ts}Name (Status ID){/ts}</th> | |
39 | <th>{ts}Class{/ts}</th> | |
40 | <th>{ts}Reserved?{/ts}</th> | |
41 | <th>{ts}Active?{/ts}</th> | |
42 | <th>{ts}Counted?{/ts}</th> | |
7ecddde4 | 43 | <th>{ts}Order{/ts}</th> |
6a488035 TO |
44 | <th>{ts}Visibility{/ts}</th> |
45 | <th></th> | |
46 | </thead> | |
47 | {foreach from=$rows item=row} | |
54575181 | 48 | <tr id="participant_status_type-{$row.id}" class="crm-entity crm-participant_{$row.id} {cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}"> |
b633f8bd CW |
49 | <td class="crmf-label crm-editable" data-field="label">{$row.label}</td> |
50 | <td class="crmf-name">{$row.name} ({$row.id})</td> | |
faf95051 | 51 | <td class="crmf-class {if !$row.is_reserved} crm-editable {/if}" data-type="select">{$row.class}</td> |
22b67281 | 52 | <td class="center crmf-is_reserved">{if $row.is_reserved}<img src="{$config->resourceBase}i/check.gif" alt="{ts}Reserved{/ts}" />{/if}</td> |
b633f8bd | 53 | <td id="row_{$row.id}_status" class="crmf-is_active">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td> |
22b67281 | 54 | <td class="center crmf-is_counted">{if $row.is_counted} <img src="{$config->resourceBase}i/check.gif" alt="{ts}Counted{/ts}" />{/if}</td> |
b633f8bd CW |
55 | <td class="crmf-weight">{$row.weight}</td> |
56 | <td class="crmf-visibility">{$row.visibility}</td> | |
6a488035 TO |
57 | <td>{$row.action|replace:'xx':$row.id}</td> |
58 | </tr> | |
59 | {/foreach} | |
60 | </table> | |
61 | {/strip} | |
62 | ||
63 | {if $action ne 1 and $action ne 2} | |
64 | <div class="action-link"> | |
80bc2820 AH |
65 | {crmButton q="action=add&reset=1" icon="plus-circle"}{ts}Add Participant Status{/ts}{/crmButton} |
66 | {crmButton p="civicrm/admin" q="reset=1" class="cancel" icon="times"}{ts}Done{/ts}{/crmButton} | |
6a488035 TO |
67 | </div> |
68 | {/if} | |
69 | </div> | |
232624b1 | 70 | {/if} |