feat(t215): add admin order authorization
This commit is contained in:
@@ -101,6 +101,157 @@ textarea {
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.authorization-section {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.section-heading-row {
|
||||
display: flex;
|
||||
align-items: start;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.section-heading-row h2 {
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.candidate-count {
|
||||
flex: 0 0 auto;
|
||||
color: var(--muted);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.authorization-form {
|
||||
display: grid;
|
||||
gap: 18px;
|
||||
margin-top: 18px;
|
||||
}
|
||||
|
||||
.candidate-fieldset {
|
||||
min-width: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.candidate-fieldset legend {
|
||||
margin-bottom: 9px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.authorization-candidates {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.authorization-candidate {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
gap: 7px;
|
||||
padding: 14px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 6px;
|
||||
background: var(--surface-soft);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.authorization-candidate:has(input:checked) {
|
||||
border-color: var(--brand);
|
||||
box-shadow: 0 0 0 2px rgba(11, 107, 80, 0.14);
|
||||
}
|
||||
|
||||
.candidate-choice {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
color: var(--brand-dark);
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.candidate-choice input,
|
||||
.authorization-confirm input {
|
||||
width: 20px;
|
||||
min-height: 20px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.candidate-key {
|
||||
display: block;
|
||||
overflow-wrap: anywhere;
|
||||
color: var(--muted);
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.candidate-evidence {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.candidate-evidence img {
|
||||
width: 100%;
|
||||
aspect-ratio: 4 / 3;
|
||||
object-fit: contain;
|
||||
border: 1px solid var(--line);
|
||||
background: var(--surface);
|
||||
}
|
||||
|
||||
.authorization-reasons {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.authorization-reasons label {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.authorization-note {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.authorization-confirm {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 9px;
|
||||
padding: 12px;
|
||||
border-left: 4px solid var(--warn);
|
||||
background: var(--warn-soft);
|
||||
}
|
||||
|
||||
.authorization-form > .button {
|
||||
justify-self: start;
|
||||
}
|
||||
|
||||
.authorization-unavailable {
|
||||
padding: 12px;
|
||||
border-left: 4px solid var(--warn);
|
||||
background: var(--warn-soft);
|
||||
}
|
||||
|
||||
.authorization-history {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
padding-left: 22px;
|
||||
}
|
||||
|
||||
.authorization-history li {
|
||||
padding: 10px 12px;
|
||||
border-bottom: 1px solid var(--line);
|
||||
}
|
||||
|
||||
.authorization-history span,
|
||||
.authorization-history time {
|
||||
display: block;
|
||||
overflow-wrap: anywhere;
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
button,
|
||||
input,
|
||||
select {
|
||||
@@ -901,10 +1052,15 @@ tbody tr:last-child td {
|
||||
|
||||
.upload-layout,
|
||||
.detail-layout,
|
||||
.requirement-layout {
|
||||
.requirement-layout,
|
||||
.authorization-reasons {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.authorization-note {
|
||||
grid-column: auto;
|
||||
}
|
||||
|
||||
.image-preview {
|
||||
max-width: 320px;
|
||||
}
|
||||
@@ -978,6 +1134,19 @@ tbody tr:last-child td {
|
||||
padding: 18px 14px;
|
||||
}
|
||||
|
||||
.section-heading-row {
|
||||
align-items: stretch;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.authorization-candidates {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.authorization-form > .button {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.form-actions,
|
||||
.dialog-actions {
|
||||
flex-direction: column-reverse;
|
||||
|
||||
Reference in New Issue
Block a user