<% # 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 . %> <% css_bundle :ways_to_contact %> <%# this needs to be reactified. badly. %>

<%= t('headers.ways_to_contact', "Ways to Contact") %>

<% @email_channels.each do |c| %> <%= "unconfirmed" if c.state == :unconfirmed %> pseudonym_<%= c.pseudonym &&c.pseudonym.id %>" id="channel_<%= c.id %>"> <% end %>
<% @other_channels.each do |c| %> pseudonym_<%= c.pseudonym_id %>" id="channel_<%= c.id %>"> <% end %>
<%= t('headers.other_contact', "Other Contacts") %> <%= t('headers.contact_type', "Type") %>
<%= c.path_description %> <%= c.path_type %> <% if c.bouncing? %> <% if c.bounce_count > 0 && (c.grants_right?(@current_user, :reset_bounce_count) || (@real_current_user && c.grants_right?(@real_current_user, :reset_bounce_count))) %> "> " title="<%= t("Reset this contact method's bounce count") %>"> <% end %> <% end %> <% if c.state == :unconfirmed && (@user.grants_right?(@current_user, :manage_user_details) || (@real_current_user && @user.grants_right?(@real_current_user, :manage_user_details))) %> <%= t("Confirm contact method") %> <% end %> <% unless c.id == c.user.otp_communication_channel_id %> " aria-hidden="true"><%= t("Remove contact method") %> <% end %>
" aria-label="<%= t("Add Contact Method") %>"><%= t('links.add_contact_method', "Contact Method") %>
<%= form_tag "", {:id => "confirm_communication_channel", :style => "display: none;", :class => "dialog", :role => "dialog"} do %>
<%= t(<<-TEXT, :sms_number => raw(' ')) To activate this communication channel, enter the four-character confirmation code sent to %{sms_number}. TEXT %>
<%= t("Code is case sensitive.")%>

" style="display: none;" class="register_channel_link"> 
<%= t('links.resend_confirmation', "Re-Send Confirmation") %>
<% end %>