Switch some bg-primary to bg-blue so they are consistent across themes, use new bs5 to reduce width on certain form inputs

This commit is contained in:
johnnyq
2026-08-25 17:44:18 -04:00
parent 4b9c53675c
commit fdc2a8c2c3
25 changed files with 38 additions and 38 deletions

View File

@@ -185,7 +185,7 @@ if (!empty($_SESSION['backup_master_key_reveal'])) {
</div>
<?php if ($backup_key !== '') { ?>
<div class="input-group col-md-6 px-0">
<div class="input-group">
<input type="text" class="form-control font-monospace" value="<?= escapeHtml($backup_key) ?>" readonly onclick="this.select();">
<button class="btn btn-secondary" type="button" onclick="navigator.clipboard.writeText('<?= escapeHtml($backup_key) ?>');">
<i class="fas fa-fw fa-copy"></i>

View File

@@ -48,7 +48,7 @@ $category_types_array = ['Expense', 'Income', 'Referral', 'Ticket'];
<label>Color <strong class="text-danger">*</strong></label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-paint-brush"></i></span>
<input type="color" class="form-control col-3" name="color" required>
<input type="color" class="form-control form-control-color w-auto flex-grow-0" name="color" required>
</div>
</div>

View File

@@ -37,7 +37,7 @@ ob_start();
<label>Color <strong class="text-danger">*</strong></label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-paint-brush"></i></span>
<input type="color" class="form-control col-3" name="color" value="<?= $category_color ?>" required>
<input type="color" class="form-control form-control-color w-auto flex-grow-0" name="color" value="<?= $category_color ?>" required>
</div>
</div>

View File

@@ -67,7 +67,7 @@ ob_start();
<label>Color <strong class="text-danger">*</strong></label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-paint-brush"></i></span>
<input type="color" class="form-control col-3" name="color" required>
<input type="color" class="form-control form-control-color w-auto flex-grow-0" name="color" required>
</div>
</div>

View File

@@ -50,7 +50,7 @@ ob_start();
<label>Color <strong class="text-danger">*</strong></label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-paint-brush"></i></span>
<input type="color" class="form-control col-3" name="color" value="<?= $tag_color ?>" required>
<input type="color" class="form-control form-control-color w-auto flex-grow-0" name="color" value="<?= $tag_color ?>" required>
</div>
</div>

View File

@@ -20,7 +20,7 @@ ob_start();
</div>
<div class="mb-3">
<label>Percent <strong class="text-danger">*</strong></label>
<input type="number" min="0" step="any" class="form-control col-md-4" name="percent">
<input type="number" min="0" step="any" class="form-control w-25" name="percent">
</div>
</div>
<div class="modal-footer">

View File

@@ -30,7 +30,7 @@ ob_start();
<div class="mb-3">
<label>Percent <strong class="text-danger">*</strong></label>
<input type="number" min="0" step="any" class="form-control col-md-4" name="percent" value="<?= $tax_percent ?>">
<input type="number" min="0" step="any" class="form-control w-25" name="percent" value="<?= $tax_percent ?>">
</div>
</div>

View File

@@ -23,7 +23,7 @@ ob_start();
<label>Color <strong class="text-danger">*</strong></label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-paint-brush"></i></span>
<input type="color" class="form-control col-3" name="color" required>
<input type="color" class="form-control form-control-color w-auto flex-grow-0" name="color" required>
</div>
</div>

View File

@@ -41,7 +41,7 @@ ob_start();
<label>Color <strong class="text-danger">*</strong></label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-paint-brush"></i></span>
<input type="color" class="form-control col-3" name="color" value="<?= $ticket_status_color ?>" required>
<input type="color" class="form-control form-control-color w-auto flex-grow-0" name="color" value="<?= $ticket_status_color ?>" required>
</div>
</div>

View File

@@ -75,7 +75,7 @@ ob_start();
<div class="mb-3">
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-phone"></i></span>
<input type="tel" class="form-control col-2" name="phone_country_code" placeholder="+" maxlength="4">
<input type="tel" class="form-control w-25 flex-grow-0" name="phone_country_code" placeholder="+" maxlength="4">
<input type="tel" class="form-control" name="phone" placeholder="Phone Number" maxlength="200">
</div>
</div>

View File

@@ -119,7 +119,7 @@ ob_start();
<div class="mb-3">
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-phone"></i></span>
<input type="tel" class="form-control col-2" name="phone_country_code" placeholder="+" maxlength="4" value="<?= $vendor_phone_country_code ?>">
<input type="tel" class="form-control w-25 flex-grow-0" name="phone_country_code" placeholder="+" maxlength="4" value="<?= $vendor_phone_country_code ?>">
<input type="tel" class="form-control" name="phone" maxlength="200" value="<?= $vendor_phone ?>">
</div>
</div>

View File

@@ -108,7 +108,7 @@ $company_initials = escapeHtml(initials($company_name));
<div class="mb-3">
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-phone"></i></span>
<input type="tel" class="form-control col-2" name="phone_country_code" value="<?= $company_phone_country_code ?>" placeholder="+" maxlength="4">
<input type="tel" class="form-control w-25 flex-grow-0" name="phone_country_code" value="<?= $company_phone_country_code ?>" placeholder="+" maxlength="4">
<input type="tel" class="form-control" name="phone" value="<?= $company_phone ?>" placeholder="Phone Number" maxlength="200">
</div>
</div>

View File

@@ -31,7 +31,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
<div class="card-header py-3">
<form autocomplete="off">
<div class="input-group">
<input type="search" class="form-control col-md-4" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search Accounts">
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search Accounts">
<button class="btn btn-primary"><i class="fa fa-search"></i></button>
</div>
</form>

View File

@@ -46,12 +46,12 @@ $sql_years_select = mysqli_query($mysqli, "
</style>
<div class="card card-body">
<form class="d-flex align-items-center gap-2">
<form class="d-flex flex-wrap align-items-center gap-2">
<input type="hidden" name="enable_financial" value="0">
<input type="hidden" name="enable_technical" value="0">
<label for="year" class="me-sm-2">Select Year:</label>
<select id="year" onchange="this.form.submit()" class="form-select me-sm-3 col-sm-2 mb-3 mb-sm-0" name="year">
<select id="year" onchange="this.form.submit()" class="form-select w-auto me-sm-3" name="year">
<?php while ($row = mysqli_fetch_assoc($sql_years_select)) {
$year_select = $row['all_years'];
if (empty($year_select)) {
@@ -179,7 +179,7 @@ if ($user_config_dashboard_financial_enable == 1) {
<div class="row">
<div class="col-lg-4 col-md-6 col-sm-12">
<!-- small box -->
<a class="small-box bg-primary" href="income.php?dtf=<?= $year ?>-01-01&dtt=<?= $year ?>-12-31">
<a class="small-box bg-blue text-white" href="income.php?dtf=<?= $year ?>-01-01&dtt=<?= $year ?>-12-31">
<div class="inner">
<h3><?= numfmt_format_currency($currency_format, $total_income, "$session_company_currency") ?></h3>
<p>Income</p>
@@ -223,7 +223,7 @@ if ($user_config_dashboard_financial_enable == 1) {
<div class="col-lg-6 col-md-6 col-sm-12">
<!-- small box -->
<a class="small-box bg-info" href="reports/recurring_by_client.php">
<a class="small-box bg-info text-white" href="reports/recurring_by_client.php">
<div class="inner">
<h3><?= numfmt_format_currency($currency_format, $recurring_monthly_total, "$session_company_currency") ?></h3>
<p>Monthly Recurring Income</p>
@@ -237,7 +237,7 @@ if ($user_config_dashboard_financial_enable == 1) {
<div class="col-lg-6 col-md-6 col-sm-12">
<!-- small box -->
<a class="small-box bg-pink" href="recurring_expenses.php">
<a class="small-box bg-pink text-white" href="recurring_expenses.php">
<div class="inner">
<h3><?= numfmt_format_currency($currency_format, $recurring_expense_monthly_total, "$session_company_currency") ?></h3>
<p>Monthly Recurring Expense</p>

View File

@@ -328,7 +328,7 @@ $summary_total_income = floatval($row['total_income']);
<div class="row">
<div class="col-lg-4 col-md-6 col-sm-12">
<!-- small box -->
<div class="small-box bg-primary">
<div class="small-box bg-blue text-white">
<div class="inner">
<h3><?= numfmt_format_currency($currency_format, $summary_total_payments, $session_company_currency) ?></h3>
<p>Invoice Payments</p>
@@ -342,7 +342,7 @@ $summary_total_income = floatval($row['total_income']);
<div class="col-lg-4 col-md-6 col-sm-12">
<!-- small box -->
<div class="small-box bg-info">
<div class="small-box bg-info text-white">
<div class="inner">
<h3><?= numfmt_format_currency($currency_format, $summary_total_revenues, $session_company_currency) ?></h3>
<p>Other Revenue</p>
@@ -463,7 +463,7 @@ $summary_total_income = floatval($row['total_income']);
if ($income_type == 'Payment') {
$income_edit_modal = "modals/payment/payment_edit.php?id=$income_id";
$income_delete_action = "delete_payment=$income_id";
$income_type_badge = "bg-primary";
$income_type_badge = "bg-blue";
} else {
$income_edit_modal = "modals/revenue/revenue_edit.php?id=$income_id";
$income_delete_action = "delete_revenue=$income_id";

View File

@@ -27,7 +27,7 @@ ob_start();
<label>Color <strong class="text-danger">*</strong></label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-paint-brush"></i></span>
<input type="color" class="form-control col-3" name="color" required>
<input type="color" class="form-control form-control-color w-auto flex-grow-0" name="color" required>
</div>
</div>

View File

@@ -35,7 +35,7 @@ ob_start();
<label>Color <strong class="text-danger">*</strong></label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-paint-brush"></i></span>
<input type="color" class="form-control col-3" name="color" value="<?= $calendar_color ?>" required>
<input type="color" class="form-control form-control-color w-auto flex-grow-0" name="color" value="<?= $calendar_color ?>" required>
</div>
</div>

View File

@@ -195,7 +195,7 @@ ob_start();
<div class="mb-3">
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-phone"></i></span>
<input type="tel" class="form-control col-2" name="location_phone_country_code" placeholder="+" maxlength="4">
<input type="tel" class="form-control w-25 flex-grow-0" name="location_phone_country_code" placeholder="+" maxlength="4">
<input type="tel" class="form-control" name="location_phone" placeholder="Phone Number" maxlength="200">
</div>
</div>
@@ -213,7 +213,7 @@ ob_start();
<div class="mb-3">
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-fax"></i></span>
<input type="tel" class="form-control col-2" name="location_fax_country_code" placeholder="+" maxlength="4">
<input type="tel" class="form-control w-25 flex-grow-0" name="location_fax_country_code" placeholder="+" maxlength="4">
<input type="tel" class="form-control" name="location_fax" placeholder="Fax Number" maxlength="200">
</div>
</div>
@@ -246,7 +246,7 @@ ob_start();
<div class="mb-3">
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-phone"></i></span>
<input type="tel" class="form-control col-2" name="contact_phone_country_code" placeholder="+" maxlength="4">
<input type="tel" class="form-control w-25 flex-grow-0" name="contact_phone_country_code" placeholder="+" maxlength="4">
<input type="tel" class="form-control" name="contact_phone" placeholder="Phone Number" maxlength="200">
</div>
</div>
@@ -264,7 +264,7 @@ ob_start();
<div class="mb-3">
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-mobile-alt"></i></span>
<input type="tel" class="form-control col-2" name="contact_mobile_country_code" placeholder="+" maxlength="4">
<input type="tel" class="form-control w-25 flex-grow-0" name="contact_mobile_country_code" placeholder="+" maxlength="4">
<input type="tel" class="form-control" name="contact_mobile" placeholder="Mobile Phone Number" maxlength="200">
</div>
</div>

View File

@@ -103,7 +103,7 @@ ob_start();
<div class="mb-3">
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-phone"></i></span>
<input type="tel" class="form-control col-2" name="phone_country_code" placeholder="+" maxlength="4">
<input type="tel" class="form-control w-25 flex-grow-0" name="phone_country_code" placeholder="+" maxlength="4">
<input type="tel" class="form-control" name="phone" placeholder="Phone Number" maxlength="200">
</div>
</div>
@@ -121,7 +121,7 @@ ob_start();
<div class="mb-3">
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-mobile-alt"></i></span>
<input type="tel" class="form-control col-2" name="mobile_country_code" placeholder="+" maxlength="4">
<input type="tel" class="form-control w-25 flex-grow-0" name="mobile_country_code" placeholder="+" maxlength="4">
<input type="tel" class="form-control" name="mobile" placeholder="Mobile Phone Number" maxlength="200">
</div>
</div>

View File

@@ -119,7 +119,7 @@ ob_start();
<div class="mb-3">
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-phone"></i></span>
<input type="tel" class="form-control col-2" name="phone_country_code" value="<?= "$contact_phone_country_code" ?>" placeholder="+" maxlength="4">
<input type="tel" class="form-control w-25 flex-grow-0" name="phone_country_code" value="<?= "$contact_phone_country_code" ?>" placeholder="+" maxlength="4">
<input type="tel" class="form-control" name="phone" value="<?= $contact_phone ?>" placeholder="Phone Number" maxlength="200">
</div>
</div>
@@ -137,7 +137,7 @@ ob_start();
<div class="mb-3">
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-mobile-alt"></i></span>
<input type="tel" class="form-control col-2" name="mobile_country_code" value="<?= "$contact_mobile_country_code" ?>" placeholder="+" maxlength="4">
<input type="tel" class="form-control w-25 flex-grow-0" name="mobile_country_code" value="<?= "$contact_mobile_country_code" ?>" placeholder="+" maxlength="4">
<input type="tel" class="form-control" name="mobile" value="<?= $contact_mobile ?>" placeholder="Phone Number" maxlength="200">
</div>
</div>

View File

@@ -168,7 +168,7 @@ ob_start();
<div class="mb-3">
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-phone"></i></span>
<input type="tel" class="form-control col-2" name="phone_country_code" placeholder="+" maxlength="4">
<input type="tel" class="form-control w-25 flex-grow-0" name="phone_country_code" placeholder="+" maxlength="4">
<input type="tel" class="form-control" name="phone" placeholder="Phone Number" maxlength="200">
</div>
</div>
@@ -186,7 +186,7 @@ ob_start();
<div class="mb-3">
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-fax"></i></span>
<input type="tel" class="form-control col-2" name="fax_country_code" placeholder="+" maxlength="4">
<input type="tel" class="form-control w-25 flex-grow-0" name="fax_country_code" placeholder="+" maxlength="4">
<input type="tel" class="form-control" name="fax" placeholder="Fax Number" maxlength="200">
</div>
</div>

View File

@@ -195,7 +195,7 @@ ob_start();
<div class="mb-3">
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-phone"></i></span>
<input type="tel" class="form-control col-2" name="phone_country_code" value="<?= $location_phone_country_code ?>" placeholder="+" maxlength="4">
<input type="tel" class="form-control w-25 flex-grow-0" name="phone_country_code" value="<?= $location_phone_country_code ?>" placeholder="+" maxlength="4">
<input type="tel" class="form-control" name="phone" value="<?= $location_phone ?>" placeholder="Phone Number" maxlength="200">
</div>
</div>
@@ -213,7 +213,7 @@ ob_start();
<div class="mb-3">
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-fax"></i></span>
<input type="tel" class="form-control col-2" name="fax_country_code" value="<?= $location_fax_country_code ?>" placeholder="+" maxlength="4">
<input type="tel" class="form-control w-25 flex-grow-0" name="fax_country_code" value="<?= $location_fax_country_code ?>" placeholder="+" maxlength="4">
<input type="tel" class="form-control" name="fax" value="<?= $location_fax ?>" placeholder="Phone Number" maxlength="200">
</div>
</div>

View File

@@ -76,7 +76,7 @@ ob_start();
<div class="mb-3">
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-phone"></i></span>
<input type="tel" class="form-control col-2" name="phone_country_code" placeholder="+" maxlength="4">
<input type="tel" class="form-control w-25 flex-grow-0" name="phone_country_code" placeholder="+" maxlength="4">
<input type="tel" class="form-control" name="phone" placeholder="Phone Number" maxlength="200">
</div>
</div>

View File

@@ -124,7 +124,7 @@ ob_start();
<div class="mb-3">
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-phone"></i></span>
<input type="tel" class="form-control col-2" name="phone_country_code" value="<?= $vendor_phone_country_code ?>" placeholder="+" maxlength="4">
<input type="tel" class="form-control w-25 flex-grow-0" name="phone_country_code" value="<?= $vendor_phone_country_code ?>" placeholder="+" maxlength="4">
<input type="tel" class="form-control" name="phone" value="<?= $vendor_phone ?>" placeholder="Phone Number" maxlength="200">
</div>
</div>

View File

@@ -217,7 +217,7 @@ if ($item_type == "Document") {
?>
<h5><?= $credential_name ?></h5>
<table class="table col-md-3">
<table class="table w-auto">
<tr>
<th>URL</th>
<td><?= $credential_uri ?></td>