Explorar el Código

Mark fields as required

tags/v1.0.0
Chris Smith hace 5 años
padre
commit
6fd2c0dab7
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3
    3
      form.html

+ 3
- 3
form.html Ver fichero

@@ -68,9 +68,9 @@
68 68
         <form action="submit" method="post">
69 69
             <h1>Contact me</h1>
70 70
             {{ .csrfField }}
71
-            <input type="text" name="name" placeholder="Your name">
72
-            <input type="email" name="from" placeholder="Your e-mail address">
73
-            <textarea name="message" placeholder="Your message"></textarea>
71
+            <input type="text" name="name" placeholder="Your name" required>
72
+            <input type="email" name="from" placeholder="Your e-mail address" required>
73
+            <textarea name="message" placeholder="Your message" required></textarea>
74 74
             <button>SEND</button>
75 75
         </form>
76 76
     </div>

Loading…
Cancelar
Guardar