Skip to content

Commit

Permalink
Add minimal layout for the welcome page
Browse files Browse the repository at this point in the history
  • Loading branch information
yhabteab committed Jun 10, 2022
1 parent b6958b1 commit f5c8fc9
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
6 changes: 3 additions & 3 deletions application/forms/Dashboard/SetupNewDashboardForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class SetupNewDashboardForm extends BaseDashboardForm
protected function init()
{
parent::init();

$this->moduleDashlets = Modules\DashletManager::getDashlets();

$this->setRedirectUrl((string) Url::fromPath(Dashboard::BASE_ROUTE));
Expand Down Expand Up @@ -291,8 +291,8 @@ protected function createFormListControls(string $title = null): ValidHtml
}

$details = HtmlElement::create('details', [
'class' => ['dashboard-list-control', 'collapsible'],
'data-no-persistence' => true
'class' => ['dashboard-list-control', 'collapsible'],
'data-no-persistence' => true
]);
$summary = HtmlElement::create('summary', ['class' => 'collapsible-header']);
$summary->addHtml(
Expand Down
13 changes: 13 additions & 0 deletions public/css/icinga/dashboards.less
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,19 @@
}
}

// Minimal welcome page layout

#layout.minimal-layout .dashboard-introduction {
top: 50%;
width: 100%;

form {
display: block;
padding-right: 1em;
padding-left: 1em;
}
}

// Sortable dashboard styles

.dashboard-settings {
Expand Down
5 changes: 3 additions & 2 deletions public/css/icinga/forms.less
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,9 @@ form.inline {
}
}

#layout.minimal-layout .icinga-form {
.form-controls {
#layout.minimal-layout {
.icinga-form .form-controls,
form.icinga-controls {
input[type="submit"],
button {
width: 100%;
Expand Down

0 comments on commit f5c8fc9

Please sign in to comment.