Merge pull request #19737 from sunilpawar/show_inactive_active_case_role
[civicrm-core.git] / templates / CRM / Admin / Page / ParticipantStatusType.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
4 | |
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 +--------------------------------------------------------------------+
9 *}
10 {if $action eq 1 or $action eq 2 or $action eq 8}
11 {include file="CRM/Admin/Form/ParticipantStatusType.tpl"}
12 {else}
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>
14
15 <div class="crm-block crm-content-block participant-status">
16 {strip}
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>
29 <th></th>
30 </thead>
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"}{if !empty($row.class)} {$row.class}{/if}{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 empty($row.is_reserved)} crm-editable {/if}" data-type="select">{$row.class}</td>
36 <td class="center crmf-is_reserved">{icon condition=$row.is_reserved}{ts}Reserved{/ts}{/icon}</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">{icon condition=$row.is_counted}{ts}Counted{/ts}{/icon}</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>
42 </tr>
43 {/foreach}
44 </table>
45 {/strip}
46
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}
51 </div>
52 {/if}
53 </div>
54 {/if}