From 6664c929284c6033290b294d4dd9ca285b4cd71e Mon Sep 17 00:00:00 2001 From: Dave Greenberg Date: Mon, 21 Jul 2014 16:57:40 -0700 Subject: [PATCH] CRM-14978 - add pop-up link to edit participant statuses from event title and settings config form. ---------------------------------------- * CRM-14978: https://issues.civicrm.org/jira/browse/CRM-14978 --- templates/CRM/Event/Form/ManageEvent/EventInfo.hlp | 2 +- templates/CRM/Event/Form/ManageEvent/EventInfo.tpl | 13 ++++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/templates/CRM/Event/Form/ManageEvent/EventInfo.hlp b/templates/CRM/Event/Form/ManageEvent/EventInfo.hlp index bbf1cd5748..712c42b102 100644 --- a/templates/CRM/Event/Form/ManageEvent/EventInfo.hlp +++ b/templates/CRM/Event/Form/ManageEvent/EventInfo.hlp @@ -77,7 +77,7 @@

{if $params.waitlist} {ts}You may allow users to join a waitlist when the event is full (by checking the box below).{/ts} {else} - {ts}You may allow users to join a waitlist when the event is full. To enable this feature you must first enable the Participant Statuses used by the waitlist work-flow (Administer » CiviEvent » Participant Statuses). Then reload this form and check 'Offer a Waitlist?'.{/ts} + {ts}You may allow users to join a waitlist when the event is full. To enable this feature you must first enable the Participant Statuses used by the waitlist work-flow (click the pencil icon, or navigate to Administer » CiviEvent » Participant Statuses). Then reload this form and check 'Offer a Waitlist?'.{/ts} {/if}

{ts}Otherwise, the registration link is hidden and the "Event Full Message"' is displayed when the maximum number of registrations is reached. Only participants with status types marked as 'counted' are included when checking if the event is full.{/ts}

{/htxt} diff --git a/templates/CRM/Event/Form/ManageEvent/EventInfo.tpl b/templates/CRM/Event/Form/ManageEvent/EventInfo.tpl index a0eb361213..c524e47099 100644 --- a/templates/CRM/Event/Form/ManageEvent/EventInfo.tpl +++ b/templates/CRM/Event/Form/ManageEvent/EventInfo.tpl @@ -88,9 +88,16 @@ {include file="CRM/common/jcalendar.tpl" elementName=end_date} {/if} + {capture assign=participantStatusURL}{crmURL p='civicrm/admin/participant_status' q="reset=1"}{/capture} - {$form.max_participants.label} {help id="id-max_participants" waitlist=$waitlist} - {$form.max_participants.html|crmAddClass:four} + {$form.max_participants.label} + + {$form.max_participants.html|crmAddClass:four} {help id="id-max_participants" waitlist=$waitlist} + {if call_user_func(array('CRM_Core_Permission','check'), 'administer CiviCRM') } + {capture assign=participantStatusURL}{/capture} + + {/if} + {if $waitlist} @@ -115,7 +122,7 @@   - {$form.is_public.html} {$form.is_public.label}{help id="id-is_public"} + {$form.is_public.html} {$form.is_public.label} {help id="id-is_public"}   -- 2.25.1