Add driver document review and staff onboarding

Driver documents: paged list from auth/driver/drivers_pending_list.php, a
detail panel showing each uploaded document as a thumbnail linking to the
full image, and activation via Admin/driver/updateDriverFromAdmin.php. The
confirmation states how many documents were reviewed and warns explicitly
when a captain has none on file, since approving then activates an
unverified account.

Details are requested as a POST body. The mobile app calls this endpoint as
GET "?id=", which filterRequest() never reads, so its detail lookup cannot
be receiving an id at all.

Staff: pending admin/service accounts with per-account activation via
Staff/activate.php, the employee list, and a creation form posting to
Staff/add.php. Administrator accounts are offered only to super admins,
matching add.php's own check; passwords are rejected below 8 characters and
cleared from the form after submission.

Both screens mask phone numbers for plain admins and never render
token/password/fingerprint fields.

Also stop .btn-primary stretching to full width when used inline in a card
header — it is styled for the login form.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Hamza-Ayed
2026-07-25 14:30:49 +03:00
co-authored by Claude Opus 5
parent a0ab6c5155
commit 67f55e5192
2 changed files with 382 additions and 2 deletions
+58
View File
@@ -1326,3 +1326,61 @@ h1, h2, h3, h4, h5, h6 {
}
textarea.form-input { text-align: start; }
/* Driver document review */
.doc-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 1rem;
}
.doc-card {
margin: 0;
border-radius: var(--radius-md);
border: 1px solid var(--border-color);
background: rgba(255, 255, 255, 0.03);
overflow: hidden;
}
.doc-card img {
display: block;
width: 100%;
height: 150px;
object-fit: cover;
background: rgba(2, 6, 23, 0.6);
transition: var(--transition-fast);
}
.doc-card img:hover { opacity: 0.85; }
.doc-missing {
display: flex;
align-items: center;
justify-content: center;
gap: 0.4rem;
height: 150px;
color: var(--text-subtle);
font-size: 0.8rem;
background: rgba(2, 6, 23, 0.6);
}
.doc-card figcaption {
padding: 0.6rem 0.75rem;
display: flex;
flex-direction: column;
gap: 0.15rem;
font-size: 0.8rem;
color: var(--text-main);
border-top: 1px solid var(--border-color);
}
.doc-card figcaption .stamp { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* .btn-primary is full-width by default (login form); inline uses must not be */
.btn-primary.btn-sm {
width: auto;
padding: 0.4rem 0.9rem;
justify-content: center;
}
.card-header { gap: 1rem; flex-wrap: wrap; }