aboutsummaryrefslogtreecommitdiffstats
path: root/theme/admin/html/post
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-06-19 01:37:36 +0200
committerThomas Lange <code@nerdmind.de>2021-06-19 01:37:36 +0200
commitbe49d1f366da155737d05a17f73cf1c3d246c67e (patch)
treec6301914d6d356163faaf5ae853f0bfecfea7939 /theme/admin/html/post
parent84455052b4f2aa90f12e83a60acd896301512357 (diff)
downloadblog-be49d1f366da155737d05a17f73cf1c3d246c67e.tar.gz
blog-be49d1f366da155737d05a17f73cf1c3d246c67e.tar.xz
blog-be49d1f366da155737d05a17f73cf1c3d246c67e.zip
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.
Diffstat (limited to 'theme/admin/html/post')
-rw-r--r--theme/admin/html/post/form.php27
1 files changed, 10 insertions, 17 deletions
diff --git a/theme/admin/html/post/form.php b/theme/admin/html/post/form.php
index 58ac122..dbf0ab5 100644
--- a/theme/admin/html/post/form.php
+++ b/theme/admin/html/post/form.php
@@ -13,11 +13,18 @@
<?php if($FORM['TYPE'] !== 'DELETE'): ?>
<div class="form-grid">
- <label for="form_id">
- <i class="fa fa-database"></i>ID</label>
+ <label for="form_name">
+ <i class="fa fa-newspaper-o"></i><?=$Language->text('label_name')?></label>
+
+ <div class="form-grid-item first">
+ <input id="form_name" name="name" value="<?=escapeHTML($FORM['DATA']['NAME'])?>" />
+ </div>
+
+ <label for="form_slug">
+ <i class="fa fa-link"></i><?=$Language->text('label_slug')?></label>
<div class="form-grid-item">
- <input<?=($FORM['TYPE'] === 'UPDATE') ? ' disabled="disabled"' : '';?> id="form_id" name="id" type="number" placeholder="AUTO_INCREMENT" value="<?=escapeHTML($FORM['DATA']['ID'])?>" />
+ <input id="form_slug" name="slug" value="<?=escapeHTML($FORM['DATA']['SLUG'])?>" />
</div>
<label for="form_user">
@@ -31,20 +38,6 @@
</select>
</div>
- <label for="form_name">
- <i class="fa fa-newspaper-o"></i><?=$Language->text('label_name')?></label>
-
- <div class="form-grid-item">
- <input id="form_name" name="name" value="<?=escapeHTML($FORM['DATA']['NAME'])?>" />
- </div>
-
- <label for="form_slug">
- <i class="fa fa-link"></i><?=$Language->text('label_slug')?></label>
-
- <div class="form-grid-item">
- <input id="form_slug" name="slug" value="<?=escapeHTML($FORM['DATA']['SLUG'])?>" />
- </div>
-
<label for="form_time_insert">
<i class="fa fa-clock-o"></i><?=$Language->text('label_insert')?></label>