Use HTML5 email and url field types where appropriate
This commit is contained in:
parent
281a3239e6
commit
d70fd8ab1a
4 changed files with 7 additions and 7 deletions
|
@ -979,7 +979,7 @@ p#contributorGuidance {
|
|||
font-size: 0.8em;
|
||||
}
|
||||
|
||||
input[type="text"], input[type="password"], textarea {
|
||||
input[type="text"], input[type="email"], input[type="url"], input[type="password"], textarea {
|
||||
border: 1px solid black;
|
||||
}
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
<tr>
|
||||
<td class="fieldName"><%= t 'user.account.new email address' %></td>
|
||||
<td><%= f.text_field :new_email, {:size => 50, :maxlength => 255} %> <span class="minorNote"><%= t 'user.account.email never displayed publicly' %></span></td>
|
||||
<td><%= f.email_field :new_email, {:size => 50, :maxlength => 255} %> <span class="minorNote"><%= t 'user.account.email never displayed publicly' %></span></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
@ -29,7 +29,7 @@
|
|||
|
||||
<tr>
|
||||
<td class="fieldName" ><%= t 'user.account.openid.openid' %></td>
|
||||
<td><%= f.text_field :openid_url, {:id => "openid_url", :class => "openid_url"} %> <span class="minorNote">(<a href="<%= t 'user.account.openid.link' %>" target="_new"><%= t 'user.account.openid.link text' %></a>)</span></td>
|
||||
<td><%= f.url_field :openid_url, {:id => "openid_url", :class => "openid_url"} %> <span class="minorNote">(<a href="<%= t 'user.account.openid.link' %>" target="_new"><%= t 'user.account.openid.link text' %></a>)</span></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
<%= raw t 'user.login.openid', :logo => openid_logo %>
|
||||
</td>
|
||||
<td>
|
||||
<%= text_field_tag("openid_url", "", { :size => 28, :maxlength => 255, :tabindex => 3, :class => "openid_url" }) %>
|
||||
<%= url_field_tag("openid_url", "", { :size => 28, :maxlength => 255, :tabindex => 3, :class => "openid_url" }) %>
|
||||
<span class="minorNote">(<a href="<%= t 'user.account.openid.link' %>" target="_new"><%= t 'user.account.openid.link text' %></a>)</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -18,11 +18,11 @@
|
|||
<table id="signupForm">
|
||||
<tr>
|
||||
<td class="fieldName"><%= t 'user.new.email address' %></td>
|
||||
<td><%= text_field(:user, :email, { :size => 50, :maxlength => 255, :tabindex => 1 }) %></td>
|
||||
<td><%= email_field(:user, :email, { :size => 50, :maxlength => 255, :tabindex => 1 }) %></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="fieldName"><%= t 'user.new.confirm email address' %></td>
|
||||
<td><%= text_field(:user, :email_confirmation, { :size => 50, :maxlength => 255, :tabindex => 2 }) %></td>
|
||||
<td><%= email_field(:user, :email_confirmation, { :size => 50, :maxlength => 255, :tabindex => 2 }) %></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
|
@ -43,7 +43,7 @@
|
|||
|
||||
<tr id="openid_field">
|
||||
<td class="fieldName"><%= raw t 'user.new.openid', :logo => openid_logo %></td>
|
||||
<td><%= text_field(:user, :openid_url, { :id => "openid_url", :size => 50, :maxlength => 255, :tabindex => 4, :class => "openid_url" }) %></td>
|
||||
<td><%= url_field(:user, :openid_url, { :id => "openid_url", :size => 50, :maxlength => 255, :tabindex => 4, :class => "openid_url" }) %></td>
|
||||
</tr>
|
||||
|
||||
<tr><td colspan="2"> <!--vertical spacer--></td></tr>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue