@@ -211,44 +211,45 @@ $this->headTitle($this->translate('Activities')); ?>
211211 </td>
212212 </tr>
213213 <?php endif ; ?>
214- <?php foreach ($ activity ->getSignUps () as $ signup ): ?>
215-
216- <?php if (($ signup instanceof Activity \Model \ExternalActivitySignup) || $ this ->acl ('activity_acl ' )->isAllowed ('activitySignup ' , 'view ' )): ?>
217- <tr>
218- <td><?= $ this ->acl ('activity_acl ' )->isAllowed ('activitySignup ' , 'view ' ) || $ activity ->getDisplaySubscribedNumber () ? $ i : '' ?> </td>
219- <td><?= $ this ->escapeHtml ($ signup ->getFullName ()) ?> </td>
220- <?php foreach ($ fields as $ field ): ?>
221- <?php foreach ($ signup ->getFieldValues () as $ fieldValue ): ?>
222- <?php if ($ fieldValue ->getField ()->getId () === $ field ->getId ()): ?>
223- <td>
224- <?php
225- switch ($ field ->getType ()) {
226- case 0 :
227- echo $ this ->escapeHtml ($ fieldValue ->getValue ());
228- break ;
229- case 1 :
230- echo $ this ->translate ($ fieldValue ->getValue ());
231- break ;
232- case 2 :
233- echo $ fieldValue ->getValue ();
234- break ;
235- case 3 :
236- if ($ lang === 'nl ' ) {
237- echo $ fieldValue ->getOption ()->getValue ();
238- } else {
239- echo $ fieldValue ->getOption ()->getValueEn ();
240- }
241- break ;
242- }
243- ?>
244- </td>
245- <?php endif ; ?>
214+ <?php if (!$ isArchived || $ this ->acl ('activity_acl ' )->isAllowed ('activitySignup ' , 'view ' )): ?>
215+ <?php foreach ($ activity ->getSignUps () as $ signup ): ?>
216+ <?php if (($ signup instanceof Activity \Model \ExternalActivitySignup) || $ this ->acl ('activity_acl ' )->isAllowed ('activitySignup ' , 'view ' )): ?>
217+ <tr>
218+ <td><?= $ this ->acl ('activity_acl ' )->isAllowed ('activitySignup ' , 'view ' ) || $ activity ->getDisplaySubscribedNumber () ? $ i : '' ?> </td>
219+ <td><?= $ this ->escapeHtml ($ signup ->getFullName ()) ?> </td>
220+ <?php foreach ($ fields as $ field ): ?>
221+ <?php foreach ($ signup ->getFieldValues () as $ fieldValue ): ?>
222+ <?php if ($ fieldValue ->getField ()->getId () === $ field ->getId ()): ?>
223+ <td>
224+ <?php
225+ switch ($ field ->getType ()) {
226+ case 0 :
227+ echo $ this ->escapeHtml ($ fieldValue ->getValue ());
228+ break ;
229+ case 1 :
230+ echo $ this ->translate ($ fieldValue ->getValue ());
231+ break ;
232+ case 2 :
233+ echo $ fieldValue ->getValue ();
234+ break ;
235+ case 3 :
236+ if ($ lang === 'nl ' ) {
237+ echo $ fieldValue ->getOption ()->getValue ();
238+ } else {
239+ echo $ fieldValue ->getOption ()->getValueEn ();
240+ }
241+ break ;
242+ }
243+ ?>
244+ </td>
245+ <?php endif ; ?>
246+ <?php endforeach ; ?>
246247 <?php endforeach ; ?>
247- <?php endforeach ; ? >
248- </tr >
249- <?php $ i = $ i + 1 ; ?>
250- <?php endif ; ?>
251- <?php endforeach ; ?>
248+ </tr >
249+ <?php $ i = $ i + 1 ; ? >
250+ <?php endif ; ?>
251+ <?php endforeach ; ?>
252+ <?php endif ; ?>
252253 </tbody>
253254 </table>
254255 </div>
0 commit comments