EventInfo: use a title and localized status names
authorsystopia <endres@systopia.de>
Fri, 23 May 2014 12:59:21 +0000 (14:59 +0200)
committersystopia <endres@systopia.de>
Fri, 23 May 2014 12:59:21 +0000 (14:59 +0200)
CRM/Event/Page/EventInfo.php
templates/CRM/Event/Page/EventInfo.tpl

index 051aa758056024a95cb9262c8687e3ae5eb68b60..fd0f1786e2fcbc9adeb336261c9c2734ac35dcad 100644 (file)
@@ -219,8 +219,8 @@ class CRM_Event_Page_EventInfo extends CRM_Core_Page {
     if (CRM_Core_Permission::check('view event participants') &&
       CRM_Core_Permission::check('view all contacts')
     ) {
-      $statusTypes = CRM_Event_PseudoConstant::participantStatus(NULL, 'is_counted = 1');
-      $statusTypesPending = CRM_Event_PseudoConstant::participantStatus(NULL, 'is_counted = 0');
+      $statusTypes = CRM_Event_PseudoConstant::participantStatus(NULL, 'is_counted = 1', 'label');
+      $statusTypesPending = CRM_Event_PseudoConstant::participantStatus(NULL, 'is_counted = 0', 'label');
       $findParticipants['statusCounted'] = implode(', ', array_values($statusTypes));
       $findParticipants['statusNotCounted'] = implode(', ', array_values($statusTypesPending));
       $this->assign('findParticipants', $findParticipants);
index 716cae9155ce7924987bcafef56100ab96f5f6ac..47fa762740146ee2c97baba276fb9bd811df2e02 100644 (file)
              <div class="crm-participant-list-inner">
                <ul>
                     {if $findParticipants.statusCounted}
-                <li><a class="crm-participant-counted" href="{crmURL p='civicrm/event/search' q="reset=1&force=1&event=`$event.id`&status=true"}">{$findParticipants.statusCounted|replace:'/':', '}</a></li>
+                <li><a class="crm-participant-counted" href="{crmURL p='civicrm/event/search' q="reset=1&force=1&event=`$event.id`&status=true"}"><b>{ts}List counted participants{/ts}</b> ({$findParticipants.statusCounted|replace:'/':', '})</a></li>
               {/if}
 
                 {if $findParticipants.statusNotCounted}
-            <li><a class="crm-participant-not-counted" href="{crmURL p='civicrm/event/search' q="reset=1&force=1&event=`$event.id`&status=false"}">{$findParticipants.statusNotCounted|replace:'/':', '}</a>
+            <li><a class="crm-participant-not-counted" href="{crmURL p='civicrm/event/search' q="reset=1&force=1&event=`$event.id`&status=false"}"><b>{ts}List uncounted participants{/ts}</b> ({$findParticipants.statusNotCounted|replace:'/':', '})</a>
             </li>
               {/if}
                 {if $participantListingURL}