用户navbar问题,注册对齐问题
This commit is contained in:
parent
abec725264
commit
8a3d1d033c
|
@ -234,4 +234,10 @@ module UsersHelper
|
|||
|
||||
false
|
||||
end
|
||||
|
||||
# base user上面的navbar显示内容
|
||||
def show_item_on_navbar params
|
||||
displayed_item = %w|index|
|
||||
displayed_item.include?(params['action'])
|
||||
end
|
||||
end
|
||||
|
|
|
@ -297,7 +297,7 @@
|
|||
<p><%= f.text_field :mail, :required => true %></p>
|
||||
<p>
|
||||
<em class="info"><%="#{l(:label_mail_attention)} "%></em></p>
|
||||
<p><%= f.select :language, lang_options_for_select %></p>
|
||||
<p><%= f.select :language, lang_options_for_select , :required => true %></p>
|
||||
|
||||
<!-- added by bai 增加了身份、性别和地区-->
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<% @nav_dispaly_user_label = 1 %>
|
||||
<% @nav_dispaly_user_label = show_item_on_navbar(params) %>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
|
|
Loading…
Reference in New Issue