Филиалы: цвет при создании и редактировании
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user