<%= t 'user.account.profile description' %> |
- <%= f.text_area :description, :rows => '5', :cols => '60' %> |
+ <%= richtext_area :user, :description, :rows => '15', :cols => '80' %> |
@@ -81,13 +85,10 @@
<%= t 'user.account.image' %>
- <% if @user.image.nil? %>
- <%= hidden_field_tag "image_action", "new" %>
- <%= t 'user.account.new image' %> <%= file_column_field "user", "image" %> <%= t 'user.account.image size hint' %>
- <% else %>
+ <% if @user.image.file? %>
- <%= image_tag url_for_file_column(@user, "image"), :class => "user_image" %> |
+ <%= user_image @user %> |
<%= radio_button_tag "image_action", "keep", true %> |
<%= t 'user.account.keep image' %> |
@@ -97,9 +98,12 @@
<%= radio_button_tag "image_action", "new" %> |
- <%= t 'user.account.replace image' %> <%= file_column_field "user", "image", :onchange => "$('image_action_new').checked = true" %> <%= t 'user.account.image size hint' %> |
+ <%= t 'user.account.replace image' %> <%= f.file_field :image, :onchange => "$('image_action_new').prop('checked', true)" %> <%= t 'user.account.image size hint' %> |
+ <% else %>
+ <%= hidden_field_tag "image_action", "new" %>
+ <%= t 'user.account.new image' %> <%= f.file_field :image %> <%= t 'user.account.image size hint' %>
<% end %>
|
@@ -129,11 +133,6 @@
<% unless @user.data_public? %>