<%doc>

Help Section

</%doc>

<%args>
$user => $ui->get_current_user($r);
</%args>

<%attr>
title   => 'Netdot Help' 
section => 'Help'
</%attr>

<%shared>
my $PAGE_ATTRIBUTE = "HELP_PAGE";
my $SECTION = "Help";
</%shared>

<%init>
my %caller_args = $m->caller_args(-1);

if (exists($caller_args{page})){
    $user->setAttribute($r, "$PAGE_ATTRIBUTE", $caller_args{page});
}

my $page = $user->getAttribute("$PAGE_ATTRIBUTE");
</%init>

<%method .section_meta_data>
    <%doc>
        Returns the meta data used to generate this sections header in section1.mhtml
    </%doc>
    <%init>
        return {  
	    section      => $SECTION,
	    page         => 'help/',
	    title        => 'Help',
	    attribute    => $PAGE_ATTRIBUTE,
	    sub_sections => [		
	        { section => 'MANUAL',   title => 'User Manual' },
	        { section => 'DATABASE', title => 'Database Help' },
            ],
        };
    </%init>
</%method>

<%perl>

if ($page eq "MANUAL") {
    $m->comp("manual.html");

}elsif ($page eq "DATABASE") {
</%perl>	
	<div class="container">
	<div class="containerhead">Database Help</div>
	<div class="containerbody">
	
	<br>
	<a href="database-rels.html">Database Relationships (HTML)</a><br>
	Displays a HTML table with the Netdot database schema.<br>

	<br>
	<a href="database-graph.html">Database Relationships (GraphViz)</a><br>
	Displays a GraphViz graph of the Netdot database schema.<br>
	
	<br>
	<br>
	
	</div>
	</div>
<%perl>
    }

 if ( $m->fetch_next ){
  $m->call_next;
 }
</%perl>
