aboutsummaryrefslogtreecommitdiffstats
path: root/theme/admin/html/user
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/user
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/user')
-rw-r--r--theme/admin/html/user/form.php8
1 files changed, 4 insertions, 4 deletions
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">