2
This template will show the content from a model composite, that is
3
the content from its components in an established layout.
6
model - <EBox::Model::Composite> the composite model to show
7
hasChanged - Boolean indicating whether the composite model has
19
title => $model->printableName()
21
% if ( $model->precondition() ) {
22
% # Define the components when we are sure the precondition is
24
% my $componentsRef = $model->components();
25
% # Print the help if any
26
% if ( $model->help() ) {
31
% if ( $model->layout() eq 'tabbed' )
34
models => $componentsRef,
36
hasChanged => $hasChanged,
37
tabName => $model->name(),
40
% elsif ( $model->layout() eq 'top-bottom' )
42
% foreach my $component (@{$componentsRef}) {
43
<& $component->Viewer(),
45
hasChanged => $hasChanged,
50
% elsif ( $model->layout() eq 'select' )
52
<& /ajax/selector.mas,
54
hasChanged => $hasChanged,
61
<% $model->preconditionFailMsg() %>
68
Private component to print the title if any. It takes into account
69
if the composite is the root one or not to determine which kind of
74
title - String the title to print
82
# Print the model name if any
84
# Check if we are the root component or not to determine the heading size
85
if ( $m->depth() == 2 ) {