mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 19:19:19 +02:00
Replace .admin-hint / .admin-field-hint with .admin-body form small
- admin.css: remove .admin-hint and .admin-field-hint class rules; add .admin-body form small with the same font-size/color/margin properties plus display:block so it stacks below sibling inputs; stub comment left where .admin-field-hint was to document the change - add.php: 5× <p class="admin-hint"> → <small> - edit.php: 3× <p class="admin-hint"> → <small> - import.php: <div class="admin-hint"> → <small> (block hint below CSV input) - pages-edit.php: class="admin-hint" removed from already-correct <small> - account.php: <p class="admin-field-hint"> → <small> Hint text is now styled purely via the semantic element selector; no class required on any hint element in admin templates.
This commit is contained in:
@@ -223,13 +223,13 @@ try {
|
||||
<div class="admin-form-row">
|
||||
<label class="admin-label" for="access_type_id">Visibilité / Accès :</label>
|
||||
<select class="admin-select" id="access_type_id" name="access_type_id">
|
||||
<option value="">— Non défini —</option>
|
||||
<option value="">- Non défini -</option>
|
||||
<?php foreach ($accessTypes as $at): ?>
|
||||
<option value="<?= (int)$at['id'] ?>"
|
||||
<?= ($currentAccessTypeId == $at['id']) ? 'selected' : '' ?>>
|
||||
<?= htmlspecialchars($at['name']) ?>
|
||||
<?php if (!empty($at['description'])): ?>
|
||||
— <?= htmlspecialchars(mb_strimwidth($at['description'], 0, 60, '…')) ?>
|
||||
- <?= htmlspecialchars(mb_strimwidth($at['description'], 0, 60, '...')) ?>
|
||||
<?php endif; ?>
|
||||
</option>
|
||||
<?php endforeach; ?>
|
||||
@@ -241,14 +241,14 @@ try {
|
||||
<div>
|
||||
<textarea class="admin-textarea" id="context_note" name="context_note"
|
||||
rows="4" maxlength="1500"><?= htmlspecialchars($currentContextNote ?? '') ?></textarea>
|
||||
<p class="admin-hint">Visible publiquement pour les TFE Interne ou Interdit. Max 1 500 caractères.</p>
|
||||
<small>Visible publiquement pour les TFE Interne ou Interdit. Max 1 500 caractères.</small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="admin-form-row">
|
||||
<label class="admin-label" for="license_id">Licence :</label>
|
||||
<select class="admin-select" id="license_id" name="license_id">
|
||||
<option value="">— Inconnue —</option>
|
||||
<option value="">- Inconnue -</option>
|
||||
<?php foreach ($licenseTypes as $lt): ?>
|
||||
<option value="<?= $lt['id'] ?>"
|
||||
<?= ($currentLicenseId == $lt['id']) ? 'selected' : '' ?>>
|
||||
@@ -306,7 +306,7 @@ try {
|
||||
<div>
|
||||
<input class="admin-input" type="text" id="tag" name="tag"
|
||||
value="<?= htmlspecialchars($thesis['keywords'] ?? '') ?>">
|
||||
<p class="admin-hint">Séparer par des virgules. Max 10.</p>
|
||||
<small>Séparer par des virgules. Max 10.</small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -336,7 +336,7 @@ try {
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<input type="file" name="banner" accept="image/jpeg,image/png,image/webp">
|
||||
<p class="admin-hint">JPG, PNG ou WEBP. Format paysage recommandé (4:1). Max 5 MB.</p>
|
||||
<small>JPG, PNG ou WEBP. Format paysage recommandé (4:1). Max 5 MB.</small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user