用户列表添加单位

ouyangxuhua
linchun 10 years ago
parent 3e70db4e82
commit 96f65f338c

@ -45,6 +45,9 @@
<th style="width: 50px;">
用户身份
</th>
<th style="width: 50px;">
用户单位
</th>
</tr>
</thead>
<tbody>
@ -74,6 +77,9 @@
<td align="center">
老师
</td>
<td align="center">
<%= teacher.school_id.nil? ? "" : (School.find teacher.school_id).try(:name) %>
</td>
</tr>
<% end %>
</tbody>

@ -46,6 +46,9 @@
<th style="width: 50px;">
用户身份
</th>
<th style="width: 50px;">
用户单位
</th>
</tr>
</thead>
<tbody>
@ -88,6 +91,13 @@
<% end %>
<% end%>
</td>
<td align="center">
<% if User.current.user_extensions.identity == "0" %>
<%= user.user_extensions.school_id.nil? ? "" : (School.where("id =?", user.user_extensions.school_id)).first.try(:name) %>
<% else %>
<%= user.user_extensions.occupation %>
<% end %>
</td>
</tr>
<% end %>
</tbody>

Loading…
Cancel
Save