This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
keksAccount/resources/views/admin/user_details.php
2019-07-10 17:04:35 +02:00

55 lines
No EOL
2.3 KiB
PHP

<?php include(__DIR__."/../layout/top.php"); ?>
<div class="row">
<div class="col-md-12">
<h3>Users</h3>
<form method="post">
<table class="table">
<tr>
<th>Username</th>
<td><input name="username" value="<?php echo $editUser->username; ?>" class="form-control"></td>
</tr>
<tr>
<th>Primary Mail</th>
<td><input name="" value="<?php echo $editUser->getMail(); ?>" class="form-control" disabled></td>
</tr>
<tr>
<th>Developer</th>
<td><input name="developer" type="checkbox" <?php if($editUser->developer) { echo 'checked'; } ?>></td>
</tr>
<tr>
<th>Admin</th>
<td><input name="admin" type="checkbox" <?php if($editUser->admin) { echo 'checked'; } ?>></td>
</tr>
</table>
<input type="submit" value="Save" class="btn btn-warning">
</form>
<h4>Mails</h4>
<table class="table">
<tr>
<th>#</th>
<th>Mail</th>
<th>Status</th>
<th>Actions</th>
</tr>
<?php
foreach($mails as $mail) {
?>
<tr>
<td><?php echo $mail->id; ?></td>
<td><?php echo $mail->mail; ?></td>
<td><?php echo $mail->status ?></td>
<td>
<?php
if($mail->status == "waiting") {
echo '<a href="/gui/mailValidation/'.$mail->id.'/'.$mail->validation_code.'" class="btn btn-danger btn-sm">Aktivieren</a>';
}
echo '<a href="/gui/admin/resendInviteMail?id='.$mail->id.'" class="btn btn-warning btn-sm">Resend Validation Mail</a>';
?>
</td>
</tr>
<?php } ?>
</table>
</div>
</div>
<?php include(__DIR__."/../layout/bottom.php"); ?>