%
# Copyright (C) 2011 - present Instructure, Inc.
#
# This file is part of Canvas.
#
# Canvas 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, version 3 of the License.
#
# Canvas 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
<%= f.blabel :name, :en => "Full Name" %> | id="name"<% end %>
class="full_name <%= editable_name ? 'display_data' : 'edit_or_show_data' %>"><%=h @user.name %>
<%= f.text_field :name, :class => "edit_data", :maxlength => 255, :size => 30, "aria-describedby" => "hints_name" if editable_name %>
<%= t('hints.name', "This name will be used for grading.") %> |
---|---|
<%= f.blabel :short_name, :en => "Display Name" %> | id="short_name"<% end %>
class="short_name <%= editable_name ? 'display_data' : 'edit_or_show_data' %>"><%=h @user.short_name %>
<%= f.text_field :short_name, :class => "edit_data", :maxlength => 255, :size => 30, "aria-describedby" => "hints_short_name" if editable_name %>
<%= t('hints.short_name', "People will see this name in discussions, messages and comments.") %> |
<%= f.blabel :sortable_name, :en => "Sortable Name" %> | id="sortable_name"<% end %>
class="sortable_name <%= editable_name ? 'display_data' : 'edit_or_show_data' %>"><%=h @user.sortable_name %>
<%= f.text_field :sortable_name, :class => "edit_data", :maxlength => 255, :size => 30, "aria-describedby" => "hints_sortable_name" if editable_name %>
<%= t('hints.sortable_name', "This name appears in sorted lists.") %> |
<%= f.blabel :pronouns, :en => "Pronouns" %> |
<%= @user.pronouns || t("None") %>
<% if @domain_root_account.can_change_pronouns? %>
<%= f.select(
:pronouns,
options_for_select(([[t("None"), '']] + @domain_root_account.pronouns + [@user.pronouns]).compact.uniq, @user.pronouns))
%>
<% end %>
<%= t("This pronoun will appear after your name when enabled") %> |
<%=h @default_email_channel.path %> | |
<%= f.blabel :locale, :en => "Language" %> |
<% no_language = t("System Default (%{language})", :language => available_locales[infer_locale(:root_account => @domain_root_account, :accept_language => request.headers['Accept-Language'])]) %>
<%= @user.locale ? available_locales[@user.locale] : no_language %>
<%= f.select :locale,
[[no_language, nil]] + available_locales.invert.sort_by { |desc, _| Canvas::ICU.collation_key(desc) },
{:selected => @user.locale}, {:class => 'locale', "aria-describedby" => "hints_language"} %>
<%= render :partial => 'shared/locale_warning' %>
<%= t('hints.language', "This will override any browser or account settings.") %> |
<%= f.blabel :time_zone, :en => "Time Zone" %> | <% if name = @user.time_zone.try(:name) %> <%= I18n.send(:translate, I18nTimeZone[name].keyify, name.dup) %> <% else %> <%= t(:none, "None") %> <% end %> <%= f.time_zone_select :time_zone, I18nTimeZone.us_zones, :model => I18nTimeZone, :default => (@domain_root_account.try(:default_time_zone) || "Mountain Time (US & Canada)") %> |
|
<% end %> <% unless (@domain_root_account && @domain_root_account.service_enabled?(:none)) %>
<%= t(:web_services, <<-TEXT) Canvas can make your life a lot easier by tying itself in with the web tools you already use. Click any of the services in "Other Services" to see what we mean. TEXT %>
/>
class="services-cell"
<% else %>
style="vertical-align: top; width: 50%; padding-<%= direction('right') %>: 20px;"
<% end %>
>
<%= t('headers.registered_services', "Registered Services") %>
|
class="services-cell"
<% else %>
style="vertical-align: top; width: 50%; padding-<%= direction('left') %>: 20px;"
<% end %>
>
<%= t('headers.other_services', "Other Services") %>
<%= before_label(:other_services, "Click any service below to register") %>
<% services = @user.user_services.map{|s| s.service} %>
|
<%= t('headers.application_abbrev', "App") %> | <%= t('headers.purpose', "Purpose") %> | <%= t('headers.dates', "Dates") %> |
---|
<%= t <<-TEXT, :email => @current_user.email, :wrapper => {'*' => '\1'} Before you can edit your profile, you need to verify your email address (%{email}) by clicking the link in the email we sent you. If you don't see it, *click to re-send the email*, and make sure to check your spam box. TEXT %>
<% end %>