Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[kivitendo-erp.git] / SL / Layout / Classic.pm
index a2ef770..e8974c1 100644 (file)
@@ -5,19 +5,22 @@ use parent qw(SL::Layout::Base);
 
 use SL::Layout::Top;
 use SL::Layout::MenuLeft;
+use SL::Layout::None;
+use SL::Layout::Split;
+use SL::Layout::ActionBar;
+use SL::Layout::Content;
 
-sub new {
-  my ($class, @slurp) = @_;
+sub init_sub_layouts {
+  $_[0]->sub_layouts_by_name->{actionbar} = SL::Layout::ActionBar->new;
 
-  my $self = $class->SUPER::new(@slurp);
-
-  $self->add_sub_layouts([
-    SL::Layout::Top->new,
-    SL::Layout::MenuLeft->new,
+  [
     SL::Layout::None->new,
-  ]);
-
-  $self;
+    SL::Layout::Top->new,
+    SL::Layout::Split->new(
+      left  => [ SL::Layout::MenuLeft->new ],
+      right => [ $_[0]->sub_layouts_by_name->{actionbar}, SL::Layout::Content->new ],
+    )
+  ]
 }
 
 1;