<% #-- # Copyright (C) 2012 Gitorious AS # Copyright (C) 2009 Tor Arne Vestbø # Copyright (C) 2009 Johan Sørensen # Copyright (C) 2009 Marius Mathiesen # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . #++ %> <%= breadcrumbs_from(Breadcrumb::UserEdit.new(@user)) -%>

<%= t("views.users.edit_title") %>

<%= error_messages(@user) -%> <%= form_for @user, :url => user_path, :html => {:multipart => true} do |f| -%>
  • <%= f.label :fullname, t("views.users.realname") -%>
    <%= f.text_field :fullname -%>
  • <%= f.label :email, t(:email, :scope => 'views.users') -%>
    <%= f.text_field :email -%>
  • <%= f.label :public_email, t(:public_email, :scope => 'activerecord.attributes.user') -%>
    <%= f.check_box :public_email -%> (The email will be encoded to prevent scraping)
  • <%= f.label :url, t("views.users.url") -%>
    <%= f.text_field :url -%>
  • <%= f.label :url, t("views.users.openid") -%>
    <%= f.text_field :identity_url -%>
  • <%= f.label :avatar, t('views.users.avatar') %>
    <%= avatar(@user, :version => :thumb, :size => '24') %> <%- if @user.avatar? -%> <%= button_to_function("Delete current profile image", "if (confirm('Are you sure you want to delete your profile image?')) $('#delete_avatar').submit()") %> <%- end -%> If you do not add an image, Gitorious will try to use your gravatar
  • <%= f.file_field :avatar %>
  • <%= f.label :wants_email_notifications, t("views.users.wants_email_notifications") %>
    <%= f.check_box :wants_email_notifications %> <%= t("views.users.describe_email_notifications") -%>
  • <%= f.label :default_favorite_notifications -%>
    <%= f.check_box :default_favorite_notifications -%> <%= t("views.users.describe_default_favorite_notifications", :url => favorites_path) -%>
  • <%= f.submit t("views.common.save") -%>
    <% end -%> <%= form_for(@user, :url => user_avatar_path, :html => {:id => "delete_avatar", :method => :delete}) do |f| -%> <%- end -%>