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; +?> +
+
+
+
+
+ +
+ +
Escolha um da biblioteca abaixo, ou carregue um novo.
+
+ +
Substitui o nome acima. Máx. 2 MB.
+ +
+ +
atual
+
+ +
Substitui o ícone atual. Máx. 2 MB.
+ +
+ + +
+
+ +
+
+
+
+
+ +
+
+ +
+ +
+
+ +
+
+ diff --git a/views/admin/modalidades/create.php b/views/admin/modalidades/create.php index 439683d..10f0b87 100644 --- a/views/admin/modalidades/create.php +++ b/views/admin/modalidades/create.php @@ -43,34 +43,7 @@ include __DIR__ . '/../../../includes/header.php';
-
-
-
-
-
-
- -
Escolha um da biblioteca abaixo, ou carregue um novo.
-
- -
Substitui o nome acima. Máx. 2 MB.
-
-
-
-
-
- -
-
- -
- -
-
- -
-
- +
Cancelar diff --git a/views/admin/modalidades/edit.php b/views/admin/modalidades/edit.php index 65f239c..edb6d16 100644 --- a/views/admin/modalidades/edit.php +++ b/views/admin/modalidades/edit.php @@ -70,40 +70,7 @@ include __DIR__ . '/../../../includes/header.php';
-
-
-
-
-
-
- -
atual
-
- -
Substitui o ícone atual. Máx. 2 MB.
- -
- - -
-
-
-
-
-
-
- -
-
- -
- -
-
- -
-
- +
Cancelar