CRM-14978 - add pop-up link to edit participant statuses from event title and setting...
authorDave Greenberg <dave@civicrm.org>
Mon, 21 Jul 2014 23:57:40 +0000 (16:57 -0700)
committerDave Greenberg <dave@civicrm.org>
Mon, 21 Jul 2014 23:57:40 +0000 (16:57 -0700)
----------------------------------------
* CRM-14978:
  https://issues.civicrm.org/jira/browse/CRM-14978

templates/CRM/Event/Form/ManageEvent/EventInfo.hlp
templates/CRM/Event/Form/ManageEvent/EventInfo.tpl

index bbf1cd5748bf08265daca6d0f60c0874b8c11bd0..712c42b102308c9b80c9fcbcb142a7eccba605c8 100644 (file)
@@ -77,7 +77,7 @@
 <p>{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}</p>
 <p>{ts}Otherwise, the registration link is hidden and the &quot;Event Full Message&quot' 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}</p>
 {/htxt}
index a0eb361213b0ba0df900cb35ff8811b65b95af5f..c524e4709945c7223924790ab396c15080840122 100644 (file)
         <td>{include file="CRM/common/jcalendar.tpl" elementName=end_date}</td>
       </tr>
     {/if}
+    {capture assign=participantStatusURL}{crmURL p='civicrm/admin/participant_status' q="reset=1"}{/capture} 
     <tr class="crm-event-manage-eventinfo-form-block-max_participants">
-      <td class="label">{$form.max_participants.label} {help id="id-max_participants" waitlist=$waitlist}</td>
-      <td>{$form.max_participants.html|crmAddClass:four}</td>
+      <td class="label">{$form.max_participants.label}</td>
+      <td>
+        {$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} 
+          <a class="crm-option-edit-link crm-hover-button" title="{ts}Edit Participant Status Options{/ts}" href="{crmURL p='civicrm/admin/participant_status' q='reset=1'}"><span class="icon edit-icon"> </span></a>
+        {/if}
+      </td>
     </tr>
     <tr id="id-waitlist" class="crm-event-manage-eventinfo-form-block-has_waitlist">
       {if $waitlist}
     </tr>
     <tr class="crm-event-manage-eventinfo-form-block-is_public">
       <td>&nbsp;</td>
-      <td>{$form.is_public.html} {$form.is_public.label}{help id="id-is_public"}</td>
+      <td>{$form.is_public.html} {$form.is_public.label} {help id="id-is_public"}</td>
     </tr>
     <tr class="crm-event-manage-eventinfo-form-block-is_share">
       <td>&nbsp;</td>