2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
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 +--------------------------------------------------------------------+
10 {if $action eq 1 or $action eq 2 or $action eq 8}
11 {include file="CRM/Admin/Form/ParticipantStatusType.tpl"}
13 <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>
15 <div class="crm-block crm-content-block participant-status">
17 {* handle enable/disable actions*}
18 {include file="CRM/common/enableDisableApi.tpl"}
19 <table cellpadding="0" cellspacing="0" border="0" class="row-highlight">
20 <thead class="sticky">
21 <th>{ts}Label{/ts}</th>
22 <th>{ts}Name (Status ID){/ts}</th>
23 <th>{ts}Class{/ts}</th>
24 <th>{ts}Reserved?{/ts}</th>
25 <th>{ts}Active?{/ts}</th>
26 <th>{ts}Counted?{/ts}</th>
27 <th>{ts}Order{/ts}</th>
28 <th>{ts}Visibility{/ts}</th>
31 {foreach from=$rows item=row}
32 <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}">
33 <td class="crmf-label crm-editable" data-field="label">{$row.label}</td>
34 <td class="crmf-name">{$row.name} ({$row.id})</td>
35 <td class="crmf-class {if !$row.is_reserved} crm-editable {/if}" data-type="select">{$row.class}</td>
36 <td class="center crmf-is_reserved">{if $row.is_reserved}<img src="{$config->resourceBase}i/check.gif" alt="{ts}Reserved{/ts}" />{/if}</td>
37 <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>
38 <td class="center crmf-is_counted">{if $row.is_counted} <img src="{$config->resourceBase}i/check.gif" alt="{ts}Counted{/ts}" />{/if}</td>
39 <td class="crmf-weight">{$row.weight}</td>
40 <td class="crmf-visibility">{$row.visibility}</td>
41 <td>{$row.action|replace:'xx':$row.id}</td>
47 {if $action ne 1 and $action ne 2}
48 <div class="action-link">
49 {crmButton q="action=add&reset=1" icon="plus-circle"}{ts}Add Participant Status{/ts}{/crmButton}
50 {crmButton p="civicrm/admin" q="reset=1" class="cancel" icon="times"}{ts}Done{/ts}{/crmButton}