feat: 串接練舞清單

This commit is contained in:
2026-08-03 00:09:35 +08:00
parent 1e2e935688
commit 13900bbaf6
7 changed files with 234 additions and 59 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
}
$record = array_merge($record, $data);
}
render_header(($id ? '編輯' : '新增') . $module['label'], $key);
render_header(($id ? '編輯' : '新增') . ($module['item_label'] ?? $module['label']), $key);
?>
<?php if ($error): ?><div class="notice notice--error"><?= h($error) ?></div><?php endif; ?>
<form class="panel editor" method="post" enctype="multipart/form-data"><input type="hidden" name="csrf" value="<?= h(csrf_token()) ?>"><input type="hidden" name="module" value="<?= h($key) ?>"><input type="hidden" name="id" value="<?= $id ?>"><div class="form-grid">