[openstreetmap/openstreetmap-website] Re-arrange login and signup screens as discussed in #4128 (PR #4455)
Tom Hughes
notifications at github.com
Wed Jan 3 14:37:32 UTC 2024
@tomhughes commented on this pull request.
> -
-<div id="login_login">
- <p class='text-muted'><%= t ".no account" %> <%= link_to t(".register now"), user_new_path(:referer => params[:referer]) %></p>
-
- <%= bootstrap_form_tag(:action => "login", :html => { :id => "login_form" }) do |f| %>
- <%= hidden_field_tag("referer", h(params[:referer]), :autocomplete => "off") %>
-
- <%= f.text_field :username, :label => t(".email or username"), :tabindex => 1, :value => params[:username] %>
- <%= f.password_field :password, :label => t(".password"), :tabindex => 2, :value => "", :help => link_to(t(".lost password link"), user_forgot_password_path) %>
- <%= f.form_group do %>
- <%= f.check_box :remember_me, { :label => t(".remember"), :tabindex => 3, :checked => (params[:remember_me] == "yes") }, "yes" %>
- <% end %>
+<div id="login_login" class="auth-container">
+ <div class="tabs">
+ <button class="tab-button active" disabled="true"><%= t ".tab_title" %></button>
+ <button class="tab-button" onclick="location.pathname='<%= url_for(:action => :new, :controller => :users) -%>'"><%= t "users.new.tab_title" %></button>
The `onlick` won't work anyway as our security policy doesn't allow inline javascript.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4455#discussion_r1440526251
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4455/review/1802271453 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240103/166ff974/attachment-0001.htm>
More information about the rails-dev
mailing list