Browse Source

Required fields

master
Dylan Baker 3 years ago
parent
commit
7484ad106b
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      templates/admin/index.html

+ 2
- 2
templates/admin/index.html View File

@@ -5,11 +5,11 @@
5 5
   <input type="hidden" name="date" />
6 6
   <div class="form__field">
7 7
     <label for="title" class="form__label">Title</label>
8
-    <input class="form__text-field" type="text" name="title" />
8
+    <input class="form__text-field" type="text" name="title" required />
9 9
   </div>
10 10
   <div class="form__field">
11 11
     <label for="body" class="form__label">Body</label>
12
-    <textarea class="form__textarea" name="body"></textarea>
12
+    <textarea class="form__textarea" name="body" required></textarea>
13 13
   </div>
14 14
   <div class="form__field">
15 15
     <input class="form__button" type="submit" value="Post" />

Loading…
Cancel
Save