+<% content_for :head do %>
+ <%= javascript_include_tag "user" %>
+<% end %>
+
<% content_for :heading do %>
- <h2><%= t 'user.account.my settings' %></h2>
+ <h1><%= t 'user.account.my settings' %></h1>
<ul class='secondary-actions clearfix'>
<li><%= link_to t('user.account.return to profile'), :controller => 'user', :action => 'view', :display_name => @user.display_name %></li>
<li><%= link_to t('user.view.oauth settings'), :controller => 'oauth_clients', :action => 'index' %></li>
<fieldset>
<div class="form-row">
- <label class="standard-label"><%= t 'user.account.openid.openid' %></label>
- <%= f.url_field :openid_url, {:id => "openid_url", :class => "openid_url"} %>
+ <label class="standard-label"><%= t 'user.account.external auth' %></label>
+ <%= f.select :auth_provider, Auth::PROVIDERS %>
+ <%= f.text_field :auth_uid %>
<span class="form-help deemphasize">(<a href="<%= t 'user.account.openid.link' %>" target="_new"><%= t 'user.account.openid.link text' %></a>)</span>
</diV>
</fieldset>
<fieldset class="form-divider">
<div class='form-row'>
<label class="standard-label"><%= t 'user.account.profile description' %></label>
- <%= richtext_area :user, :description %>
+ <%= richtext_area :user, :description, :cols => 80, :rows => 20 %>
</div>
<div class="form-row">
<input type="checkbox" name="updatehome" value="1" <% unless @user.home_lat and @user.home_lon %> checked="checked" <% end %> id="updatehome" />
<label class="standard-label" for="updatehome"><%= t 'user.account.update home location on click' %></label>
</div>
- <% content_for :head do %>
- <%= javascript_include_tag "user" %>
- <% end %>
<%= content_tag "div", "", :id => "map", :class => "content_map settings_map set_location" %>
</fieldset>