Thinner check lines; second signature line toggle
- Halve all check line thicknesses (line_thick * 0.5) - Add second_signature column to account table with runtime migration - Account settings toggle: enables a second signature line drawn 0.25" above the primary signature line, matching its width and thickness
This commit is contained in:
@@ -305,6 +305,8 @@ td {
|
||||
color: var(--text-muted);
|
||||
}
|
||||
.form-group.required label::after { content: ' *'; color: var(--danger); }
|
||||
.form-group-check { flex-direction: row; align-items: center; }
|
||||
.form-group-check label { text-transform: none; font-weight: normal; font-size: 12px; letter-spacing: 0; cursor: pointer; display: flex; align-items: center; gap: 6px; }
|
||||
|
||||
.form-group input {
|
||||
border: 1px solid var(--border);
|
||||
|
||||
@@ -346,6 +346,11 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p class="settings-section-label">Signature</p>
|
||||
<div class="form-group form-group-check">
|
||||
<label><input type="checkbox" id="as-second-sig" name="second_signature"> Add second signature line (0.25" above primary)</label>
|
||||
</div>
|
||||
|
||||
<p class="settings-section-label">Logo</p>
|
||||
<div class="form-group">
|
||||
<label for="as-logo">Upload new logo</label>
|
||||
|
||||
+4
-2
@@ -572,6 +572,7 @@ function openAccountSettings() {
|
||||
f.elements.offset_right.value = a.offset_right || 0;
|
||||
f.elements.offset_up.value = a.offset_up || 0;
|
||||
f.elements.offset_down.value = a.offset_down || 0;
|
||||
document.getElementById('as-second-sig').checked = !!a.second_signature;
|
||||
|
||||
document.getElementById('as-logo').value = '';
|
||||
document.getElementById('as-logo-preview').hidden = true;
|
||||
@@ -608,8 +609,9 @@ async function saveAccountSettings() {
|
||||
offset_left: parseFloat(f.elements.offset_left.value) || 0,
|
||||
offset_right: parseFloat(f.elements.offset_right.value) || 0,
|
||||
offset_up: parseFloat(f.elements.offset_up.value) || 0,
|
||||
offset_down: parseFloat(f.elements.offset_down.value) || 0,
|
||||
logo_data: acctSettings.logoData || null,
|
||||
offset_down: parseFloat(f.elements.offset_down.value) || 0,
|
||||
second_signature: document.getElementById('as-second-sig').checked ? 1 : 0,
|
||||
logo_data: acctSettings.logoData || null,
|
||||
};
|
||||
|
||||
if (!payload.company1) {
|
||||
|
||||
Reference in New Issue
Block a user