Correct POD for AdminToggle and add POD for 3 new files
This commit is contained in:
parent
ddf72f4c31
commit
eb98d68777
4 changed files with 74 additions and 2 deletions
|
|
@ -17,6 +17,38 @@ use WebGUI::Session;
|
|||
use WebGUI::Asset::Template;
|
||||
use WebGUI::URL;
|
||||
|
||||
=head1 NAME
|
||||
|
||||
Package WebGUI::Macro::EditableToggle
|
||||
|
||||
=head1 DESCRIPTION
|
||||
|
||||
Macro for displaying a url to the user for turning Admin mode on and off if they
|
||||
have editing rights to the current Asset.
|
||||
|
||||
=head2 process ( [turnOn,turnOff,template ] )
|
||||
|
||||
process takes three optional parameters for customizing the content and layout
|
||||
of the account link.
|
||||
|
||||
=head3 turnOn
|
||||
|
||||
The text displayed to the user if Admin mode is turned off, they are in the
|
||||
Turn On Admin group and they have editing rights to this Asset.
|
||||
If this is blank an internationalized default is used.
|
||||
|
||||
=head3 turnOff
|
||||
|
||||
The text displayed to the user if Admin mode is turned on, they are in
|
||||
the Turn On Admin group and they have editing rights to this Asset..
|
||||
If this is blank an internationalized default is used.
|
||||
|
||||
=head3 template
|
||||
|
||||
A template from the Macro/EditableToggle namespace to use for formatting the link.
|
||||
|
||||
=cut
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub process {
|
||||
if (exists $session{asset} && $session{asset}->canEdit && WebGUI::Grouping::isInGroup(12)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue