+ <fieldset class="form-row">
+ <label><%= t 'user.account.image' %></label>
+ <div class="accountImage">
+ <%= user_image @user %>
+ <fieldset class="accountImage-options">
+ <% if @user.image.file? %>
+ <div class="form-row">
+ <%= radio_button_tag "image_action", "keep", !@user.image_use_gravatar %>
+ <%= t 'user.account.keep image' %>
+ </div>
+ <% end %>
+ <% if @user.image.file? || @user.image_use_gravatar? %>
+ <div class="form-row">
+ <%= radio_button_tag "image_action", "delete" %>
+ <%= t 'user.account.delete image' %>
+ </div>
+ <% end %>
+ <% if @user.image.file? %>
+ <div>
+ <div class="form-row">
+ <%= radio_button_tag "image_action", "new" %>
+ <%= t 'user.account.replace image' %>
+ </div>
+ <div class="form-row">
+ <%= f.file_field :image, :onchange => "$('#image_action_new').prop('checked', true)" %>
+ <p class="form-help deemphasize"><%= t 'user.account.image size hint' %></p>
+ </div>
+ </div>
+ <% else %>
+ <div class="form-row">
+ <%= radio_button_tag "image_action", "new" %>
+ <%= t 'user.account.new image' %>
+ </div>
+ <div class="form-row">
+ <%= f.file_field :image, :onchange => "$('#image_action_new').prop('checked', true)" %>
+ <p class="form-help deemphasize"><%= t 'user.account.image size hint' %></p>
+ </div>
+ <% end %>
+ <div class="form-row">
+ <%= radio_button_tag "image_action", "gravatar", @user.image_use_gravatar %>
+ <%= t 'user.account.gravatar.gravatar' %>
+ <p class="form-help deemphasize">(<a href="<%= t 'user.account.gravatar.link' %>" target="_new"><%= t 'user.account.gravatar.link text' %></a>)</p>
+ </div>
+ </fieldset>
+ </div>
+ </fieldset>
+
+<fieldset>
+ <p class="form-help"><%= t 'user.account.home location' %></p>
+ <div id="homerow" <% unless @user.home_lat and @user.home_lon %>class="nohome"<%end%> >
+ <p class="message form-help deemphasize"><%= t 'user.account.no home location' %></p>
+ <div class="location">
+ <label><%= t 'user.account.latitude' %></label>
+ <%= f.text_field :home_lat, :id => "home_lat" %>
+ <label><%= t 'user.account.longitude' %></label>
+ <%= f.text_field :home_lon, :id => "home_lon" %>
+ </div>
+ </div>
+
+ <div class="form-row">
+ <p><%= t 'user.account.update home location on click' %> <input type="checkbox" value="1" <% unless @user.home_lat and @user.home_lon %> checked="checked" <% end %> id="updatehome" /> </p>
+ <% content_for :head do %>
+ <%= javascript_include_tag "user" %>
+ <% end %>
+ <%= content_tag "div", "", :id => "map", :class => "content_map settings_map set_location" %>
+ </div>
+</fieldset>
+
+ <%= submit_tag t('user.account.save changes button') %>
+<% end %>