mirror of
https://github.com/itflow-org/itflow
synced 2026-09-17 20:25:13 +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:
@@ -215,7 +215,7 @@ ob_start();
|
||||
<h5 class="modal-title">
|
||||
<div class="d-flex">
|
||||
<?php if ($contact_photo) { ?>
|
||||
<img class="img-thumbnail img-circle img-size-50 me-1" src="<?= "../uploads/clients/$client_id/$contact_photo" ?>">
|
||||
<img class="img-thumbnail rounded-circle img-size-50 me-1" src="<?= "../uploads/clients/$client_id/$contact_photo" ?>">
|
||||
<?php } else { ?>
|
||||
<span class="fa-stack">
|
||||
<i class="fa fa-circle fa-stack-2x text-secondary"></i>
|
||||
@@ -266,7 +266,7 @@ ob_start();
|
||||
<div class="mt-1">
|
||||
<i class="fas fa-fw fa-envelope text-secondary me-1"></i>
|
||||
<a href="mailto:<?= $contact_email ?>"><?= $contact_email ?></a>
|
||||
<button type="button" class="btn btn-xs btn-link p-0 ms-1 clipboardjs" data-clipboard-text="<?= $contact_email ?>">
|
||||
<button type="button" class="btn btn-sm btn-link p-0 ms-1 clipboardjs" data-clipboard-text="<?= $contact_email ?>">
|
||||
<i class="far fa-copy text-secondary"></i>
|
||||
</button>
|
||||
</div>
|
||||
@@ -342,7 +342,7 @@ ob_start();
|
||||
<!-- Left sticky nav -->
|
||||
<div class="col-12 col-md-3 pe-md-3 mb-3 mb-md-0">
|
||||
<div class="sticky-top">
|
||||
<div class="nav nav-pills nav-sidebar flex-column" role="tablist" aria-orientation="vertical">
|
||||
<div class="nav nav-pills sidebar-menu flex-column" role="tablist" aria-orientation="vertical">
|
||||
|
||||
<?php if ($asset_count) { ?>
|
||||
<a class="nav-link <?= ($first_tab === "assets") ? "active" : "" ?>"
|
||||
|
||||
@@ -54,7 +54,7 @@ ob_start();
|
||||
<label>Client <strong class="text-danger">*</strong></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_id" required>
|
||||
<select class="form-select select2" name="client_id" required>
|
||||
<option value="">- Select Client -</option>
|
||||
<?php
|
||||
|
||||
@@ -76,7 +76,7 @@ ob_start();
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
|
||||
<input type="text" class="form-control" name="name" placeholder="Full Name" maxlength="200" required autofocus>
|
||||
<div class="input-group-text">
|
||||
<input type="checkbox" name="contact_primary" value="1">
|
||||
<input class="form-check-input" type="checkbox" name="contact_primary" value="1">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -144,7 +144,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="">- Select Location -</option>
|
||||
<?php
|
||||
|
||||
@@ -186,7 +186,7 @@ ob_start();
|
||||
<label>Client Portal</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-user-circle"></i></span>
|
||||
<select class="form-control select2 authMethod" name="auth_method">
|
||||
<select class="form-select select2 authMethod" name="auth_method">
|
||||
<option value="">- No Access -</option>
|
||||
<option value="local">Using Set Password</option>
|
||||
<option value="azure">Using Azure Credentials</option>
|
||||
@@ -253,7 +253,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="Add some tags" multiple>
|
||||
<select class="form-select select2" name="tags[]" data-placeholder="Add some tags" multiple>
|
||||
<?php
|
||||
|
||||
while ($row = mysqli_fetch_assoc($sql_tags_select)) {
|
||||
|
||||
@@ -28,7 +28,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="bulk_location_id">
|
||||
<select class="form-select select2" name="bulk_location_id">
|
||||
<option value="">- Select Location -</option>
|
||||
<?php
|
||||
|
||||
|
||||
@@ -30,7 +30,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="bulk_tags[]" data-placeholder="Add some tags" multiple>
|
||||
<select class="form-select select2" name="bulk_tags[]" data-placeholder="Add some tags" multiple>
|
||||
<?php
|
||||
|
||||
$sql_tags_select = mysqli_query($mysqli, "SELECT tag_id, tag_name FROM tags WHERE tag_type = 3 ORDER BY tag_name ASC");
|
||||
|
||||
@@ -23,7 +23,7 @@ ob_start();
|
||||
<div class="row g-2">
|
||||
|
||||
<div class="mb-3 col-sm-6">
|
||||
<select type="text" class="form-control select2" name="mail_from">
|
||||
<select type="text" class="form-select select2" name="mail_from">
|
||||
<option value="<?= escapeHtml($config_mail_from_email) ?>">
|
||||
<?= escapeHtml("$config_mail_from_name - $config_mail_from_email") ?></option>
|
||||
<option value="<?= escapeHtml($config_invoice_from_email) ?>">
|
||||
|
||||
@@ -92,7 +92,7 @@ ob_start();
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
|
||||
<input type="text" class="form-control" name="name" placeholder="Full Name" maxlength="200" value="<?= $contact_name ?>" required>
|
||||
<div class="input-group-text">
|
||||
<input type="checkbox" name="contact_primary" value="1" <?php if ($contact_primary == 1) { echo "checked"; } ?>>
|
||||
<input class="form-check-input" type="checkbox" name="contact_primary" value="1" <?php if ($contact_primary == 1) { echo "checked"; } ?>>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -156,7 +156,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="">- Select Location -</option>
|
||||
<?php
|
||||
|
||||
@@ -198,7 +198,7 @@ ob_start();
|
||||
<label>Client Portal</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-user-circle"></i></span>
|
||||
<select class="form-control select2 authMethod" name="auth_method">
|
||||
<select class="form-select select2 authMethod" name="auth_method">
|
||||
<option value="">- No Access -</option>
|
||||
<option value="local" <?php if ($auth_method == "local") { echo "selected"; } ?>>Using Set Password</option>
|
||||
<option value="azure" <?php if ($auth_method == "azure") { echo "selected"; } ?>>Using Azure Credentials</option>
|
||||
@@ -289,7 +289,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="Add some tags" multiple>
|
||||
<select class="form-select select2" name="tags[]" data-placeholder="Add some tags" multiple>
|
||||
<?php
|
||||
|
||||
$sql_tags_select = mysqli_query($mysqli, "SELECT tag_id, tag_name FROM tags WHERE tag_type = 3 ORDER BY tag_name ASC");
|
||||
|
||||
@@ -58,7 +58,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 contacts WHERE contact_client_id = client_id) ORDER BY client_name ASC");
|
||||
@@ -80,7 +80,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");
|
||||
@@ -101,7 +101,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 = 3 ORDER BY tag_name ASC");
|
||||
while ($row = mysqli_fetch_assoc($sql_tags_filter)) {
|
||||
@@ -120,7 +120,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>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<label>Welcome Letter</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-envelope-open-text"></i></span>
|
||||
<select class="form-control select2" name="welcome_letter">
|
||||
<select class="form-select select2" name="welcome_letter">
|
||||
<option value="1">- Select One -</option>
|
||||
<option value="2">Standard</option>
|
||||
<option value="3">Big Wig</option>
|
||||
|
||||
@@ -31,7 +31,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-desktop"></i></span>
|
||||
<select class="form-control select2" name="asset_id">
|
||||
<select class="form-select select2" name="asset_id">
|
||||
<option value="">- Select an Asset -</option>
|
||||
<?php
|
||||
$sql_assets_select = mysqli_query($mysqli, "
|
||||
|
||||
@@ -31,7 +31,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-key"></i></span>
|
||||
<select class="form-control select2" name="credential_id">
|
||||
<select class="form-select select2" name="credential_id">
|
||||
<option value="">- Select a Credential -</option>
|
||||
<?php
|
||||
$sql_credentials_select = mysqli_query($mysqli, "
|
||||
|
||||
@@ -31,7 +31,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-folder"></i></span>
|
||||
<select class="form-control select2" name="document_id">
|
||||
<select class="form-select select2" name="document_id">
|
||||
<option value="">- Select a Document -</option>
|
||||
<?php
|
||||
$sql_documents_select = mysqli_query($mysqli, "
|
||||
|
||||
@@ -31,7 +31,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-paperclip"></i></span>
|
||||
<select class="form-control select2" name="file_id">
|
||||
<select class="form-select select2" name="file_id">
|
||||
<option value="">- Select a File -</option>
|
||||
<?php
|
||||
$sql_files_select = mysqli_query($mysqli, "
|
||||
|
||||
@@ -31,7 +31,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-stream"></i></span>
|
||||
<select class="form-control select2" name="service_id">
|
||||
<select class="form-select select2" name="service_id">
|
||||
<option value="">- Select a Service -</option>
|
||||
<?php
|
||||
$sql_services_select = mysqli_query($mysqli, "
|
||||
|
||||
@@ -31,7 +31,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-cube"></i></span>
|
||||
<select class="form-control select2" name="software_id">
|
||||
<select class="form-select select2" name="software_id">
|
||||
<option value="">- Select a User Software License -</option>
|
||||
<?php
|
||||
$sql_software_select = mysqli_query($mysqli, "
|
||||
|
||||
@@ -32,7 +32,7 @@ ob_start();
|
||||
<label>Type</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-comment"></i></span>
|
||||
<select class="form-control select2" name="type">
|
||||
<select class="form-select select2" name="type">
|
||||
<?php
|
||||
$sql_contact_note_types_select = mysqli_query($mysqli, "
|
||||
SELECT category_name FROM categories
|
||||
|
||||
Reference in New Issue
Block a user