mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-06-25 16:19:19 +02:00
exhaustive recap: all fields, figures for files, PeerTube ID display, same in edit form
This commit is contained in:
@@ -87,11 +87,15 @@ $websiteLabel = htmlspecialchars($_POST['website_label'] ?? '');
|
||||
alt="Couverture actuelle" class="admin-file-thumb">
|
||||
<figcaption class="admin-file-caption">
|
||||
<span class="admin-file-name">Couverture</span>
|
||||
<label class="admin-checkbox-label" style="margin-top:var(--space-3xs);">
|
||||
<input type="checkbox" name="remove_cover" value="1"> Supprimer
|
||||
</label>
|
||||
</figcaption>
|
||||
</figure>
|
||||
<input type="hidden" name="remove_cover" value="0">
|
||||
<button type="button"
|
||||
class="admin-icon-btn admin-icon-btn--delete"
|
||||
title="Supprimer"
|
||||
onclick="this.previousElementSibling.value='1';this.closest('li').style.opacity='0.4';this.disabled=true;">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="currentColor" viewBox="0 0 256 256"><path d="M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"></path></svg>
|
||||
</button>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
@@ -120,9 +124,11 @@ $websiteLabel = htmlspecialchars($_POST['website_label'] ?? '');
|
||||
<figure class="admin-file-figure">
|
||||
<span class="admin-file-icon"><?= $_fIcon ?></span>
|
||||
<figcaption class="admin-file-caption">
|
||||
<a href="<?= $_fLinkHref ?>" target="_blank" rel="noopener" class="admin-file-name">
|
||||
<?= htmlspecialchars($_f["file_name"] ?? basename($_f["file_path"])) ?>
|
||||
</a>
|
||||
<div class="admin-file-name-row">
|
||||
<a href="<?= $_fLinkHref ?>" target="_blank" rel="noopener" class="admin-file-name">
|
||||
<?= htmlspecialchars($_f["file_name"] ?? basename($_f["file_path"])) ?>
|
||||
</a>
|
||||
</div>
|
||||
<?php if ($_fIsPeerTube): ?>
|
||||
<span class="admin-file-peertube-id">ID : <?= htmlspecialchars(substr($_fPath, strlen("peertube_ids:"))) ?></span>
|
||||
<?php endif; ?>
|
||||
@@ -132,16 +138,15 @@ $websiteLabel = htmlspecialchars($_POST['website_label'] ?? '');
|
||||
<span class="admin-file-size"><?= number_format($_f["file_size"] / 1024 / 1024, 2) ?> MB</span>
|
||||
<?php endif; ?>
|
||||
</span>
|
||||
<input type="text" name="file_label[<?= (int)$_f["id"] ?>]"
|
||||
value="<?= htmlspecialchars($_f["display_label"] ?? "") ?>"
|
||||
placeholder="Légende / description (optionnel)"
|
||||
class="admin-file-label-input">
|
||||
</figcaption>
|
||||
</figure>
|
||||
<input type="hidden" name="delete_files[]" value="<?= (int)$_f["id"] ?>" disabled>
|
||||
<button type="button"
|
||||
class="btn btn--danger btn--sm"
|
||||
onclick="this.previousElementSibling.previousElementSibling.disabled=false;this.closest('li').style.opacity='0.4';this.disabled=true;">Supprimer</button>
|
||||
class="admin-icon-btn admin-icon-btn--delete"
|
||||
title="Supprimer"
|
||||
onclick="this.previousElementSibling.disabled=false;this.closest('li').style.opacity='0.4';this.disabled=true;">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="currentColor" viewBox="0 0 256 256"><path d="M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"></path></svg>
|
||||
</button>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user