                <% 
                  @status = @member.role_statuses.where(:role_id=>show_roles.id)

                  if !@status.blank?
                %>
                <tr>
                  <td><%= t('status')%></td>
                  <td><%= show_attribute_value(@member.role_statuses.where(:role_id=>show_roles.id).map{|t|t.title.to_s}.join(',')) rescue '' %></td>
                </tr>

                <% end -%>

                <% 
                  @category = @member.role_categorys.where(:role_id=>show_roles.id)

                  if !@category.blank?
                %>
                <tr>
                  <td><%= t('category')%></td>
                  <td><%= show_attribute_value(@member.role_categorys.where(:role_id=>show_roles.id).map{|t|t.title.to_s}.join(',')) rescue '' %></td>
                </tr>

                <% end -%>

                <% show_roles.attribute_fields.where(:disabled=>false).asc(:_id).each do |rf| %>

                  <% 
                    if !@member.get_attribute_value(rf).blank?
                      if !@member.get_attribute_value(rf)['val'].blank?
                        @rodata = @member.get_attribute_value(rf)['val']
                      elsif !@member.get_attribute_value(rf)[I18n.locale].blank?
                        @rodata = @member.get_attribute_value(rf)[I18n.locale]
                      else
                        @rodata = nil
                      end

                    if !@rodata.blank? and !@member.get_attribute_value(rf).get_value_by_locale(I18n.locale).blank?
                  %>

                    <tr>
                      <td><%= rf.title %></td>
                      <td><%= nl2br(show_attribute_value(@member.get_attribute_value(rf).get_value_by_locale(I18n.locale))) rescue '' %></td>
                    </tr>

                    <% end -%>

                  <% end -%>
                  
                <% end -%>

                <%= render :partial => 'show_sub_role',:collection=> @member.get_sub_roles_by_role(show_roles)%>

