mirror of
https://github.com/itflow-org/itflow
synced 2026-11-21 11:57:25 +00:00
Quick add: the plus beside Contact, Site, Location, Assigned to and Vendor in New Ticket, Edit Ticket and the asset form opens the usual New Contact, New Location or New Vendor window over the form, saved in the background and picked, in place of the pop-up
This commit is contained in:
@@ -26,7 +26,7 @@ echo settingsPageStart('identity');
|
||||
<div class="alert alert-warning py-2 small"><i class="fas fa-exclamation-triangle me-2"></i>The client portal is off - turn it on in <a href="settings_module.php">Modules</a>.</div>
|
||||
<?php } ?>
|
||||
|
||||
<?= settingsSectionStart('entra', 'Microsoft Entra', 'A contact with portal access signs in with their Microsoft 365 work account - its email has to be theirs in ITFlow. Register an app in Microsoft Entra for accounts in any organisation\'s directory, with the redirect address below, and put its ID and a secret here.') ?>
|
||||
<?= settingsSectionStart('entra', 'Microsoft Entra', 'A contact with portal access signs in with their Microsoft 365 work account - its email has to be theirs in ITFlow. Register an app in Microsoft Entra for accounts in any organization\'s directory, with the redirect address below, and put its ID and a secret here.') ?>
|
||||
<div class="itflow-settings-field" data-sso-state>
|
||||
<span class="badge <?= $config_azure_client_id ? 'text-bg-success' : 'text-bg-secondary' ?>"><?= $config_azure_client_id ? 'Set up' : 'Not set up' ?></span>
|
||||
<span class="small text-body-secondary ms-1"><?= $config_azure_client_id ? 'The portal\'s sign-in page offers Sign in with Microsoft.' : 'Contacts sign in with a password.' ?></span>
|
||||
|
||||
@@ -204,7 +204,7 @@ ob_start();
|
||||
<option value="">- Pick a category -</option>
|
||||
<?= categoryOptionsHtml('Expense', $category_id ?: null) ?>
|
||||
</select>
|
||||
<?= categoryAddButtonHtml('Expense', 'btn btn-secondary') ?>
|
||||
<?= categoryAddButtonHtml('Expense') ?>
|
||||
</div>
|
||||
<?= $error_for('expense_category') ?>
|
||||
<div class="form-text">Processing Fee, or the like.</div>
|
||||
|
||||
@@ -144,7 +144,7 @@ ob_start();
|
||||
<option value="0">- Not Categorized -</option>
|
||||
<?= categoryOptionsHtml('Ticket', $alert_category_id ?: null) ?>
|
||||
</select>
|
||||
<?= categoryAddButtonHtml('Ticket', 'btn btn-secondary') ?>
|
||||
<?= categoryAddButtonHtml('Ticket') ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -50,7 +50,7 @@ $contact_phone_value = ($vt['contact_phone'] ?? '') !== '' ? escapeHtml(formatPh
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<label class="form-label">What they are</label>
|
||||
<label class="form-label">Description</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-align-left"></i></span>
|
||||
<input type="text" class="form-control" name="description" placeholder="Business internet and phone, servers and workstations" maxlength="200" value="<?= $value('description') ?>">
|
||||
|
||||
@@ -17,7 +17,7 @@ if (isset($_POST['edit_theme_settings'])) {
|
||||
|
||||
$errors = [];
|
||||
if (!isset(settingsThemes()[$theme])) {
|
||||
$errors['config_theme'] = 'Pick one of the colours.';
|
||||
$errors['config_theme'] = 'Pick one of the colors.';
|
||||
}
|
||||
$favicon_problem = settingsImageProblem($_FILES['favicon'] ?? null, ['ico'], ['ico'], '.ico', 1048576);
|
||||
if ($favicon_problem !== '') {
|
||||
|
||||
@@ -62,7 +62,7 @@ function starterContentPacks() {
|
||||
'description' => "Vendors most clients end up with - each with its support site, status page and the portal cases are opened in, and what their support asks for. Phone numbers, hours and SLAs differ by region and contract, and account numbers and PINs by account, so they are yours to add.",
|
||||
'update' => [
|
||||
'button' => 'update_starter_vendor_templates',
|
||||
'confirm' => 'Bring the %d starter vendor templates you have up to date? What they are, their support site, status page, portal and notes are replaced with this version - changes you made to those are lost, and the vendors made from them that still said what they did change with them. Their support line, hours, SLA, email, account details and who should have them stay as they are.',
|
||||
'confirm' => 'Bring the %d starter vendor templates you have up to date? Their description, support site, status page, portal and notes are replaced with this version - changes you made to those are lost, and the vendors made from them that still said what they did change with them. Their support line, hours, SLA, email, account details and who should have them stay as they are.',
|
||||
],
|
||||
],
|
||||
'document_templates' => [
|
||||
|
||||
@@ -184,7 +184,7 @@ echo settingsPageStart('invoice');
|
||||
'placeholder' => '0.70', 'help' => 'For driving their own vehicle - your reimbursement rate, such as the IRS standard mileage rate. Empty turns paying back off.']) ?></div>
|
||||
<div class="col-md-6"><?= settingsSelect('config_mileage_category_id', $trip_rules['category_id'], [], ['icon' => 'fa-list', 'search' => true,
|
||||
'options_html' => '<option value="0">- Mileage, or Travel -</option>' . categoryOptionsHtml('Expense', intval(settingsValue('config_mileage_category_id', $trip_rules['category_id']))),
|
||||
'append' => categoryAddButtonHtml('Expense', 'btn btn-secondary'),
|
||||
'append' => categoryAddButtonHtml('Expense'),
|
||||
'help' => 'The expense category of the mileage paid back. The expenses are to the vendor Mileage, made the first time.']) ?></div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ echo settingsPageStart('module');
|
||||
<div class="alert alert-success d-flex gap-2 py-2" data-whitelabel-state="active">
|
||||
<i class="fas fa-check-circle mt-1"></i>
|
||||
<div>
|
||||
<strong>White-labelled - thank you for supporting ITFlow.</strong>
|
||||
<strong>White-labeled - thank you for supporting ITFlow.</strong>
|
||||
<div class="small"><?= escapeHtml((string) ($whitelabel['description'] ?? '')) ?> · <?= escapeHtml((string) ($whitelabel['organisation'] ?? '')) ?> · until <?= escapeHtml(date('M j, Y', $whitelabel_expires)) ?></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -28,7 +28,7 @@ echo settingsPageStart('security');
|
||||
<div class="card-body">
|
||||
|
||||
<?= settingsSectionStart('sign-in', 'The sign-in page', 'Agents and client contacts sign in on the same page. A login key keeps the agents\' way in out of sight - without the key in its address, the page is for client contacts only.') ?>
|
||||
<?= settingsTextarea('config_login_message', $config_login_message, ['rows' => 3, 'maxlength' => 65000, 'placeholder' => 'Authorised users only',
|
||||
<?= settingsTextarea('config_login_message', $config_login_message, ['rows' => 3, 'maxlength' => 65000, 'placeholder' => 'Authorized users only',
|
||||
'help' => 'Shown above the sign-in form - plain text, each new line kept.']) ?>
|
||||
<?= settingsSwitch('config_login_key_required', $config_login_key_required, ['help' => 'Agents sign in only from the address with the key in it.']) ?>
|
||||
<div data-settings-depends-on="config_login_key_required">
|
||||
|
||||
@@ -25,9 +25,9 @@ echo settingsPageStart('theme');
|
||||
<div class="card itflow-settings-card">
|
||||
<div class="card-body">
|
||||
|
||||
<?= settingsSectionStart('colour', 'Colour', 'The top bar, links, buttons and highlights, for everyone. Pick one to see it here - Save keeps it.') ?>
|
||||
<?= settingsSectionStart('colour', 'Color', 'The top bar, links, buttons and highlights, for everyone. Pick one to see it here - Save keeps it.') ?>
|
||||
<?php ob_start(); ?>
|
||||
<div class="row row-cols-2 row-cols-sm-3 row-cols-xl-4 g-2" role="radiogroup" aria-label="Theme colour">
|
||||
<div class="row row-cols-2 row-cols-sm-3 row-cols-xl-4 g-2" role="radiogroup" aria-label="Theme color">
|
||||
<?php foreach ($themes as $theme => $theme_name) { ?>
|
||||
<div class="col">
|
||||
<input type="radio" class="btn-check" id="theme-<?= $theme ?>" name="config_theme" value="<?= $theme ?>" data-settings-theme <?= $picked === $theme ? 'checked' : '' ?>>
|
||||
|
||||
@@ -152,17 +152,17 @@ foreach ($starter_content_status as $pack_status) {
|
||||
infrastructure, a documented switch port map, IP addresses and a supplier list. Managed, co-managed, break fix and hosting only
|
||||
clients are all represented, most of them paid up to date and a few of them not.
|
||||
Your own side of the business is generated too - bank accounts, suppliers, operating costs, recurring expenses,
|
||||
transfers, catalogue lines for the things you sell, closure days, monthly budgets, and a working diary of team
|
||||
transfers, catalog lines for the things you sell, closure days, monthly budgets, and a working diary of team
|
||||
meetings, maintenance windows and the unbilled running around that never gets logged against a client.
|
||||
Everything is spread across the <strong>last two years</strong> and dated relative to today, so the dashboard,
|
||||
ticket queue, aging, profit and loss and every other report have real history behind them rather than one flat month.
|
||||
</p>
|
||||
<p class="text-muted">
|
||||
This is sample data, not configuration. Nothing in it is labelled as demo data - the clients, tags and references
|
||||
This is sample data, not configuration. Nothing in it is labeled as demo data - the clients, tags and references
|
||||
all read as real, which is the point. Removal matches the <?= intval($demo_data_status['total']) ?> client names in
|
||||
the library, so <strong>renaming a demo client stops it being removable</strong>. Contacts use addresses on the
|
||||
reserved <strong>.example</strong> domain, which cannot receive mail, and the agreements are created with email
|
||||
notification switched off. Anything shared - accounts, suppliers, response targets, tax rates, catalogue lines and
|
||||
notification switched off. Anything shared - accounts, suppliers, response targets, tax rates, catalog lines and
|
||||
calendars - is matched on more than its name, so records this install already had are never touched, and the
|
||||
company side of the books is always built against accounts this page created rather than yours.
|
||||
</p>
|
||||
|
||||
@@ -100,7 +100,7 @@ $manager = array_filter([
|
||||
trim((string) $t['vendor_template_contact_email']) !== '' ? '<i class="fas fa-fw fa-at text-secondary me-1"></i><a href="mailto:' . escapeHtml($t['vendor_template_contact_email']) . '">' . escapeHtml($t['vendor_template_contact_email']) . '</a>' : '',
|
||||
]);
|
||||
$facts = array_filter([
|
||||
'What they are' => escapeHtml((string) $t['vendor_template_description']),
|
||||
'Description' => escapeHtml((string) $t['vendor_template_description']),
|
||||
'Support line' => vendorTemplatePhoneHtml($t['vendor_template_phone'], $t['vendor_template_phone_country_code'], $t['vendor_template_extension']),
|
||||
'Support hours' => escapeHtml((string) $t['vendor_template_hours']),
|
||||
'SLA' => escapeHtml((string) $t['vendor_template_sla']),
|
||||
|
||||
Reference in New Issue
Block a user