Macro Template Variables.
Body tags in the help are now optional. To skip the body tag, put
in an empty string. Updated the Help and the tests to cover that.
Updated the Account Macro according to those rules.
subroutines directly in their files. See
WebGUI::Operation::FormHelpers::www_formHelper and
WebGUI::Operation::Workflow::www_activityHelper for details.
to send an email to their friends and invite them to create an account
on the site. The feature is enabled or disabled in the site Settings.
(Operation/Settings.pm)
It is implemented as a new operation, Invite (Operation/Invite.pm,
Help/Invite.pm, i18n/English/Invite.pm), and the option is displayed
as an option on the user's account screen. (Operation/Shared.pm).
The form is templated, and lives in the Invite namespace. Once
the invitation is submitted, if the user's email address is not
already in WebGUI, an email is sent and a record is stored in
the userInvitations table.
When the friend gets the invitation, they are taken to the account
creation screen, which conveniently has their email address already
filled in. This required changes in the Auth modules (Auth.pm, Auth/*.pm),
and ProfileField.pm. The latter was so that profile fields can have
their values manually set. The former changes handle inserting the
email address, bypassing the anonymous registration check, and
updating the record in ther userInvitations table.
I refactored some code out of the AdminConsole for finding the url
back to the site and added it to Session/Url.pm. The method is
called getBackToSiteUrl.
like the RTE because by default it uses the default user style from settings.
This renders a full page, when we really need a message.
I've added an argument to session->privilege->insufficient to use the
empty style and to use a different message with no embedded macros
to process for logging in. I tested this on the RTE folder adder and
it works fine. I duplicated this work in the Image add/edit save routine
as well.
Since privilege->insuffient didn't take arguments before, this preserves
the existing API, which is broken.