new ui personal front_end page(member app) & users_new_interface show sub_roles fix

This commit is contained in:
Spen authored and saurabhbhatia committed 2013-08-21 14:13:36 +08:00
1 parent c474fa063f
commit 4078d426a6
45 files changed
+820 -59

No files matched your search

@@ -12,4 +12,7 @@
<dd><%= nl2br(show_attribute_value(@user.get_attribute_value(rf).get_value_by_locale(I18n.locale))) rescue '' %></dd>
<% end -%>
</dl>
</div>
<%= render :partial => 'show_sub_role',:collection=> @user.get_sub_roles_by_role(show_roles)%>
</div>
@@ -1,7 +1,11 @@
<tr><td class="span1"><%= show_sub_role.title %></td></tr>
<% show_sub_role.attribute_fields.each do |item|%>
<tr>
<td class="span1"><%= item.title %></td>
<td><%= nl2br(show_attribute_value(@user.get_attribute_value(item).get_value_by_locale(I18n.locale))) rescue '' %></td>
</tr>
<% end %>
<div class="sub_roles">
<h4><span><%= show_sub_role.title %><%= t(:sub_role_info)%></span></h4>
<dl>
<% show_sub_role.attribute_fields.where(:disabled=>false).asc(:_id).each do |item| %>
<dt><%= item.title %></dt>
<dd><%= nl2br(show_attribute_value(@user.get_attribute_value(item).get_value_by_locale(I18n.locale))) rescue '' %></dd>
<% end -%>
</dl>
</div>