Sync TDS v1.2 additions: scanlines, cursor, radar, display-field, VT323
- Sync base.css + base.js from web_template (adds lt-scanlines, lt-cursor, lt-radar, lt-display-field, --font-crt/VT323 token) - Add VT323 to Google Fonts link in layout_header.php - Add lt-scanlines to <body> — CRT scanline overlay, light-mode suppressed - Replace custom .editable-metadata:disabled CSS override in ticket.css with the canonical .lt-display-field class from base.css - Switch Priority/Category/Type/Visibility selects and visibility-group checkboxes in TicketView.php from disabled attribute to lt-display-field - Update toggleEditMode() in ticket.js to add/remove lt-display-field instead of toggling the disabled attribute Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -167,7 +167,7 @@ include __DIR__ . '/layout_header.php';
|
||||
<div class="lt-kv-row">
|
||||
<span class="lt-kv-label">Priority</span>
|
||||
<span class="lt-kv-value">
|
||||
<select id="prioritySelect" class="lt-select lt-select-sm editable-metadata" disabled aria-label="Priority">
|
||||
<select id="prioritySelect" class="lt-select lt-select-sm editable-metadata lt-display-field" aria-label="Priority">
|
||||
<?php foreach ([1=>'P1 - Critical',2=>'P2 - High',3=>'P3 - Medium',4=>'P4 - Low',5=>'P5 - Minimal'] as $v=>$l): ?>
|
||||
<option value="<?= $v ?>" <?= (int)$ticket['priority'] === $v ? 'selected' : '' ?>><?= $l ?></option>
|
||||
<?php endforeach ?>
|
||||
@@ -177,7 +177,7 @@ include __DIR__ . '/layout_header.php';
|
||||
<div class="lt-kv-row">
|
||||
<span class="lt-kv-label">Category</span>
|
||||
<span class="lt-kv-value">
|
||||
<select id="categorySelect" class="lt-select lt-select-sm editable-metadata" disabled aria-label="Category">
|
||||
<select id="categorySelect" class="lt-select lt-select-sm editable-metadata lt-display-field" aria-label="Category">
|
||||
<?php foreach (['Hardware','Software','Network','Security','General'] as $c): ?>
|
||||
<option value="<?= $c ?>" <?= $ticket['category'] === $c ? 'selected' : '' ?>><?= $c ?></option>
|
||||
<?php endforeach ?>
|
||||
@@ -187,7 +187,7 @@ include __DIR__ . '/layout_header.php';
|
||||
<div class="lt-kv-row">
|
||||
<span class="lt-kv-label">Type</span>
|
||||
<span class="lt-kv-value">
|
||||
<select id="typeSelect" class="lt-select lt-select-sm editable-metadata" disabled aria-label="Type">
|
||||
<select id="typeSelect" class="lt-select lt-select-sm editable-metadata lt-display-field" aria-label="Type">
|
||||
<?php foreach (['Maintenance','Install','Task','Upgrade','Issue','Problem'] as $t): ?>
|
||||
<option value="<?= $t ?>" <?= $ticket['type'] === $t ? 'selected' : '' ?>><?= $t ?></option>
|
||||
<?php endforeach ?>
|
||||
@@ -211,7 +211,7 @@ include __DIR__ . '/layout_header.php';
|
||||
<div class="lt-kv-row">
|
||||
<span class="lt-kv-label">Visibility</span>
|
||||
<span class="lt-kv-value">
|
||||
<select id="visibilitySelect" class="lt-select lt-select-sm editable-metadata" disabled
|
||||
<select id="visibilitySelect" class="lt-select lt-select-sm editable-metadata lt-display-field"
|
||||
data-action="toggle-visibility-groups" aria-label="Visibility">
|
||||
<option value="public" <?= $currentVisibility === 'public' ? 'selected' : '' ?>>Public</option>
|
||||
<option value="internal" <?= $currentVisibility === 'internal' ? 'selected' : '' ?>>Internal</option>
|
||||
@@ -265,7 +265,7 @@ include __DIR__ . '/layout_header.php';
|
||||
<?php foreach ($allAvailableGroups as $group):
|
||||
$isChecked = in_array($group, $currentVisibilityGroups, true); ?>
|
||||
<label class="lt-filter-option">
|
||||
<input type="checkbox" class="lt-checkbox visibility-group-checkbox editable-metadata" disabled
|
||||
<input type="checkbox" class="lt-checkbox visibility-group-checkbox editable-metadata lt-display-field"
|
||||
value="<?= htmlspecialchars($group, ENT_QUOTES, 'UTF-8') ?>"
|
||||
<?= $isChecked ? 'checked' : '' ?>>
|
||||
<span class="lt-badge"><?= htmlspecialchars($group) ?></span>
|
||||
|
||||
Reference in New Issue
Block a user