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 | |
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')
-rw-r--r-- | theme/admin/html/auth.php | 4 | ||||
-rw-r--r-- | theme/admin/html/category/form.php | 4 | ||||
-rw-r--r-- | theme/admin/html/database.php | 2 | ||||
-rw-r--r-- | theme/admin/html/page/form.php | 4 | ||||
-rw-r--r-- | theme/admin/html/page/search.php | 2 | ||||
-rw-r--r-- | theme/admin/html/post/form.php | 4 | ||||
-rw-r--r-- | theme/admin/html/post/search.php | 2 | ||||
-rw-r--r-- | theme/admin/html/user/form.php | 8 |
8 files changed, 15 insertions, 15 deletions
diff --git a/theme/admin/html/auth.php b/theme/admin/html/auth.php index cff8612..efc402e 100644 --- a/theme/admin/html/auth.php +++ b/theme/admin/html/auth.php @@ -20,14 +20,14 @@ <i class="fa fa-user-secret"></i><?=$Language->text('label_username')?></label> <div class="form-grid-item"> - <input id="form_username" name="username" value="<?=escapeHTML($FORM['DATA']['USERNAME'])?>" autofocus /> + <input id="form_username" name="username" value="<?=escapeHTML($FORM['DATA']['USERNAME'])?>" required autofocus /> </div> <label for="form_password"> <i class="fa fa-key"></i><?=$Language->text('label_password')?></label> <div class="form-grid-item"> - <input type="password" id="form_password" name="password" /> + <input type="password" id="form_password" name="password" required /> </div> </div> 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"> diff --git a/theme/admin/html/database.php b/theme/admin/html/database.php index 62afefa..1ba7adc 100644 --- a/theme/admin/html/database.php +++ b/theme/admin/html/database.php @@ -16,7 +16,7 @@ <input type="hidden" name="token" value="<?=$FORM['TOKEN']?>" /> <div class="form-border-box"> - <textarea id="content-editor" placeholder="<?=$Language->text('database_warning')?>" name="command" autofocus><?=escapeHTML($FORM['COMMAND'])?></textarea> + <textarea id="content-editor" placeholder="<?=$Language->text('database_warning')?>" name="command" required autofocus><?=escapeHTML($FORM['COMMAND'])?></textarea> </div> <?php if($FORM['RESULT']): ?> diff --git a/theme/admin/html/page/form.php b/theme/admin/html/page/form.php index ae3f437..97713e2 100644 --- a/theme/admin/html/page/form.php +++ b/theme/admin/html/page/form.php @@ -17,7 +17,7 @@ <i class="fa fa-file-text-o"></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"> @@ -67,7 +67,7 @@ <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/page/search.php b/theme/admin/html/page/search.php index 2bf02be..7d53e3a 100644 --- a/theme/admin/html/page/search.php +++ b/theme/admin/html/page/search.php @@ -18,7 +18,7 @@ <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> </div> <div class="form-border-box background padding"> 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"> diff --git a/theme/admin/html/user/form.php b/theme/admin/html/user/form.php index 6f4185d..2806598 100644 --- a/theme/admin/html/user/form.php +++ b/theme/admin/html/user/form.php @@ -17,14 +17,14 @@ <i class="fa fa-user"></i><?=$Language->text('label_fullname')?></label> <div class="form-grid-item first"> - <input id="form_fullname" name="fullname" value="<?=escapeHTML($FORM['DATA']['FULLNAME'])?>" autofocus /> + <input id="form_fullname" name="fullname" value="<?=escapeHTML($FORM['DATA']['FULLNAME'])?>" required autofocus /> </div> <label for="form_username"> <i class="fa fa-user-secret"></i><?=$Language->text('label_username')?></label> <div class="form-grid-item"> - <input id="form_username" name="username" value="<?=escapeHTML($FORM['DATA']['USERNAME'])?>" /> + <input id="form_username" name="username" value="<?=escapeHTML($FORM['DATA']['USERNAME'])?>" required /> </div> <label for="form_password"> @@ -38,7 +38,7 @@ <i class="fa fa-envelope-o"></i><?=$Language->text('label_mailaddr')?></label> <div class="form-grid-item"> - <input id="form_mailaddr" name="mailaddr" value="<?=escapeHTML($FORM['DATA']['MAILADDR'])?>" /> + <input id="form_mailaddr" name="mailaddr" value="<?=escapeHTML($FORM['DATA']['MAILADDR'])?>" required /> </div> <label for="form_slug"> @@ -77,7 +77,7 @@ <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"> |