User Creation #3 & Password Restart

This commit is contained in:
JonatanRek 2019-10-13 14:01:33 +02:00
parent 515628c9f0
commit c8ae3cede3
2 changed files with 36 additions and 0 deletions

View File

@ -76,6 +76,38 @@
</div>
</form>
</div>
<div class="col-12 col-sm-9 mx-auto mt-4">
<h4 class="mb-4"><?php $LANGMNG->echo('t_createuser') ?></h4>
<table class="table is-fluid">
<thead>
<tr>
<th><?php $LANGMNG->echo('t_userName');?></th>
<th><?php $LANGMNG->echo('t_action');?></th>
</tr>
</thead>
<tbody>
<?php foreach ($USERS as $key => $user) { ?>
<tr>
<th><?php echo $user['username']; ?></th>
<th><button name="remove" type="button" class="button is-danger fa" data-automation-id="54">&#xf1f8;</button></th>
</tr>
<?php } ?>
</tbody>
</table>
<form method="post">
<div class="field">
<div class="label"><?php $LANGMNG->echo('l_userName') ?>:</div>
<input type="text" class="input" name="userName" value="" data-cip-id="cIPJQ342845639">
</div>
<div class="field">
<div class="label"><?php $LANGMNG->echo('l_password') ?>:</div>
<input type="password" class="input" name="userPassword" value="" data-cip-id="cIPJQ342845639">
</div>
<div class="field">
<input type="submit" name="submitCreateUser" class="button" value="Uložit">
</div>
</form>
</div>
</div>

View File

@ -27,6 +27,10 @@ class Setting extends Template
$template->prepare('langMng', $langMng);
$template->prepare('automations', $automations);
$users = $userManager->getUsers();
$template->prepare('users', $users);
$template->render();
}
}