From e0273d320cb371abe4d66d91bba7f3cdcd4baf84 Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Wed, 28 May 2014 15:05:11 +0800 Subject: [PATCH] =?UTF-8?q?1.=E7=99=BB=E5=BD=95=E5=A2=9E=E5=8A=A0js?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E5=8F=AF=E4=BB=A5=E7=94=A8=E6=98=B5=E7=A7=B0?= =?UTF-8?q?=E5=92=8C=E9=82=AE=E7=AE=B1=E7=99=BB=E5=BD=95=202.=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E8=B5=84=E6=96=99=E7=95=8C=E9=9D=A2=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=98=B5=E7=A7=B0=E7=9A=84=E4=BF=AE=E6=94=B9=E4=BB=A5=E5=8F=8A?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=98=B5=E7=A7=B0=E7=9A=84=E9=AA=8C=E8=AF=81?= =?UTF-8?q?=203.=E4=BF=AE=E6=94=B9=E6=98=B5=E7=A7=B0=E7=9A=84=E6=8F=8F?= =?UTF-8?q?=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/account/login.html.erb | 26 ++++++++++++++++++++++++-- app/views/account/register.html.erb | 16 +++++++++++----- app/views/my/account.html.erb | 4 ++++ config/locales/en.yml | 3 ++- config/locales/zh.yml | 6 ++++-- 5 files changed, 45 insertions(+), 10 deletions(-) diff --git a/app/views/account/login.html.erb b/app/views/account/login.html.erb index a9b88c32b..dc1e47ed7 100644 --- a/app/views/account/login.html.erb +++ b/app/views/account/login.html.erb @@ -1,11 +1,33 @@ <%= call_hook :view_account_login_top %> + + +
<%= form_tag(signin_path) do %> <%= back_url_hidden_field_tag %> - - + + diff --git a/app/views/account/register.html.erb b/app/views/account/register.html.erb index f24f7d052..cc7a26ad8 100644 --- a/app/views/account/register.html.erb +++ b/app/views/account/register.html.erb @@ -279,7 +279,7 @@ <% if @user.auth_source_id.nil? %>

<%= f.text_field :login, :size => 25, :required => true %> - <%= l(:label_max_number) %>

+ <%= l(:label_max_number) %>

<%= f.password_field :password, :size => 25, :required => true %> <%= l(:text_caracters_minimum, :count => Setting.password_min_length) %>

@@ -302,10 +302,16 @@
<%= text_field_tag 'username', params[:username], :tabindex => '1' %> + <%= text_field_tag 'username', params[:username], :tabindex => '1' , :value => "#{l(:label_login_prompt)}", + :onfocus => "clearInfo('username','#{l(:label_login_prompt)}')", + :onblur => "showInfo('username','#{l(:label_login_prompt)}')", + :style => "resize: none;font-size: 12px;color: #818283;"%> +
-
<%= l(:label_gender) %>   - <%= select_tag 'gender', " - ".html_safe %>

+

+ + + +
<%= l(:label_gender) %>   + <%= select_tag 'gender', " + ".html_safe %> +
+

+

diff --git a/app/views/my/account.html.erb b/app/views/my/account.html.erb index 0418697c3..c9390bcc3 100644 --- a/app/views/my/account.html.erb +++ b/app/views/my/account.html.erb @@ -57,6 +57,10 @@
<%= l(:label_location) %> *