diff --git a/views/admin/modalidades/_form.php b/views/admin/modalidades/_form.php new file mode 100644 index 0000000..14bf36e --- /dev/null +++ b/views/admin/modalidades/_form.php @@ -0,0 +1,53 @@ + of both create.php and +// edit.php. Expects: +// $data : associative array with every modalidades column (nome, cor, icon, +// descricao, item_order) +// $item : the existing row on edit (for the current icon preview/remove +// checkbox), or null +// $icons : rows from db_flaticon_list($pdo) — the shared icon library +$item = $item ?? null; +?> +