HTML fixes

main
Yasen Pramatarov 2025-01-26 14:07:28 +02:00
parent df200aae64
commit fc16bea465
1 changed files with 84 additions and 89 deletions

View File

@ -1,6 +1,6 @@
<!-- log events --> <!-- log events -->
<div class="container-fluid mt-2"> <div class="container-fluid mt-2">
<div class="row mb-4"> <div class="row mb-4">
<div class="col-md-6 mb-5"> <div class="col-md-6 mb-5">
<h2>Log events</h2> <h2>Log events</h2>
@ -27,29 +27,24 @@
<form method="get" action="" class="row g-3 align-items-end"> <form method="get" action="" class="row g-3 align-items-end">
<input type="hidden" name="page" value="logs"> <input type="hidden" name="page" value="logs">
<input type="hidden" name="tab" value="<?= htmlspecialchars($scope) ?>"> <input type="hidden" name="tab" value="<?= htmlspecialchars($scope) ?>">
<div class="col-md-3"> <div class="col-md-3">
<label for="from_time" class="form-label">From date</label> <label for="from_time" class="form-label">From date</label>
<input type="date" class="form-control" id="from_time" name="from_time" value="<?= htmlspecialchars($_REQUEST['from_time'] ?? '') ?>"> <input type="date" class="form-control" id="from_time" name="from_time" value="<?= htmlspecialchars($_REQUEST['from_time'] ?? '') ?>">
</div> </div>
<div class="col-md-3"> <div class="col-md-3">
<label for="until_time" class="form-label">Until date</label> <label for="until_time" class="form-label">Until date</label>
<input type="date" class="form-control" id="until_time" name="until_time" value="<?= htmlspecialchars($_REQUEST['until_time'] ?? '') ?>"> <input type="date" class="form-control" id="until_time" name="until_time" value="<?= htmlspecialchars($_REQUEST['until_time'] ?? '') ?>">
</div> </div>
<?php if ($scope === 'system') { ?> <?php if ($scope === 'system') { ?>
<div class="col-md-2"> <div class="col-md-2">
<label for="id" class="form-label">User ID</label> <label for="id" class="form-label">User ID</label>
<input type="text" class="form-control" id="id" name="id" value="<?= htmlspecialchars($_REQUEST['id'] ?? '') ?>" placeholder="Enter user ID"> <input type="text" class="form-control" id="id" name="id" value="<?= htmlspecialchars($_REQUEST['id'] ?? '') ?>" placeholder="Enter user ID">
</div> </div>
<?php } ?> <?php } ?>
<div class="col-md"> <div class="col-md">
<label for="message" class="form-label">Message</label> <label for="message" class="form-label">Message</label>
<input type="text" class="form-control" id="message" name="message" value="<?= htmlspecialchars($_REQUEST['message'] ?? '') ?>" placeholder="Search in log messages"> <input type="text" class="form-control" id="message" name="message" value="<?= htmlspecialchars($_REQUEST['message'] ?? '') ?>" placeholder="Search in log messages">
</div> </div>
<div class="col-md-auto"> <div class="col-md-auto">
<button type="submit" class="btn btn-primary me-2"> <button type="submit" class="btn btn-primary me-2">
<i class="fas fa-search me-2"></i>Search <i class="fas fa-search me-2"></i>Search
@ -104,5 +99,5 @@
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<!-- /log events --> <!-- /log events -->