]> git.openstreetmap.org Git - rails.git/commitdiff
Change OpenID fields to be text fields
authorTom Hughes <tom@compton.nu>
Sun, 22 Feb 2015 13:33:26 +0000 (13:33 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 22 Feb 2015 13:34:08 +0000 (13:34 +0000)
Although technically a URL is required in practive a domain is
often enough, but browsers will reject that in a URL field.

app/views/user/account.html.erb
app/views/user/login.html.erb
app/views/user/new.html.erb

index 94183ff4244d51fae61cdf1633bdc8e787469a52..1cd05aba6c5b677f8e3a665f8d5b3154570a8bcc 100644 (file)
@@ -44,7 +44,7 @@
   <fieldset>
     <div class="form-row">
       <label class="standard-label"><%= t 'user.account.openid.openid' %></label>
   <fieldset>
     <div class="form-row">
       <label class="standard-label"><%= t 'user.account.openid.openid' %></label>
-      <%= f.url_field :openid_url, {:id => "openid_url", :class => "openid_url"} %>
+      <%= f.text_field :openid_url, {:id => "openid_url", :class => "openid_url"} %>
       <span class="form-help deemphasize">(<a href="<%= t 'user.account.openid.link' %>" target="_new"><%= t 'user.account.openid.link text' %></a>)</span>
     </diV>
   </fieldset>
       <span class="form-help deemphasize">(<a href="<%= t 'user.account.openid.link' %>" target="_new"><%= t 'user.account.openid.link text' %></a>)</span>
     </diV>
   </fieldset>
index a78916dcc54267e54c138b77518110aebecb6442..2b667c7250ecd9d2d0bc1606f2f80f06b45dc2c0 100644 (file)
@@ -50,7 +50,7 @@
 
           <div id='login_openid_url' class='form-row'>
             <label class="standard-label"><%= raw t 'user.login.openid', :logo => openid_logo %></label>
 
           <div id='login_openid_url' class='form-row'>
             <label class="standard-label"><%= raw t 'user.login.openid', :logo => openid_logo %></label>
-            <%= url_field_tag("openid_url", "", { :tabindex => 3, :class => "openid_url" }) %>
+            <%= text_field_tag("openid_url", "", { :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>
           </div>
 
             <span class="minorNote">(<a href="<%= t 'user.account.openid.link' %>" target="_new"><%= t 'user.account.openid.link text' %></a>)</span>
           </div>
 
index d1772f996d99453c42febd457b7e583ef282098d..d7e9bd63d35a9cf62400a7be3e8e4fb39f1749db 100644 (file)
@@ -41,7 +41,7 @@
       <label for="openid_url" class="standard-label">
         <%= raw t 'user.new.openid', :logo => openid_logo %>
       </label>
       <label for="openid_url" class="standard-label">
         <%= raw t 'user.new.openid', :logo => openid_logo %>
       </label>
-      <%= url_field(:user, :openid_url, { :id => "openid_url", :tabindex => 4, :class => "openid_url" }) %>
+      <%= text_field(:user, :openid_url, { :id => "openid_url", :tabindex => 4, :class => "openid_url" }) %>
       <%= error_message_on(:user, :openid_url) %>
     </div>
     <span class="form-help deemphasize"><%= t 'user.new.openid no password' %></span>
       <%= error_message_on(:user, :openid_url) %>
     </div>
     <span class="form-help deemphasize"><%= t 'user.new.openid no password' %></span>