From be49d1f366da155737d05a17f73cf1c3d246c67e Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Sat, 19 Jun 2021 01:37:36 +0200 Subject: Remove ID form field (and rearrange other fields) This commit removes the ID form field, enlarges the title form field and rearranges the other form fields in the grid layout. --- admin/page/insert.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'admin/page') diff --git a/admin/page/insert.php b/admin/page/insert.php index 5d4339a..979dbd9 100644 --- a/admin/page/insert.php +++ b/admin/page/insert.php @@ -12,8 +12,7 @@ require '../../core/application.php'; $Attribute = new Page\Attribute(); -if(HTTP::issetPOST('id', 'user', 'slug', 'name', 'body', 'argv', 'time_insert', 'time_update', 'insert')) { - $Attribute->set('id', HTTP::POST('id') ? HTTP::POST('id') : FALSE); +if(HTTP::issetPOST('user', 'slug', 'name', 'body', 'argv', 'time_insert', 'time_update', 'insert')) { $Attribute->set('user', HTTP::POST('user')); $Attribute->set('slug', HTTP::POST('slug') ? HTTP::POST('slug') : generateSlug(HTTP::POST('name'))); $Attribute->set('name', HTTP::POST('name') ? HTTP::POST('name') : NULL); -- cgit v1.2.3