Merge pull request #15794 from KarinG/master
[civicrm-core.git] / templates / CRM / Admin / Page / ParticipantStatusType.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
1188c7a8 3 | Copyright CiviCRM LLC. All rights reserved. |
6a488035 4 | |
1188c7a8
TO
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 |
6a488035
TO
8 +--------------------------------------------------------------------+
9*}
10{if $action eq 1 or $action eq 2 or $action eq 8}
84403e23 11 {include file="CRM/Admin/Form/ParticipantStatusType.tpl"}
6a488035 12{else}
f6eedce7 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>
6a488035 14
036aa39d 15<div class="crm-block crm-content-block participant-status">
6a488035
TO
16 {strip}
17 {* handle enable/disable actions*}
4d17a233 18 {include file="CRM/common/enableDisableApi.tpl"}
036aa39d 19 <table cellpadding="0" cellspacing="0" border="0" class="row-highlight">
6a488035
TO
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>
7ecddde4 27 <th>{ts}Order{/ts}</th>
6a488035
TO
28 <th>{ts}Visibility{/ts}</th>
29 <th></th>
30 </thead>
31 {foreach from=$rows item=row}
54575181 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}">
b633f8bd
CW
33 <td class="crmf-label crm-editable" data-field="label">{$row.label}</td>
34 <td class="crmf-name">{$row.name} ({$row.id})</td>
faf95051 35 <td class="crmf-class {if !$row.is_reserved} crm-editable {/if}" data-type="select">{$row.class}</td>
22b67281 36 <td class="center crmf-is_reserved">{if $row.is_reserved}<img src="{$config->resourceBase}i/check.gif" alt="{ts}Reserved{/ts}" />{/if}</td>
b633f8bd 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>
22b67281 38 <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
39 <td class="crmf-weight">{$row.weight}</td>
40 <td class="crmf-visibility">{$row.visibility}</td>
6a488035
TO
41 <td>{$row.action|replace:'xx':$row.id}</td>
42 </tr>
43 {/foreach}
44 </table>
45 {/strip}
46
47 {if $action ne 1 and $action ne 2}
48 <div class="action-link">
80bc2820
AH
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}
6a488035
TO
51 </div>
52 {/if}
53</div>
232624b1 54{/if}