From e66fc13048b8a04c748c34711629f4a3bd50c71f Mon Sep 17 00:00:00 2001
From: filippo.bertilotti <filippobertilotti@gmail.com>
Date: Fri, 24 May 2024 12:28:05 +0200
Subject: [PATCH] aggiunta di un metodo alla classe child (parte 141)

---
 views/Products/new.php |   12 +-----------
 1 files changed, 1 insertions(+), 11 deletions(-)

diff --git a/views/Products/new.php b/views/Products/new.php
index 4de2e4a..29fe04d 100644
--- a/views/Products/new.php
+++ b/views/Products/new.php
@@ -1,17 +1,7 @@
 <body>
     <h1>New product</h1>
     <form method="post" action="/products/create">
-        <label for="name">Name</label>
-        <input type="text", id="name", name="name">
-
-        <?php if (isset($errors["name"])): ?>
-            <p><?= $errors["name"] ?></p>
-        <?php endif; ?>
-
-        <label for="description">Description</label>
-        <textarea id="description", name="description"></textarea>
-
-        <button>Save</button>
+        <?php require "form.php"?>
     </form>
 </body>
 </hmtl>
\ No newline at end of file

--
Gitblit v1.8.0