Permalink
Browse files

User name and email shown as required on the user access form

  • Loading branch information...
1 parent 223f515 commit 4b179d83b527c0a417883ced4540e898ef8421f8 @benilovj benilovj committed Nov 2, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 app/views/useraccess/user.html.erb
@@ -7,12 +7,12 @@
<header class="section-header">User details</header>
- <label for="user_name">Name</label>
- <input id="user_name" name="user_name" class="span6" type="text" <%= render "assignvalue", {:param => @formdata[:user_name]} %>>
+ <label for="user_name">Name (required)</label>
+ <input id="user_name" name="user_name" class="span6" type="text" required aria-required="true" <%= render "assignvalue", {:param => @formdata[:user_name]} %>>
<%= render "errors", {errors: @errors, key: "User name"} %>
- <label for="email">Email</label>
- <input id="email" name="user_email" class="span6" type="email" <%= render "assignvalue", {:param => @formdata[:user_email]} %>>
+ <label for="email">Email (required)</label>
+ <input id="email" name="user_email" class="span6" type="email" required aria-required="true" <%= render "assignvalue", {:param => @formdata[:user_email]} %>>
<%= render "errors", {errors: @errors, key: "User email"} %>
<fieldset>

0 comments on commit 4b179d8

Please sign in to comment.