mirror of
https://github.com/itflow-org/itflow
synced 2026-09-14 18:55:12 +00:00
Update Font, Migrated away from JQUERY dependent libs: toastr to bootstrap5 toasts, daterangepicker to flatpickr, select2 to Tom Select, InputMask to IMask
This commit is contained in:
@@ -63,7 +63,7 @@ ob_start();
|
||||
<label>Type</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-desktop"></i></span>
|
||||
<select class="form-control select2" name="type">
|
||||
<select class="form-select select2" name="type">
|
||||
<option value="">- All Types -</option>
|
||||
<option <?php if ($type_filter === 'workstation') { echo "selected"; } ?> value="workstation">Workstations</option>
|
||||
<option <?php if ($type_filter === 'server') { echo "selected"; } ?> value="server">Servers</option>
|
||||
@@ -79,7 +79,7 @@ ob_start();
|
||||
<label>Client</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
|
||||
<select class="form-control select2" name="client">
|
||||
<select class="form-select select2" name="client">
|
||||
<option value="">- All Clients -</option>
|
||||
<?php
|
||||
$sql_clients_filter = mysqli_query($mysqli, "SELECT client_id, client_name FROM clients WHERE EXISTS (SELECT 1 FROM assets WHERE asset_client_id = client_id) ORDER BY client_name ASC");
|
||||
@@ -101,7 +101,7 @@ ob_start();
|
||||
<label>Location</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-map-marker-alt"></i></span>
|
||||
<select class="form-control select2" name="location">
|
||||
<select class="form-select select2" name="location">
|
||||
<option value="">- All Locations -</option>
|
||||
<?php
|
||||
$sql_locations_filter = mysqli_query($mysqli, "SELECT location_id, location_name FROM locations WHERE location_client_id = $client_id AND location_archived_at IS NULL ORDER BY location_name ASC");
|
||||
@@ -122,7 +122,7 @@ ob_start();
|
||||
<label>Tags</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-tags"></i></span>
|
||||
<select class="form-control select2" name="tags[]" data-placeholder="- All Tags -" multiple>
|
||||
<select class="form-select select2" name="tags[]" data-placeholder="- All Tags -" multiple>
|
||||
<?php
|
||||
$sql_tags_filter = mysqli_query($mysqli, "SELECT tag_id, tag_name FROM tags WHERE tag_type = 5 ORDER BY tag_name ASC");
|
||||
while ($row = mysqli_fetch_assoc($sql_tags_filter)) {
|
||||
@@ -141,7 +141,7 @@ ob_start();
|
||||
<label>Warranty Expiring In</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-hourglass-half"></i></span>
|
||||
<select class="form-control select2" name="expire_days">
|
||||
<select class="form-select select2" name="expire_days">
|
||||
<option value="">- Any -</option>
|
||||
<option <?php if ($expire_filter === 'expired') { echo "selected"; } ?> value="expired">Expired</option>
|
||||
<?php foreach ([7, 30, 45, 60, 90] as $expire_option) { ?>
|
||||
@@ -155,7 +155,7 @@ ob_start();
|
||||
<label>Archived</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-archive"></i></span>
|
||||
<select class="form-control select2" name="archived">
|
||||
<select class="form-select select2" name="archived">
|
||||
<option <?php if (!$archived_filter) { echo "selected"; } ?> value="0">Active only</option>
|
||||
<option <?php if ($archived_filter) { echo "selected"; } ?> value="1">Archived only</option>
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user