fix main forms css and a user profile bug

This commit is contained in:
Harry Bomrah 2015-04-30 14:38:36 +08:00
parent 83656d2362
commit 927b08edeb
2 changed files with 658 additions and 666 deletions

File diff suppressed because it is too large Load Diff

View File

@ -16,8 +16,13 @@
<dt><%= t('users.sex')%></dt>
<dd><%= t("users.#{(@member.sex.nil? ? 'unknown' : @member.sex)}") %></dd>
<% items.each do |item| %>
<dt><%= item.member_profile_field.title %></dt>
<dd><%= nl2br(show_attribute_value(@member.get_attribute_value(item.member_profile_field).get_value_by_locale(I18n.locale))) rescue '' %></dd>
<% if item.member_profile_field.nil?
item.destroy
else
%>
<dt><%= item.member_profile_field.title %></dt>
<dd><%= nl2br(show_attribute_value(@member.get_attribute_value(item.member_profile_field).get_value_by_locale(I18n.locale))) rescue '' %></dd>
<% end %>
<% end -%>
</dl>
</div>