mirror of
https://github.com/itflow-org/itflow
synced 2026-09-14 10:45: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:
@@ -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" id="changeClientSelect" required <?php if ($client_id) { echo "disabled"; } ?>>
|
||||
<select class="form-select select2" name="client_id" id="changeClientSelect" required <?php if ($client_id) { echo "disabled"; } ?>>
|
||||
<option value="">- Select a Client -</option>
|
||||
<?php
|
||||
|
||||
@@ -75,7 +75,7 @@ ob_start();
|
||||
<label>Contact </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="contact_id" id="contactSelect" data-selected="<?= $contact_id ?>">
|
||||
<select class="form-select select2" name="contact_id" id="contactSelect" data-selected="<?= $contact_id ?>">
|
||||
<option value="0">- No One -</option>
|
||||
</select>
|
||||
</div>
|
||||
@@ -104,7 +104,7 @@ ob_start();
|
||||
<label>Priority <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-thermometer-half"></i></span>
|
||||
<select class="form-control select2" name="priority" required>
|
||||
<select class="form-select select2" name="priority" required>
|
||||
<option>Low</option>
|
||||
<option>Medium</option>
|
||||
<option>High</option>
|
||||
@@ -119,7 +119,7 @@ ob_start();
|
||||
<label>Category</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-layer-group"></i></span>
|
||||
<select class="form-control select2" name="category_id">
|
||||
<select class="form-select select2" name="category_id">
|
||||
<option value="0">- Not Categorized -</option>
|
||||
<?php
|
||||
$sql_categories = mysqli_query($mysqli, "SELECT category_id, category_name FROM categories WHERE category_type = 'Ticket' AND category_archived_at IS NULL ORDER BY category_name ASC");
|
||||
@@ -147,7 +147,7 @@ ob_start();
|
||||
<label>Assign to</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-user-check"></i></span>
|
||||
<select class="form-control select2" name="assigned_to">
|
||||
<select class="form-select select2" name="assigned_to">
|
||||
<option value="0">- Unassigned -</option>
|
||||
<?php
|
||||
|
||||
@@ -199,7 +199,7 @@ ob_start();
|
||||
<label>Project</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-project-diagram"></i></span>
|
||||
<select class="form-control select2" name="project_id" id="projectSelect" data-selected="<?= $project_id ?>">
|
||||
<select class="form-select select2" name="project_id" id="projectSelect" data-selected="<?= $project_id ?>">
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@@ -208,7 +208,7 @@ ob_start();
|
||||
<label>Asset</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="asset_id" id="assetSelect" data-selected="<?= $asset_id ?>">
|
||||
<select class="form-select select2" name="asset_id" id="assetSelect" data-selected="<?= $asset_id ?>">
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@@ -217,7 +217,7 @@ ob_start();
|
||||
<label>Additional Assets</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="additional_assets[]" id="additionalAssetsSelect" data-placeholder="- Select Additional Assets -" multiple>
|
||||
<select class="form-select select2" name="additional_assets[]" id="additionalAssetsSelect" data-placeholder="- Select Additional Assets -" multiple>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@@ -226,7 +226,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_id" id="locationSelect">
|
||||
<select class="form-select select2" name="location_id" id="locationSelect">
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@@ -238,7 +238,7 @@ ob_start();
|
||||
<label>Vendor</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-building"></i></span>
|
||||
<select class="form-control select2" name="vendor_id" id="vendorSelect">
|
||||
<select class="form-select select2" name="vendor_id" id="vendorSelect">
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@@ -260,7 +260,7 @@ ob_start();
|
||||
<label>Watchers</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-envelope"></i></span>
|
||||
<select class="form-control select2" name="watchers[]" id="watchersSelect" data-tags="true" data-placeholder="Enter or select email address" multiple>
|
||||
<select class="form-select select2" name="watchers[]" id="watchersSelect" data-tags="true" data-placeholder="Enter or select email address" multiple>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -28,7 +28,7 @@ ob_start();
|
||||
<label>Watcher Email</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-envelope"></i></span>
|
||||
<select class="form-control select2" data-tags="true" name="watcher_email">
|
||||
<select class="form-select select2" data-tags="true" name="watcher_email">
|
||||
<option value="">- Select a contact or enter an email(s) -</option>
|
||||
<?php
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ ob_start();
|
||||
<label>Assign to</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-user-check"></i></span>
|
||||
<select class="form-control select2" name="assigned_to">
|
||||
<select class="form-select select2" name="assigned_to">
|
||||
<option value="0">Unassigned</option>
|
||||
<?php
|
||||
$sql_users_select = mysqli_query($mysqli, "SELECT user_id, user_name FROM users
|
||||
|
||||
@@ -34,7 +34,7 @@ ob_start();
|
||||
<label>Billable?</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-money-bill"></i></span>
|
||||
<select class="form-control" name="billable_status">
|
||||
<select class="form-select" name="billable_status">
|
||||
<option <?php if ($ticket_billable == 1) { echo "selected"; } ?> value="1">Yes</option>
|
||||
<option <?php if ($ticket_billable == 0) { echo "selected"; } ?> value="0">No</option>
|
||||
</select>
|
||||
|
||||
@@ -25,7 +25,7 @@ ob_start();
|
||||
<label>Project</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-project-diagram"></i></span>
|
||||
<select class="form-control select2" name="project_id">
|
||||
<select class="form-select select2" name="project_id">
|
||||
<option value="0">No Project</option>
|
||||
<?php
|
||||
$sql_projects_select = mysqli_query($mysqli, "SELECT project_id, project_name, project_prefix, project_number FROM projects
|
||||
|
||||
@@ -25,7 +25,7 @@ ob_start();
|
||||
<label>Assign to</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-user-check"></i></span>
|
||||
<select class="form-control select2" name="assign_to">
|
||||
<select class="form-select select2" name="assign_to">
|
||||
<option value="0">Not Assigned</option>
|
||||
<?php
|
||||
$sql_users_select = mysqli_query($mysqli, "SELECT user_id, user_name FROM users
|
||||
|
||||
@@ -27,7 +27,7 @@ ob_start();
|
||||
<label>Category</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-layer-group"></i></span>
|
||||
<select class="form-control select2" name="bulk_category">
|
||||
<select class="form-select select2" name="bulk_category">
|
||||
<option value="0">- Uncategorized -</option>
|
||||
<?php
|
||||
$sql_categories = mysqli_query($mysqli, "SELECT category_id, category_name FROM categories WHERE category_type = 'Ticket' AND category_archived_at IS NULL ORDER BY category_name ASC");
|
||||
|
||||
@@ -25,7 +25,7 @@ ob_start();
|
||||
<label>Priority</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-thermometer-half"></i></span>
|
||||
<select class="form-control select2" name="bulk_priority">
|
||||
<select class="form-select select2" name="bulk_priority">
|
||||
<option>Low</option>
|
||||
<option>Medium</option>
|
||||
<option>High</option>
|
||||
|
||||
@@ -43,7 +43,7 @@ ob_start();
|
||||
<label>Ticket number to merge this ticket into <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-tag"></i></span>
|
||||
<select class="form-control select2" name="merge_into_ticket_id" required>
|
||||
<select class="form-select select2" name="merge_into_ticket_id" required>
|
||||
<option value=''>- Select a Ticket -</option>
|
||||
<?php
|
||||
while ($row = mysqli_fetch_assoc($sql_merge)) {
|
||||
|
||||
@@ -24,7 +24,7 @@ ob_start();
|
||||
<div class="input-group mb-3">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-thermometer-half"></i></span>
|
||||
|
||||
<select class="form-control select2" name="bulk_status" required>
|
||||
<select class="form-select select2" name="bulk_status" required>
|
||||
|
||||
<!-- Show all active ticket statuses, apart from new or closed as these are system-managed -->
|
||||
<?php $sql_ticket_status = mysqli_query($mysqli, "SELECT ticket_status_id, ticket_status_name FROM ticket_statuses WHERE ticket_status_id != 1 AND ticket_status_id != 5 AND ticket_status_active = 1");
|
||||
|
||||
@@ -38,7 +38,7 @@ ob_start();
|
||||
<label>New Client <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-users"></i></span>
|
||||
<select class="form-control select2" name="new_client_id" id="client_select" required>
|
||||
<select class="form-select select2" name="new_client_id" id="client_select" required>
|
||||
<?php
|
||||
$sql_clients = mysqli_query($mysqli, "SELECT client_id, client_name FROM clients WHERE client_lead = 0 AND client_archived_at IS NULL " . clientScopeSql('clients.client_id') . " ORDER BY client_name ASC");
|
||||
while ($row = mysqli_fetch_assoc($sql_clients)) {
|
||||
@@ -57,7 +57,7 @@ ob_start();
|
||||
<label>New Contact</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="new_contact_id" id="contact_select">
|
||||
<select class="form-select select2" name="new_contact_id" id="contact_select">
|
||||
<option value="">- Select a contact -</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
@@ -38,7 +38,7 @@ ob_start();
|
||||
<label>Contact</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="contact">
|
||||
<select class="form-select select2" name="contact">
|
||||
<option value="">No One</option>
|
||||
<?php
|
||||
$sql_client_contacts_select = mysqli_query($mysqli, "SELECT contact_id, contact_name, contact_title, contact_primary, contact_technical FROM contacts WHERE contact_client_id = $client_id AND contact_archived_at IS NULL ORDER BY contact_primary DESC, contact_technical DESC, contact_name ASC");
|
||||
|
||||
@@ -98,7 +98,7 @@ ob_start();
|
||||
<label>Priority <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-thermometer-half"></i></span>
|
||||
<select class="form-control select2" name="priority" required>
|
||||
<select class="form-select select2" name="priority" required>
|
||||
<option <?php if ($ticket_priority == 'Low') { echo "selected"; } ?> >Low</option>
|
||||
<option <?php if ($ticket_priority == 'Medium') { echo "selected"; } ?> >Medium</option>
|
||||
<option <?php if ($ticket_priority == 'High') { echo "selected"; } ?> >High</option>
|
||||
@@ -113,7 +113,7 @@ ob_start();
|
||||
<label>Category</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-layer-group"></i></span>
|
||||
<select class="form-control select2" name="category_id">
|
||||
<select class="form-select select2" name="category_id">
|
||||
<option value="0">- Uncategorized -</option>
|
||||
<?php
|
||||
$sql_categories = mysqli_query($mysqli, "SELECT category_id, category_name FROM categories WHERE category_type = 'Ticket' AND category_archived_at IS NULL ORDER BY category_name ASC");
|
||||
@@ -141,7 +141,7 @@ ob_start();
|
||||
<label>Assign to</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-user-check"></i></span>
|
||||
<select class="form-control select2" name="assigned_to">
|
||||
<select class="form-select select2" name="assigned_to">
|
||||
<option value="0">Not Assigned</option>
|
||||
<?php
|
||||
|
||||
@@ -193,7 +193,7 @@ ob_start();
|
||||
<label>Contact</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="contact_id">
|
||||
<select class="form-select select2" name="contact_id">
|
||||
<option value="0">No One</option>
|
||||
<?php
|
||||
$sql_client_contacts_select = mysqli_query($mysqli, "SELECT contact_id, contact_name, contact_title, contact_primary, contact_technical FROM contacts WHERE contact_client_id = $client_id AND contact_archived_at IS NULL ORDER BY contact_primary DESC, contact_technical DESC, contact_name ASC");
|
||||
@@ -245,7 +245,7 @@ ob_start();
|
||||
<label>Asset</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="asset_id">
|
||||
<select class="form-select select2" name="asset_id">
|
||||
<option value="0">- None -</option>
|
||||
<?php
|
||||
|
||||
@@ -268,7 +268,7 @@ ob_start();
|
||||
<label>Additional Assets</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="additional_assets[]" data-tags="true" data-placeholder="- Select Additional Assets -" multiple>
|
||||
<select class="form-select select2" name="additional_assets[]" data-tags="true" data-placeholder="- Select Additional Assets -" multiple>
|
||||
<option value=""></option>
|
||||
<?php
|
||||
|
||||
@@ -291,7 +291,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_id">
|
||||
<select class="form-select select2" name="location_id">
|
||||
<option value="0">- None -</option>
|
||||
<?php
|
||||
|
||||
@@ -317,7 +317,7 @@ ob_start();
|
||||
<label>Vendor</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-building"></i></span>
|
||||
<select class="form-control select2" name="vendor_id">
|
||||
<select class="form-select select2" name="vendor_id">
|
||||
<option value="0">- None -</option>
|
||||
<?php
|
||||
|
||||
@@ -355,7 +355,7 @@ ob_start();
|
||||
<label>Project</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-project-diagram"></i></span>
|
||||
<select class="form-control select2" name="project_id">
|
||||
<select class="form-select select2" name="project_id">
|
||||
<option value="0">- None -</option>
|
||||
<?php
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ ob_start();
|
||||
<label>Asset</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="asset">
|
||||
<select class="form-select select2" name="asset">
|
||||
<option value="0">- None -</option>
|
||||
<?php
|
||||
|
||||
@@ -67,7 +67,7 @@ ob_start();
|
||||
<label>Additional Assets</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="additional_assets[]" data-tags="true" data-placeholder="- Select Additional Assets -" multiple>
|
||||
<select class="form-select select2" name="additional_assets[]" data-tags="true" data-placeholder="- Select Additional Assets -" multiple>
|
||||
<option value=""></option>
|
||||
<?php
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ ob_start();
|
||||
<label>Project</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-project-diagram"></i></span>
|
||||
<select class="form-control select2" name="project">
|
||||
<select class="form-select select2" name="project">
|
||||
<option value="0">- None -</option>
|
||||
<?php
|
||||
while ($row = mysqli_fetch_assoc($sql_projects)) {
|
||||
|
||||
@@ -52,7 +52,7 @@ ob_start();
|
||||
<label>Onsite?</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" name="onsite" required>
|
||||
<select class="form-select" name="onsite" required>
|
||||
<option value="0" <?php if ($ticket_onsite == 0) echo "selected"; ?>>No</option>
|
||||
<option value="1" <?php if ($ticket_onsite == 1) echo "selected"; ?>>Yes</option>
|
||||
</select>
|
||||
|
||||
@@ -35,7 +35,7 @@ ob_start();
|
||||
<label>Vendor</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-building"></i></span>
|
||||
<select class="form-control select2" name="vendor">
|
||||
<select class="form-select select2" name="vendor">
|
||||
<option value="0">- None -</option>
|
||||
<?php
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ ob_start();
|
||||
<label>Status</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-tasks"></i></span>
|
||||
<select class="form-control select2" name="status[]" data-placeholder="- Open tickets -" multiple>
|
||||
<select class="form-select select2" name="status[]" data-placeholder="- Open tickets -" multiple>
|
||||
<?php
|
||||
$sql_statuses_filter = mysqli_query($mysqli, "SELECT ticket_status_id, ticket_status_name FROM ticket_statuses ORDER BY ticket_status_name ASC");
|
||||
while ($row = mysqli_fetch_assoc($sql_statuses_filter)) {
|
||||
@@ -92,7 +92,7 @@ ob_start();
|
||||
<label>Resolution</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-check"></i></span>
|
||||
<select class="form-control select2" name="resolution">
|
||||
<select class="form-select select2" name="resolution">
|
||||
<option <?php if ($state_filter === 'open') { echo "selected"; } ?> value="">Open</option>
|
||||
<option <?php if ($state_filter === 'closed') { echo "selected"; } ?> value="Closed">Closed</option>
|
||||
<option <?php if ($state_filter === 'all') { echo "selected"; } ?> value="All">Open and closed</option>
|
||||
@@ -105,7 +105,7 @@ ob_start();
|
||||
<label>Billing</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-dollar-sign"></i></span>
|
||||
<select class="form-control select2" name="billing">
|
||||
<select class="form-select select2" name="billing">
|
||||
<option value="">- Any -</option>
|
||||
<option <?php if ($billing_filter === 'unbilled') { echo "selected"; } ?> value="unbilled">Billable, not invoiced</option>
|
||||
<option <?php if ($billing_filter === 'invoiced') { echo "selected"; } ?> value="invoiced">Invoiced</option>
|
||||
@@ -120,7 +120,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 tickets WHERE ticket_client_id = client_id) ORDER BY client_name ASC");
|
||||
@@ -141,7 +141,7 @@ ob_start();
|
||||
<label>Category</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-list"></i></span>
|
||||
<select class="form-control select2" name="category">
|
||||
<select class="form-select select2" name="category">
|
||||
<option value="">- All Categories -</option>
|
||||
<?php
|
||||
$sql_category_filter = mysqli_query($mysqli, "SELECT category_id, category_name FROM categories WHERE category_type = 'Ticket' ORDER BY category_name ASC");
|
||||
@@ -161,7 +161,7 @@ ob_start();
|
||||
<label>Assigned To</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-user-tie"></i></span>
|
||||
<select class="form-control select2" name="assigned">
|
||||
<select class="form-select select2" name="assigned">
|
||||
<option value="">- Anyone -</option>
|
||||
<?php
|
||||
$sql_assigned_filter = mysqli_query($mysqli, "SELECT user_id, user_name FROM users WHERE user_type = 1 AND user_archived_at IS NULL ORDER BY user_name ASC");
|
||||
@@ -181,7 +181,7 @@ ob_start();
|
||||
<label>SLA</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-stopwatch"></i></span>
|
||||
<select class="form-control select2" name="sla">
|
||||
<select class="form-select select2" name="sla">
|
||||
<option value="">- Any SLA state -</option>
|
||||
<option <?php if ($sla_filter === 'breached') { echo "selected"; } ?> value="breached">Breached</option>
|
||||
<option <?php if ($sla_filter === 'at_risk') { echo "selected"; } ?> value="at_risk">At risk</option>
|
||||
|
||||
@@ -134,7 +134,7 @@ ob_start();
|
||||
<label>Existing Invoice</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-file-invoice-dollar"></i></span>
|
||||
<select class="form-control" name="invoice_id">
|
||||
<select class="form-select" name="invoice_id">
|
||||
<option value="0">- Select an Existing Invoice -</option>
|
||||
<?php
|
||||
|
||||
@@ -177,7 +177,7 @@ ob_start();
|
||||
<label>Invoice Category <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-list"></i></span>
|
||||
<select class="form-control select2" name="category">
|
||||
<select class="form-select select2" name="category">
|
||||
<option value="">- Select a Category -</option>
|
||||
<?php
|
||||
|
||||
@@ -202,7 +202,7 @@ ob_start();
|
||||
<label>Invoice Title</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="scope" data-tags="true" data-placeholder="- Enter or Select an Invoice Title -">
|
||||
<select class="form-select select2" name="scope" data-tags="true" data-placeholder="- Enter or Select an Invoice Title -">
|
||||
<option value=""></option>
|
||||
<option><?= date('F Y'); ?> Tickets</option>
|
||||
<option><?= "Ticket $ticket_prefix$ticket_number - $ticket_subject" ?></option>
|
||||
@@ -296,7 +296,7 @@ ob_start();
|
||||
<label>Tax <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-piggy-bank"></i></span>
|
||||
<select class="form-control select2" name="tax_id" required>
|
||||
<select class="form-select select2" name="tax_id" required>
|
||||
<option value="0">None</option>
|
||||
<?php
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ ob_start();
|
||||
<label>Ticket number to merge this ticket into <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-tag"></i></span>
|
||||
<select class="form-control select2" name="merge_into_ticket_id" required>
|
||||
<select class="form-select select2" name="merge_into_ticket_id" required>
|
||||
<option value=''>- Select a Ticket -</option>
|
||||
<?php
|
||||
while ($row = mysqli_fetch_assoc($sql_merge)) {
|
||||
|
||||
@@ -41,7 +41,7 @@ ob_start();
|
||||
<label>Priority</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-thermometer-half"></i></span>
|
||||
<select class="form-control select2" name="priority" required>
|
||||
<select class="form-select select2" name="priority" required>
|
||||
<option <?php if ($ticket_priority == 'Low') { echo "selected"; } ?> >Low</option>
|
||||
<option <?php if ($ticket_priority == 'Medium') { echo "selected"; } ?> >Medium</option>
|
||||
<option <?php if ($ticket_priority == 'High') { echo "selected"; } ?> >High</option>
|
||||
|
||||
@@ -101,7 +101,7 @@ ob_start();
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-list"></i></span>
|
||||
|
||||
<select class="form-control select2" name="category">
|
||||
<select class="form-select select2" name="category">
|
||||
<option value="">- Select a Category -</option>
|
||||
<?php
|
||||
$sql = mysqli_query($mysqli, "SELECT category_id, category_name FROM categories WHERE category_type = 'Income' AND category_archived_at IS NULL ORDER BY category_name ASC");
|
||||
@@ -193,7 +193,7 @@ ob_start();
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-piggy-bank"></i></span>
|
||||
|
||||
<select class="form-control select2" name="tax_id" required>
|
||||
<select class="form-select select2" name="tax_id" required>
|
||||
<option value="0">None</option>
|
||||
<?php
|
||||
$taxes_sql = mysqli_query($mysqli, "SELECT tax_id, tax_name, tax_percent FROM taxes WHERE tax_archived_at IS NULL ORDER BY tax_name ASC");
|
||||
|
||||
@@ -37,13 +37,11 @@ ob_start();
|
||||
<div class="modal-body">
|
||||
|
||||
<div class="mb-3">
|
||||
<div class="btn-group w-100 btn-group-toggle" data-toggle="buttons">
|
||||
<label class="btn btn-outline-secondary <?php if ($ticket_reply_type == 'Internal') { echo "active"; } ?>">
|
||||
<input type="radio" name="ticket_reply_type" value="Internal" <?php if ($ticket_reply_type == 'Internal') { echo "checked"; } ?>>Internal Note
|
||||
</label>
|
||||
<label class="btn btn-outline-secondary <?php if ($ticket_reply_type == 'Public') { echo "active"; } ?>">
|
||||
<input type="radio" name="ticket_reply_type" value="Public" <?php if ($ticket_reply_type == 'Public') { echo "checked"; } ?>>Public Comment
|
||||
</label>
|
||||
<div class="btn-group w-100" role="group">
|
||||
<input class="btn-check" id="ticket_reply_type_opt0" type="radio" name="ticket_reply_type" value="Internal" <?php if ($ticket_reply_type == 'Internal') { echo "checked"; } ?>>
|
||||
<label class="btn btn-outline-secondary" for="ticket_reply_type_opt0">Internal Note</label>
|
||||
<input class="btn-check" id="ticket_reply_type_opt1" type="radio" name="ticket_reply_type" value="Public" <?php if ($ticket_reply_type == 'Public') { echo "checked"; } ?>>
|
||||
<label class="btn btn-outline-secondary" for="ticket_reply_type_opt1">Public Comment</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ ob_start();
|
||||
<label>SLA</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-stopwatch"></i></span>
|
||||
<select class="form-control select2" name="sla_id" required>
|
||||
<select class="form-select select2" name="sla_id" required>
|
||||
<option value="0" <?php if ($ticket_sla_id == 0) { echo "selected"; } ?>>None</option>
|
||||
<?php while ($sla_row = mysqli_fetch_assoc($sql_slas)) { ?>
|
||||
<option value="<?= intval($sla_row['sla_id']) ?>" <?php if ($ticket_sla_id == intval($sla_row['sla_id'])) { echo "selected"; } ?>><?= escapeHtml($sla_row['sla_name']) ?></option>
|
||||
|
||||
@@ -38,7 +38,7 @@ ob_start();
|
||||
<label>Approval scope <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-layer-group"></i></span>
|
||||
<select class="form-control" name="approval_scope" id="approval_scope" required>
|
||||
<select class="form-select" name="approval_scope" id="approval_scope" required>
|
||||
<option value="">Select scope...</option>
|
||||
<option value="internal">Internal</option>
|
||||
<option value="client">Client</option>
|
||||
@@ -51,7 +51,7 @@ ob_start();
|
||||
<label>Who can approve? <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-user-check"></i></span>
|
||||
<select class="form-control" name="approval_type" id="approval_type" required>
|
||||
<select class="form-select" name="approval_type" id="approval_type" required>
|
||||
<!-- JS -->
|
||||
</select>
|
||||
</div>
|
||||
@@ -62,7 +62,7 @@ ob_start();
|
||||
<label>Select specific internal approver <strong class="text-danger">*</strong></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" name="approval_required_user_id" id="specific_user_select">
|
||||
<select class="form-select select2" name="approval_required_user_id" id="specific_user_select">
|
||||
<option value="">Select user...</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user