File manager - Edit - /home/verseaumee/quaadraa/admin/views/subsidiary-edit.php
Back
<?php /* admin/views/subsidiary-edit.php */ ?> <div class="admin-breadcrumb"> <a href="/admin/subsidiaries">← Toutes les filiales</a> <span>/ Modifier</span> </div> <!-- Ajout de enctype pour permettre l'upload de fichiers --> <form method="POST" action="/admin/subsidiaries/<?= (int)$id ?>/edit" class="admin-form" enctype="multipart/form-data"> <input type="hidden" name="_csrf" value="<?= htmlspecialchars($csrf) ?>"> <div class="form-cols"> <!-- Version Française --> <div class="form-col-main"> <div class="aside-card" style="margin-bottom:1rem"> <h3 class="aside-card-title">Version Française (FR)</h3> <div class="adm-field"> <label>Nom</label> <input type="text" name="data[fr][name]" value="<?= htmlspecialchars($translations['fr']['name'] ?? '') ?>"> </div> <div class="adm-field"> <label>Tagline</label> <input type="text" name="data[fr][tagline]" value="<?= htmlspecialchars($translations['fr']['tagline'] ?? '') ?>"> </div> <div class="adm-field"> <label>Description</label> <textarea name="data[fr][description]" rows="6"><?= htmlspecialchars($translations['fr']['description'] ?? '') ?></textarea> </div> </div> <!-- Bloc Image ajouté dans la colonne principale --> <div class="aside-card"> <h3 class="aside-card-title">Image de la division</h3> <div class="adm-field"> <label>Changer l'image (SVG, PNG, JPG)</label> <input type="file" name="sub_image" accept=".svg,.png,.jpg,.jpeg"> <p style="font-size: 0.7rem; color: #8e8e8e; margin-top: 0.5rem;"> Image actuelle : <?= !empty($sub['image_path']) ? basename($sub['image_path']) : 'Aucune' ?> </p> </div> </div> </div> <!-- Version Anglaise --> <div class="form-col-aside"> <div class="aside-card"> <h3 class="aside-card-title">Version Anglaise (EN)</h3> <div class="adm-field"> <label>Name</label> <input type="text" name="data[en][name]" value="<?= htmlspecialchars($translations['en']['name'] ?? '') ?>"> </div> <div class="adm-field"> <label>Tagline</label> <input type="text" name="data[en][tagline]" value="<?= htmlspecialchars($translations['en']['tagline'] ?? '') ?>"> </div> <div class="adm-field"> <label>Description</label> <textarea name="data[en][description]" rows="6"><?= htmlspecialchars($translations['en']['description'] ?? '') ?></textarea> </div> </div> <div class="aside-card" style="margin-top:1rem"> <button type="submit" class="adm-btn adm-btn-primary">💾 Enregistrer</button> </div> </div> </div> </form> <style> /* Styles existants conservés */ .admin-breadcrumb { margin-bottom:1.5rem;font-size:.82rem;color:#5e5e5e; } .admin-breadcrumb a { color:#C9A84C; } .form-cols { display:grid;grid-template-columns:1fr 350px;gap:2rem; } .aside-card { background:#1c1c1c;border:1px solid #2a2a2a;padding:1.25rem; } .aside-card-title { font-size:.72rem;font-weight:700;letter-spacing:.15em;text-transform:uppercase;color:#8e8e8e;margin:0 0 1rem;padding-bottom:.6rem;border-bottom:1px solid #2a2a2a; } .adm-field { margin-bottom:1rem; } .adm-field label { display:block;font-size:.72rem;font-weight:700;color:#8e8e5e;margin-bottom:.4rem;text-transform:uppercase; } .adm-field input, .adm-field textarea { width:100%;padding:.7rem;background:#111;border:1px solid #3a3a3a;color:#f0ece4; } /* Style spécifique pour le champ fichier */ .adm-field input[type="file"] { background:transparent;border:none;padding:0; } .adm-btn { display:block;width:100%;padding:.75rem;background:#C9A84C;border:none;color:#000;font-weight:700;cursor:pointer; } </style>
| ver. 1.4 |
Github
|
.
| PHP 8.5.7 | Generation time: 0 |
proxy
|
phpinfo
|
Settings