Welcome Page
This commit is contained in:
parent
731ac84dca
commit
fa827a0dd5
@ -478,7 +478,7 @@ namespace Documents\Install {
|
|||||||
|
|
||||||
case self::SUCCESSFUL:
|
case self::SUCCESSFUL:
|
||||||
$statusIcon = '<i class="fas fa-check-circle"></i>';
|
$statusIcon = '<i class="fas fa-check-circle"></i>';
|
||||||
$statusText = "Successfull";
|
$statusText = "Successful";
|
||||||
$statusColor = "success";
|
$statusColor = "success";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -26,11 +26,17 @@ namespace Documents\Welcome {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected function initSources() {
|
protected function initSources() {
|
||||||
|
$this->loadBootstrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function initMetas() {
|
protected function initMetas() {
|
||||||
return array();
|
return array(
|
||||||
|
array('name' => 'viewport', 'content' => 'width=device-width, initial-scale=1.0'),
|
||||||
|
array('name' => 'format-detection', 'content' => 'telephone=yes'),
|
||||||
|
array('charset' => 'utf-8'),
|
||||||
|
array("http-equiv" => 'expires', 'content' => '0'),
|
||||||
|
array("name" => 'robots', 'content' => 'noarchive'),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function initRawFields() {
|
protected function initRawFields() {
|
||||||
@ -49,7 +55,24 @@ namespace Documents\Welcome {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected function getContent() {
|
protected function getContent() {
|
||||||
return "Welcome!";
|
return
|
||||||
|
"<div class='container mt-5'>
|
||||||
|
<div class='row'>
|
||||||
|
<div class='col-lg-9 col-12 mx-auto'>
|
||||||
|
<div class='jumbotron'>
|
||||||
|
<h1>Congratulations!</h1>
|
||||||
|
<p class='lead'>Your Web-Base Installation is now ready to use!</p>
|
||||||
|
<hr class='my-4' />
|
||||||
|
<p>
|
||||||
|
You can now login into your <a href='/admin'>Administrator Dashboard</a> to adjust your settings
|
||||||
|
and add routes & pages.
|
||||||
|
You can add new documents and views by adding classes in the corresponding
|
||||||
|
directories and link to them, by creating rules in the Administrator Dashboard.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -11,7 +11,6 @@ class Link extends StaticView {
|
|||||||
const BOOTSTRAP = "/css/bootstrap.min.css";
|
const BOOTSTRAP = "/css/bootstrap.min.css";
|
||||||
const CORE = "/css/style.css";
|
const CORE = "/css/style.css";
|
||||||
const ADMIN = "/css/admin.css";
|
const ADMIN = "/css/admin.css";
|
||||||
const ADMINLTE = "/css/adminlte.min.css";
|
|
||||||
|
|
||||||
private string $type;
|
private string $type;
|
||||||
private string $rel;
|
private string $rel;
|
||||||
|
@ -11,7 +11,6 @@ class Script extends StaticView {
|
|||||||
const JQUERY = "/js/jquery.min.js";
|
const JQUERY = "/js/jquery.min.js";
|
||||||
const INSTALL = "/js/install.js";
|
const INSTALL = "/js/install.js";
|
||||||
const BOOTSTRAP = "/js/bootstrap.bundle.min.js";
|
const BOOTSTRAP = "/js/bootstrap.bundle.min.js";
|
||||||
const ADMINLTE = "/js/adminlte.min.js";
|
|
||||||
|
|
||||||
private string $type;
|
private string $type;
|
||||||
private string $content;
|
private string $content;
|
||||||
|
@ -83,7 +83,7 @@ abstract class View extends StaticView {
|
|||||||
if($classes)
|
if($classes)
|
||||||
$iconClass .= " $classes";
|
$iconClass .= " $classes";
|
||||||
|
|
||||||
return "<i class=\"$iconClass\" />";
|
return "<i class=\"$iconClass\" ></i>";
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function createErrorText($text, $id="", $hidden=false) {
|
protected function createErrorText($text, $id="", $hidden=false) {
|
||||||
|
7
js/bootstrap.min.js
vendored
7
js/bootstrap.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user