Skip to content
Snippets Groups Projects

Print all certificates

Merged xavi-xaloc requested to merge xavi-xaloc/certificates:main into main
1 unresolved thread
  • We’ve created two permissions:
    • Print all Certificates
    • Print Own Certificate (keeps checking id match and attended status)
  • We’ve created a searchTask to allow printing multiple certificates from participant search. That task checks “Print all Certificates” permission and redirects to a class that currently just downloads certificates but that could be modified, for instance, in order to show a form to allow users to choose one of several templates in case none is defined in settings.
  • Context is now a two-dimensional array, given that now the extension would allow to download several certificates at once.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
45 'is_single_mode' => TRUE,
46 'title_single_mode' => E::ts('Print Certificate'),
47 'name' => E::ts('Print Certificate'),
48 'key' => 'move',
49 'weight' => 130,
50 ];
51 }
52 }
53
54 /**
55 * Define Certificates permissions
56 */
57 function certificates_civicrm_permission(&$permissions) {
58 $prefix = 'Certificates: ';
59 $permissions['download participant certificates'] = $prefix . ts('Print all Certificates');
60 $permissions['download own certificate'] = $prefix . ts('Print own Certificate');
  • Can you pass this through civilint to make sure formatting follows civicrm standards?

  • xavi-xaloc added 1 commit

    added 1 commit

    Compare with previous version

  • mattwire mentioned in commit e762b4a2

    mentioned in commit e762b4a2

  • merged

  • Please register or sign in to reply
    Loading