1
0
Fork 0

Fix minor errors in template HTML

master
Anonymous Contributor 2023-09-05 22:25:08 +02:00
parent 3bc2fee80a
commit c7bf6f4d6e
4 changed files with 16 additions and 13 deletions

View File

@ -29,6 +29,7 @@ class ViewerWelcomePage extends \Mcp\RequestHandler
'grid-name' => $this->app->config('grid')['name'], 'grid-name' => $this->app->config('grid')['name'],
'news' => $this->app->config('grid')['main-news'] 'news' => $this->app->config('grid')['main-news']
])->unsafeVar('json-image-array', json_encode($images)) ])->unsafeVar('json-image-array', json_encode($images))
->unsafeVar('image-1', $images[0])->unsafeVar('image-2', $images[1])
->unsafeVar('stats', "Registrierte User: ".$opensim->getUserCount()."<br>Regionen: ".$opensim->getRegionCount()."<br>Aktuell Online: ".($opensim->getOnlineCount()-1)) ->unsafeVar('stats', "Registrierte User: ".$opensim->getUserCount()."<br>Regionen: ".$opensim->getRegionCount()."<br>Aktuell Online: ".($opensim->getOnlineCount()-1))
->render(); ->render();
} }

View File

@ -15,7 +15,7 @@
<body id="page-top"> <body id="page-top">
<nav class="navbar navbar-expand navbar-dark bg-dark static-top"> <nav class="navbar navbar-expand navbar-dark bg-dark static-top">
<button class="btn btn-link btn-sm text-white order-1 order-sm-0" id="sidebarToggle" href="#"> <button class="btn btn-link btn-sm text-white order-1 order-sm-0" id="sidebarToggle">
<i class="fas fa-bars"></i> <i class="fas fa-bars"></i>
</button> </button>

View File

@ -1,4 +1,4 @@
<center><?= $v['message'] ?></center> <p class="text-center"><?= $v['message'] ?></p>
<div class="container-fluid"> <div class="container-fluid">
<div class="row"> <div class="row">
@ -37,7 +37,7 @@
<div class="row" style="margin-top: 15px;"> <div class="row" style="margin-top: 15px;">
<div class="col"> <div class="col">
<label for="dropdownPartner">Partner</label> <label for="inputpartner">Partner</label>
<input type="text" class="form-control" name="formInputFeldPartnerName" id="inputpartner" placeholder="<?= $v['partner'] ?>"> <input type="text" class="form-control" name="formInputFeldPartnerName" id="inputpartner" placeholder="<?= $v['partner'] ?>">
</div> </div>
</div> </div>
@ -70,7 +70,7 @@
<div class="row" style="margin-top: 15px;"> <div class="row" style="margin-top: 15px;">
<div class="col"> <div class="col">
<label for="newPassword">Neues Passwort</label> <label for="PasswordNew">Neues Passwort</label>
<input type="text" class="form-control" id="PasswordNew" name="newPassword"> <input type="text" class="form-control" id="PasswordNew" name="newPassword">
</div> </div>
</div> </div>
@ -78,7 +78,7 @@
<div class="row" style="margin-top: 15px;"> <div class="row" style="margin-top: 15px;">
<div class="col"> <div class="col">
<label for="newPasswordRepeat">Neues Passwort wiederholen</label> <label for="PasswordNewRepeat">Neues Passwort wiederholen</label>
<input type="text" class="form-control" id="PasswordNewRepeat" name="newPasswordRepeat"> <input type="text" class="form-control" id="PasswordNewRepeat" name="newPasswordRepeat">
</div> </div>
</div> </div>
@ -86,7 +86,7 @@
<div class="row" style="margin-top: 15px;"> <div class="row" style="margin-top: 15px;">
<div class="col"> <div class="col">
<?= $v['csrf'] ?> <?= $v['csrf'] ?>
<center><button type="submit" name="savePassword" class="btn btn-primary btn-lg">Speichern</button></center> <p class="text-center"><button type="submit" name="savePassword" class="btn btn-primary btn-lg">Speichern</button></p>
</div> </div>
</div> </div>
</form> </form>
@ -98,7 +98,7 @@
</div> </div>
<p class="lead"><b>IAR Sicherung</b></p> <p class="lead"><b>IAR Sicherung</b></p>
<center><?= $v['iar-message'] ?></center> <p class="text-center"><?= $v['iar-message'] ?></p>
Hier kannst du eine IAR deines Inventars erstellen.<br> Hier kannst du eine IAR deines Inventars erstellen.<br>
Dies wird einige Zeit dauern. Du bekommst eine PM mit einem Downloadlink sobald deine IAR fertig erstellt wurde. Dies wird einige Zeit dauern. Du bekommst eine PM mit einem Downloadlink sobald deine IAR fertig erstellt wurde.
@ -106,7 +106,7 @@
<div class="row" style="margin-top: 15px;"> <div class="row" style="margin-top: 15px;">
<div class="col"> <div class="col">
<?= $v['csrf'] ?> <?= $v['csrf'] ?>
<center><button type="submit" name="createIAR" class="btn btn-primary btn-lg" <?= $v['iar-button-state'] ?>>IAR erstellen</button></center> <p class="text-center"><button type="submit" name="createIAR" class="btn btn-primary btn-lg" <?= $v['iar-button-state'] ?>>IAR erstellen</button></p>
</div> </div>
</div> </div>
</form> </form>
@ -137,7 +137,7 @@
<div class="row"> <div class="row">
<div class="col"> <div class="col">
<?= $v['csrf'] ?> <?= $v['csrf'] ?>
<center><button type="submit" name="deleteAccount" class="btn btn-danger btn-lg">Account löschen</button></center> <p class="text-center"><button type="submit" name="deleteAccount" class="btn btn-danger btn-lg">Account löschen</button></p>
</div> </div>
</div> </div>
</form> </form>

View File

@ -1,12 +1,14 @@
<html> <!DOCTYPE html>
<html lang='en'>
<head> <head>
<title><?= $v['grid-name'] ?></title>
<style> <style>
body { body {
background-color: rgb(0, 0, 0); background-color: rgb(0, 0, 0);
width: 100%; width: 100%;
height: 100%; height: 100%;
overflow: hidden; overflow: hidden;
font-family: 'Arial'; font-family: 'Arial', sans-serif;
font-size: 11px; font-size: 11px;
padding: 0; padding: 0;
margin: 0; margin: 0;
@ -65,8 +67,8 @@
</style> </style>
</head> </head>
<body> <body>
<img src='' style='border: 0; display: block; opacity; 0; position: absolute;' id='Image1' /> <img src='<?= $v['image-1'] ?>' style='border: 0; display: block; opacity: 0; position: absolute;' id='Image1' alt=''/>
<img src='' style='border: 0; display: block; opacity: 0; position: absolute;' id='Image2' /> <img src='<?= $v['image-2'] ?>' style='border: 0; display: block; opacity: 0; position: absolute;' id='Image2' alt=''/>
<script type='text/javascript'> <script type='text/javascript'>
var Images = <?= $v['json-image-array'] ?>; var Images = <?= $v['json-image-array'] ?>;
var MakeAnimation = true; var MakeAnimation = true;