diff options
author | Thomas Lange <code@nerdmind.de> | 2021-07-28 14:43:47 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2021-07-28 14:43:47 +0200 |
commit | 1017a99e81d0445a8614917a1798bbd02d88d14e (patch) | |
tree | e38c8be0d576c5508fe0828456e2967aaea088fa /theme/admin/html/category | |
parent | c6ca335253153f2c48da1474712f82ea31526d10 (diff) | |
download | blog-1017a99e81d0445a8614917a1798bbd02d88d14e.tar.gz blog-1017a99e81d0445a8614917a1798bbd02d88d14e.tar.xz blog-1017a99e81d0445a8614917a1798bbd02d88d14e.zip |
Add "required" attribute to required form fields
Diffstat (limited to 'theme/admin/html/category')
-rw-r--r-- | theme/admin/html/category/form.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/theme/admin/html/category/form.php b/theme/admin/html/category/form.php index a6c1137..b358233 100644 --- a/theme/admin/html/category/form.php +++ b/theme/admin/html/category/form.php @@ -33,7 +33,7 @@ function categorySelectList($category_tree, $selected = NULL, $current = NULL, $ <i class="fa fa-tag"></i><?=$Language->text('label_name')?></label> <div class="form-grid-item first"> - <input id="form_name" name="name" value="<?=escapeHTML($FORM['DATA']['NAME'])?>" autofocus /> + <input id="form_name" name="name" value="<?=escapeHTML($FORM['DATA']['NAME'])?>" required autofocus /> </div> <label for="form_slug"> @@ -82,7 +82,7 @@ function categorySelectList($category_tree, $selected = NULL, $current = NULL, $ <li data-markdown="list_ol" class="fa fa-list-ol" title="<?=$Language->text('markdown_list_ol')?>"></li> </ul> </div> - <textarea id="content-editor" name="body" placeholder="[…]"><?=escapeHTML($FORM['DATA']['BODY'])?></textarea> + <textarea id="content-editor" name="body" placeholder="[…]" required><?=escapeHTML($FORM['DATA']['BODY'])?></textarea> </div> <div id="emoticon-list-wrapper" class="form-border-box background padding"> <ul id="emoticon-list" class="button-list emoticons"> |