Филиалы: цвет при создании и редактировании

This commit is contained in:
dev
2026-11-28 12:41:49 +03:00
parent c9d477b6c5
commit 468ab0a5fd
7 changed files with 73 additions and 12 deletions
+25
View File
@@ -39,6 +39,15 @@
<input type="text" name="name" class="settings-input" required placeholder="Например: Центральный офис" autocomplete="off">
</div>
</div>
<div class="settings-row">
<div class="settings-field" style="flex:1">
<label>Цвет</label>
<div style="display:flex;align-items:center;gap:8px">
<input type="color" name="color" id="branchColor" class="settings-input branch-color-input" value="#2563eb">
<button type="button" class="btn-primary ghost" id="branchColorRandom" style="padding:6px 10px">Случайный</button>
</div>
</div>
</div>
<div class="settings-row">
<div class="settings-field" style="flex:1">
<label>Адрес</label>
@@ -100,6 +109,22 @@
text-overflow: ellipsis;
white-space: nowrap;
}
.branch-color-input {
width: 72px;
height: 34px;
padding: 2px;
cursor: pointer;
}
.branch-color-swatch {
display: inline-block;
width: 14px;
height: 14px;
border-radius: 50%;
border: 1px solid rgba(127,127,127,.4);
margin-right: 8px;
vertical-align: middle;
flex-shrink: 0;
}
.branch-badge {
font-size: .7rem;
font-weight: 600;