mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-06-25 16:19:19 +02:00
Remove duration_pages/duration_minutes/file_size_info; rename cc4r → cc2r in DB and code
This commit is contained in:
@@ -1,34 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* Shared partial — "Métadonnées complémentaires" fieldset.
|
||||
*
|
||||
* Fields: duration (pages + minutes).
|
||||
* Annexes checkbox + file input moved to Fichiers fieldset (fichiers-fragment.php).
|
||||
* Lien BAIU moved to Backoffice fieldset.
|
||||
*
|
||||
* Variables consumed:
|
||||
* callable|null $oldFn — callable($key, $default='') for old/current values.
|
||||
* callable|null $withAutofocusFn — callable($field, $attrs=[]) to inject autofocus.
|
||||
* array $formData — raw form data (used for repopulation).
|
||||
*/
|
||||
|
||||
$oldFn = $oldFn ?? (function_exists('old') ? 'old' : fn($k, $d = '') => $d);
|
||||
$withAutofocusFn = $withAutofocusFn ?? fn($field, $attrs = []) => $attrs;
|
||||
$formData = $formData ?? [];
|
||||
?>
|
||||
<fieldset>
|
||||
<legend>Métadonnées complémentaires</legend>
|
||||
|
||||
<?php
|
||||
$name = 'duration_pages'; $label = 'Nombre de pages :'; $value = $oldFn('duration_pages');
|
||||
$type = 'number'; $placeholder = ''; $hint = 'Ex : 84';
|
||||
include APP_ROOT . '/templates/partials/form/text-field.php';
|
||||
?>
|
||||
|
||||
<?php
|
||||
$name = 'duration_minutes'; $label = 'Durée (minutes) :'; $value = $oldFn('duration_minutes');
|
||||
$type = 'number'; $placeholder = ''; $hint = 'Ex : 32 (pour œuvres audio/vidéo)';
|
||||
include APP_ROOT . '/templates/partials/form/text-field.php';
|
||||
?>
|
||||
</fieldset>
|
||||
<?php
|
||||
@@ -399,15 +399,8 @@ $checkedFormatsForSiteWeb = $checkedFormatsForSiteWeb ?? [];
|
||||
</div><!-- #edit-existing-files-block -->
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- ═══════════════════ Métadonnées complémentaires ═══════════════════ -->
|
||||
<?php
|
||||
if ($mode === "partage" && isset($helpFn)) {
|
||||
$helpContent = $helpFn("fieldset_metadata");
|
||||
$helpKey = 'fieldset_metadata';
|
||||
include APP_ROOT . "/templates/partials/form/form-help-block.php";
|
||||
}
|
||||
include APP_ROOT .
|
||||
"/templates/partials/form/fieldset-metadata.php"; ?>
|
||||
<!-- ═══════════════════ Métadonnées complémentaires ═══════════════════
|
||||
(Durée/Nombre de pages supprimés — redondants avec les fichiers attachés) -->
|
||||
|
||||
<!-- ═══════════════════ Degrés d'ouverture et licences ═══════════════════ -->
|
||||
<?php
|
||||
|
||||
Reference in New Issue
Block a user