aboutsummaryrefslogtreecommitdiffstats
path: root/theme/admin/html/post
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-07-28 14:43:47 +0200
committerThomas Lange <code@nerdmind.de>2021-07-28 14:43:47 +0200
commit1017a99e81d0445a8614917a1798bbd02d88d14e (patch)
treee38c8be0d576c5508fe0828456e2967aaea088fa /theme/admin/html/post
parentc6ca335253153f2c48da1474712f82ea31526d10 (diff)
downloadblog-1017a99e81d0445a8614917a1798bbd02d88d14e.tar.gz
blog-1017a99e81d0445a8614917a1798bbd02d88d14e.tar.xz
blog-1017a99e81d0445a8614917a1798bbd02d88d14e.zip
Add "required" attribute to required form fields
Diffstat (limited to 'theme/admin/html/post')
-rw-r--r--theme/admin/html/post/form.php4
-rw-r--r--theme/admin/html/post/search.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/theme/admin/html/post/form.php b/theme/admin/html/post/form.php
index 2e626a6..e4df2ba 100644
--- a/theme/admin/html/post/form.php
+++ b/theme/admin/html/post/form.php
@@ -32,7 +32,7 @@ function categorySelectList($category_tree, $selected = NULL, $prefix = '') {
<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'])?>" autofocus />
+ <input id="form_name" name="name" value="<?=escapeHTML($FORM['DATA']['NAME'])?>" required autofocus />
</div>
<label for="form_slug">
@@ -92,7 +92,7 @@ function categorySelectList($category_tree, $selected = NULL, $prefix = '') {
<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">
diff --git a/theme/admin/html/post/search.php b/theme/admin/html/post/search.php
index 17befc7..dff8dfb 100644
--- a/theme/admin/html/post/search.php
+++ b/theme/admin/html/post/search.php
@@ -33,7 +33,7 @@ function categorySelectList($category_tree, $selected = NULL, $prefix = '') {
<i class="fa fa-search"></i><?=$Language->text('search')?></label>
<div class="form-grid-item first">
- <input id="form_query" type="search" name="q" placeholder="<?=$Language->text('placeholder_search')?>" value="<?=escapeHTML($QUERY)?>" autofocus />
+ <input id="form_query" type="search" name="q" placeholder="<?=$Language->text('placeholder_search')?>" value="<?=escapeHTML($QUERY)?>" required autofocus />
</div>
<label for="form_category">