mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 19:19:19 +02:00
rename admin-submit-wrap → admin-form-footer across all templates and CSS
- Updated 6 admin templates: add.php, edit.php, login.php, account.php,
import.php, pages-edit.php — replaced <div class="admin-submit-wrap">
with <div class="admin-form-footer">
- Updated 8 CSS selectors in admin.css:
- .admin-form-footer { margin-top/padding-top } (was .admin-submit-wrap)
- .admin-form > div:not(.admin-form-footer) grid exclusion guard (×3)
- .admin-login-box .admin-form > div:not(.admin-form-footer) overrides (×2)
- .admin-login-box .admin-form-footer compact spacing override
- No visual change; purely a semantic rename to a descriptive class name
- Also marked status-badge.php partial and WCAG 1.3.1 badge tasks as
already-done in todo/02-php-components.md and todo/04-accessibility.md
(partial + CSS were fully implemented but todo had not been updated)
This commit is contained in:
@@ -77,7 +77,7 @@ if (empty($_SESSION['csrf_token'])) {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="admin-submit-wrap">
|
||||
<div class="admin-form-footer">
|
||||
<button type="submit" class="admin-btn">
|
||||
<?= $hasPassword ? 'Mettre à jour le mot de passe' : 'Définir le mot de passe' ?>
|
||||
</button>
|
||||
|
||||
@@ -96,7 +96,7 @@ function wasSelected($key, $value) {
|
||||
|
||||
<?php $name = 'files'; $label = 'Fichiers du TFE :'; $accept = '.pdf,.jpg,.jpeg,.png,.mp4,.zip'; $hint = 'PDF, JPG, PNG, MP4, ZIP. Max 50 MB par fichier.'; $multiple = true; include APP_ROOT . '/templates/partials/form/file-field.php'; ?>
|
||||
|
||||
<div class="admin-submit-wrap">
|
||||
<div class="admin-form-footer">
|
||||
<button type="submit" name="go" class="admin-btn">Soumettre</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@@ -176,7 +176,7 @@ try {
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="admin-submit-wrap">
|
||||
<div class="admin-form-footer">
|
||||
<button type="submit" class="admin-btn">Enregistrer</button>
|
||||
<a href="/admin/thanks.php?id=<?= $thesisId ?>" class="admin-btn-secondary admin-cancel-link">Annuler</a>
|
||||
</div>
|
||||
|
||||
@@ -352,7 +352,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_FILES['csv_file'])) {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="admin-submit-wrap">
|
||||
<div class="admin-form-footer">
|
||||
<button type="submit" class="admin-btn">Importer</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@@ -38,7 +38,7 @@ $pageTitle = 'Connexion';
|
||||
<label for="password">Mot de passe</label>
|
||||
<input type="password" id="password" name="password" required autofocus>
|
||||
</div>
|
||||
<div class="admin-submit-wrap">
|
||||
<div class="admin-form-footer">
|
||||
<button type="submit" class="admin-btn">Se connecter</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@@ -97,7 +97,7 @@ JS;
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="admin-submit-wrap">
|
||||
<div class="admin-form-footer">
|
||||
<button type="submit" class="admin-btn">Enregistrer</button>
|
||||
<a href="/admin/pages.php" class="admin-btn-secondary admin-cancel-link">Annuler</a>
|
||||
</div>
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
.admin-form > div:not(.admin-submit-wrap) {
|
||||
.admin-form > div:not(.admin-form-footer) {
|
||||
display: grid;
|
||||
grid-template-columns: 260px 1fr;
|
||||
align-items: start;
|
||||
@@ -56,12 +56,12 @@
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.admin-form > div:not(.admin-submit-wrap):last-of-type {
|
||||
.admin-form > div:not(.admin-form-footer):last-of-type {
|
||||
border-bottom: 1px solid var(--border-primary);
|
||||
}
|
||||
|
||||
.admin-form > div:not(.admin-submit-wrap) > label,
|
||||
.admin-form > div:not(.admin-submit-wrap) > span.admin-row-label {
|
||||
.admin-form > div:not(.admin-form-footer) > label,
|
||||
.admin-form > div:not(.admin-form-footer) > span.admin-row-label {
|
||||
font-size: 0.92rem;
|
||||
padding-top: 0.5rem;
|
||||
font-weight: 400;
|
||||
@@ -204,7 +204,7 @@
|
||||
}
|
||||
|
||||
/* ── Buttons ────────────────────────────────────────────────────────────── */
|
||||
.admin-submit-wrap {
|
||||
.admin-form-footer {
|
||||
margin-top: 2rem;
|
||||
padding-top: 1.5rem;
|
||||
}
|
||||
@@ -718,19 +718,19 @@
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.admin-login-box .admin-form > div:not(.admin-submit-wrap) {
|
||||
.admin-login-box .admin-form > div:not(.admin-form-footer) {
|
||||
grid-template-columns: 1fr;
|
||||
border: none;
|
||||
padding: 0.4rem 0;
|
||||
}
|
||||
|
||||
.admin-login-box .admin-form > div:not(.admin-submit-wrap) > label {
|
||||
.admin-login-box .admin-form > div:not(.admin-form-footer) > label {
|
||||
font-size: 0.82rem;
|
||||
color: var(--text-secondary);
|
||||
margin-bottom: 0.2rem;
|
||||
}
|
||||
|
||||
.admin-login-box .admin-submit-wrap {
|
||||
.admin-login-box .admin-form-footer {
|
||||
margin-top: 1rem;
|
||||
padding-top: 0.5rem;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user