#------------------------------------------------------------
# Copyright (C) 2006 RoyaltyShare, Inc.   All Rights Reserved
# $Id$
#------------------------------------------------------------
package BookPub::Dashboard::Command::Show;
use strict;
use warnings;

use lib '/app/tools/bookpub/lib';
use BookPub::Command;
use BookPub::Dashboard::Form;
use base 'BookPub::Command';

use lib '/app/tools/common/lib';
use Common::LandingPage::RSApache::Response::XSLT;

use lib '/app/tools/appuser/lib';
use AppUser::DB::Item::AccessLevel;

sub cmd      { return 'show'; }
sub area     { return 'dashboard'; }
sub pageName { return 'Dashboard'; }

use constant kTemplate => "/app/tools/bookpub/templates/dashboard/index.xsl";

sub execute {
    my ($self) = @_;

    my $response = $self->SUPER::execute();
    return $response if $response;

    my $form = BookPub::Dashboard::Form->new();
    $self->{xml}{Form} = $form;
    $response = Common::LandingPage::RSApache::Response::XSLT->new( $self->{xml}, kTemplate );

    return $response;
}

1;
