Browse Source

Use type=email on input field

Browsers will fallback automatically to text if the type is unrecognized. Mobile browsers (iPhone or Android for instance) will display a keyboard which is easier to write emails than the regular one (all lowercase by default, `@` character present on the keyboard).
Leandro López 8 years ago
parent
commit
a48749945b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      views/index.jade

+ 1 - 1
views/index.jade

@@ -16,7 +16,7 @@ html
         .content
           .information
             form(method="POST", action="/invite")#join-form.form
-              input(type="text", name="email", placeholder="#{__('ENTER_EMAIL')}")#slack-email.field
+              input(type="email", name="email", placeholder="#{__('ENTER_EMAIL')}")#slack-email.field
               if tokenRequired
                 input(type="text", name="token", placeholder="#{__('ENTER_TOKEN')}")#slack-token.field
               input(type="submit", value="Join").submit