default www_edit now returns template. add errors to edit template
This commit is contained in:
parent
ecce246e1c
commit
db9753eb01
6 changed files with 22 additions and 80 deletions
|
|
@ -1645,28 +1645,6 @@ sub wrapIcal {
|
|||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
=head2 www_edit ( )
|
||||
|
||||
Adds a submenu to the default edit page that includes links to Add an Event.
|
||||
|
||||
=cut
|
||||
|
||||
sub www_edit {
|
||||
my $self = shift;
|
||||
my $session = $self->session;
|
||||
my $i18n = WebGUI::International->new($session, 'Asset_Calendar');
|
||||
|
||||
return $session->privilege->insufficient() unless $self->canEdit;
|
||||
|
||||
|
||||
return $self->getAdminConsole->render(
|
||||
$self->getEditForm->toHtml,
|
||||
$i18n->get("assetName")
|
||||
);
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
=head2 www_ical
|
||||
|
||||
Export an iCalendar feed of this Events Calendar's events.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue