Pending Registrations Template

2024-12-18 - 14:20 | Version 1 |

Tailoring instructions:

The contents of the Pending Registrations report can be modified to report any fields collected on a customized UserRegistration form. Each formfield name is substituted with the similarly named token in the row definition: For example, if your User Registration form includes the Organization field, it can be included by adding $Organization to the below ApprovalRow and VerificationRow templates.

Both this topic, and the PendingRegistrations topic must be in the same web for the override to work:
  1. Copy this template topic to Main.PendingRegistrationsTemplate
  2. Edit Main.PendingRegistrationsTemplate and make the desired changes.
  3. Copy PendingRegistrations to Main.PendingRegistrations.
  4. PendingRegistrations will now generate a report using your tailored layout.

Templates for "Pending Approval" registrations

<verbatim class='tml tmplDef'>%TMPL:DEF{"ApprovalHeader"}%<noautolink>
| *WikiName* | *Email* | *LastName* | *FirstName* | *LoginName* | *Code* | *Action* |
%TMPL:END%</verbatim>

<verbatim class='tml tmplDef'>%TMPL:DEF{"approvalNotEnabled"}%<div class="foswikiAlert">%MAKETEXT{"Registration approval is not enabled."}%</div>%TMPL:END%</verbatim>
<verbatim class='tml tmplDef'>%TMPL:DEF{"approveAction"}%
%MAKETEXT{"You can use the \"approve\" or \"reject\" links to approve or reject these registrations"}%
%TMPL:END%</verbatim>

<verbatim class='tml tmplDef'>%TMPL:DEF{"ApprovalRow"}%| $WikiName | $Email | $LastName | $FirstName | $LoginName | $ApprovalCode |\
[[%SCRIPTURLPATH{"register" action="approve" code="$ApprovalCode" referee="%WIKINAME%"}%][%MAKETEXT{"Approve"}%]] / \
[[%SCRIPTURLPATH{"register" action="disapprove" code="$ApprovalCode" referee="%WIKINAME%"}%][%MAKETEXT{"Reject"}%]] |
%TMPL:END%</verbatim>

Templates for "Pending Verification" registrations

<verbatim class='tml tmplDef'>%TMPL:DEF{"VerificationHeader"}%<noautolink>
| *WikiName* | *Email* | *LastName* | *FirstName* | *LoginName* | *Code* | 
%TMPL:END%</verbatim>

<verbatim class='tml tmplDef'>%TMPL:DEF{"verifyNotEnabled"}%<div class="foswikiAlert">%MAKETEXT{"Email verification is not enabled."}%</div>%TMPL:END%</verbatim>

<verbatim class='tml tmplDef'>%TMPL:DEF{"VerificationRow"}%| $WikiName | $Email | $LastName | $FirstName | $LoginName | $VerificationCode |%TMPL:END%</verbatim>

Common templates

<verbatim class='tml tmplDef'>%TMPL:DEF{"accessdenied"}%<div class="foswikiAlert">%MAKETEXT{"Access to pending registrations is restricted to administrators."}%</div>%TMPL:END%</verbatim>
<verbatim class='tml tmplDef'>%TMPL:DEF{"nothingPending"}%<div class="foswikiAlert">%MAKETEXT{"No registrations are pending."}%</div>%TMPL:END%</verbatim>
This site is powered by FoswikiCopyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback
This website is using cookies. More info. That's Fine