package SGN::View::Mason::Commands;
use strict;
use vars qw($m $c);
HTML::Mason::Component::FileBased->new(
'code' => sub {
use utf8; local $SGN::View::Mason::Commands::m = $HTML::Mason::Commands::m;
HTML::Mason::Exception::Params->throw
    ( error =>
      "Odd number of parameters passed to component expecting name/value pairs"
    ) if @_ % 2;
my ( $locations, $breeding_programs, $preferred_species, $editable_stock_props, $editable_stock_props_definitions, $timestamp, $management_factor_types, $design_types );
{
    my %pos;
    for ( my $x = 0; $x < @_; $x += 2 )
    {
        $pos{ $_[$x] } = $x + 1;
    }

    foreach my $arg ( qw( locations breeding_programs preferred_species timestamp ) )
    {
        HTML::Mason::Exception::Params->throw
            ( error => "no value sent for required parameter '$arg'" )
                unless exists $pos{$arg};
    }
#line 3 "/home/production/cxgn/sgn/mason/breeders_toolbox/manage_projects.mas"
    $locations = $_[ $pos{'locations'} ];
#line 4 "/home/production/cxgn/sgn/mason/breeders_toolbox/manage_projects.mas"
    $breeding_programs = $_[ $pos{'breeding_programs'} ];
#line 5 "/home/production/cxgn/sgn/mason/breeders_toolbox/manage_projects.mas"
    $preferred_species = $_[ $pos{'preferred_species'} ];
#line 6 "/home/production/cxgn/sgn/mason/breeders_toolbox/manage_projects.mas"
     $editable_stock_props = exists $pos{'editable_stock_props'} ? $_[ $pos{'editable_stock_props'} ] :  {};
#line 7 "/home/production/cxgn/sgn/mason/breeders_toolbox/manage_projects.mas"
     $editable_stock_props_definitions = exists $pos{'editable_stock_props_definitions'} ? $_[ $pos{'editable_stock_props_definitions'} ] :  {};
#line 8 "/home/production/cxgn/sgn/mason/breeders_toolbox/manage_projects.mas"
    $timestamp = $_[ $pos{'timestamp'} ];
#line 9 "/home/production/cxgn/sgn/mason/breeders_toolbox/manage_projects.mas"
     $management_factor_types = exists $pos{'management_factor_types'} ? $_[ $pos{'management_factor_types'} ] :  ();
#line 10 "/home/production/cxgn/sgn/mason/breeders_toolbox/manage_projects.mas"
     $design_types = exists $pos{'design_types'} ? $_[ $pos{'design_types'} ] :  ();
}
$m->debug_hook( $m->current_comp->path ) if ( HTML::Mason::Compiler::IN_PERL_DB() );

#line 1 "/home/production/cxgn/sgn/mason/breeders_toolbox/manage_projects.mas"
$m->print( '
' );
#line 12 "/home/production/cxgn/sgn/mason/breeders_toolbox/manage_projects.mas"
$m->print( '

' );
#line 14 "/home/production/cxgn/sgn/mason/breeders_toolbox/manage_projects.mas"
$m->comp(   '/page/page_title.mas', title=>"Manage Trials"   
); #line 14 "/home/production/cxgn/sgn/mason/breeders_toolbox/manage_projects.mas"
$m->print( '

<div class="container-fluid">

' );
#line 18 "/home/production/cxgn/sgn/mason/breeders_toolbox/manage_projects.mas"
$m->comp( { content => sub {
#line 18 "/home/production/cxgn/sgn/mason/breeders_toolbox/manage_projects.mas"
$m->print( '

  ' );
#line 20 "/home/production/cxgn/sgn/mason/breeders_toolbox/manage_projects.mas"
$m->comp(   '/breeders_toolbox/trialtreefolders.mas', locations=>$locations, breeding_programs=>$breeding_programs, preferred_species=>$preferred_species, editable_stock_props=>$editable_stock_props, editable_stock_props_definitions=>$editable_stock_props_definitions, timestamp=>$timestamp, management_factor_types => $management_factor_types, design_types => $design_types   
); #line 20 "/home/production/cxgn/sgn/mason/breeders_toolbox/manage_projects.mas"
$m->print( '
  ' );
#line 21 "/home/production/cxgn/sgn/mason/breeders_toolbox/manage_projects.mas"
} }, '/page/info_section.mas', title=>'Trials', collapsible=>1, collapsed=>0, subtitle=>'<button class="btn btn-sm btn-info" style="margin: 3px" name="update_trial_link">Update Existing Trial(s)</button>  <button class="btn btn-sm btn-primary" style="margin:3px" name="upload_trial_link">Upload Existing Trial(s)</button>  <button class="btn btn-sm btn-primary" style="margin:3px" id="add_project_link">Design New Trial</button>'
 );
#line 21 "/home/production/cxgn/sgn/mason/breeders_toolbox/manage_projects.mas"
$m->print( '
</div>
' );
;return;
},
'declared_args' => {
  '$breeding_programs' => { default => undef },
  '$design_types' => { default => ' ()' },
  '$editable_stock_props' => { default => ' {}' },
  '$editable_stock_props_definitions' => { default => ' {}' },
  '$locations' => { default => undef },
  '$management_factor_types' => { default => ' ()' },
  '$preferred_species' => { default => undef },
  '$timestamp' => { default => undef }
},
'load_time' => 1763106045,

)
;