From 72bd04099ec4dab640976140e6dedf07d3b90ef8 Mon Sep 17 00:00:00 2001 From: saurabhbhatia Date: Fri, 27 Sep 2013 12:01:41 +0800 Subject: [PATCH] Fixed order of Teacher Show page Conflicts: vendor/built_in_modules/member/app/views/panel/member/front_end/member_lists/show.html.erb --- .../member_lists/_show_office_field.html.erb | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 vendor/built_in_modules/member/app/views/panel/member/front_end/member_lists/_show_office_field.html.erb diff --git a/vendor/built_in_modules/member/app/views/panel/member/front_end/member_lists/_show_office_field.html.erb b/vendor/built_in_modules/member/app/views/panel/member/front_end/member_lists/_show_office_field.html.erb new file mode 100644 index 00000000..ec26550a --- /dev/null +++ b/vendor/built_in_modules/member/app/views/panel/member/front_end/member_lists/_show_office_field.html.erb @@ -0,0 +1,30 @@ + <% show_office_field.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? + %> + + + <% if rf.title == "Office"%> + <%= rf.title %> + <%= nl2br(show_attribute_value(@member.get_attribute_value(rf).get_value_by_locale(I18n.locale))) rescue '' %> + + <%end%> + + + + <% end -%> + + <% end -%> + + <% end -%> +