#1832 不显示无数据的字段,字段名

enterprise
sw 11 years ago
parent 56700f4d62
commit 5950f0404b

@ -1961,4 +1961,8 @@ module ApplicationHelper
end end
confirm_info confirm_info
end end
def get_technical_title user
#user.user_extensions.technical_title
end
end end

@ -267,27 +267,32 @@
</td> </td>
</tr> </tr>
<% end %> <% end %>
<tr> <% unless @user.user_extensions.location.empty?%>
<td style=" float: right" width="70px"> <tr>
<span style="float: right"> <%= l(:label_location) %></span>
</td> <td style=" float: right" width="70px">
<td class="font_lighter_sidebar" style="padding-left: 0px" width="170px"> <span style="float: right"> <%= l(:label_location) %></span>
<%= @user.user_extensions.location %> </td>
<%= @user.user_extensions.location_city %> <td class="font_lighter_sidebar" style="padding-left: 0px" width="170px">
</td> <%= @user.user_extensions.location %>
</tr> <%= @user.user_extensions.location_city %>
<tr> </td>
<% if @user.user_extensions.identity == 0 %> </tr>
<td style=" float: right" width="70px" > <% end %>
<span style="float: right"> <%= l(:label_technical_title) %></span> <% unless @user.user_extensions.technical_title.nil?%>
</td> <tr>
<td class="font_lighter_sidebar" style="padding-left: 0px" width="170px"> <% if @user.user_extensions.identity == 0 %>
<span id = "td_tech_title"></span> <td style=" float: right" width="70px" >
</td> <span style="float: right"> <%= l(:label_technical_title) %></span>
<% end %> </td>
</tr> <td class="font_lighter_sidebar" style="padding-left: 0px" width="170px">
<span id = "td_tech_title"></span>
</td>
<% end %>
</tr>
<%end%>
<% if @user.user_extensions.identity == 1 %> <% if @user.user_extensions.identity == 1 %>
<% if(is_watching?(@user) ) %> <% if(is_watching?(@user) ) && !@user.user_extensions.student_id.empty? %>
<tr> <tr>
<td style=" float: right" width="70px" > <td style=" float: right" width="70px" >
<span style="float: right"> <%= l(:label_bidding_user_studentcode)%></span> <span style="float: right"> <%= l(:label_bidding_user_studentcode)%></span>

Loading…
Cancel
Save