This repository has been archived by the owner on May 10, 2019. It is now read-only.
/
add_email.ejs
53 lines (42 loc) · 2.14 KB
/
add_email.ejs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<strong><%= gettext('Sign in using') %></strong>
<div id="addEmail" class="cf form_section">
<ul class="inputs">
<li>
<label for="newEmail" class="serif"><%= gettext('New email address') %></label>
<input id="newEmail" name="newEmail" type="email" class="sans" autocapitalize="off" autocorrect="off" maxlength="254" <% if (typeof email !== "undefined") { %> value="<%= email %>" <% } %>/>
<div id="email_format" class="tooltip" for="newEmail">
<%= gettext('This field must be an email address.') %>
</div>
<div id="email_required" class="tooltip" for="newEmail">
<%= gettext('The email field is required.') %>
</div>
<div id="could_not_add" class="tooltip" for="newEmail">
<%= gettext('We just sent an email to that address! If you really want to send another, wait a minute or two and try again.') %>
</div>
<div id="already_own_address" class="tooltip" for="newEmail">
<%= gettext('That address is already added to your account!') %>
</div>
</li>
</ul>
<div class="submit cf">
<% if (privacy_url && tos_url) { %>
<p class="tospp">
<%= format(
gettext('By clicking %s, you confirm that you accept this site\'s <a %s>Terms of Use</a> and <a %s>Privacy Policy</a>.'),
[ gettext('add'),
format(' href="%s" target="_new"', [tos_url]),
format(' href="%s" target="_new"', [privacy_url])
]) %>
</p>
<p>
<% } %>
<button id="addNewEmail"><%= gettext('add') %></button>
<a href="#" id="cancel" class="action"><%= gettext('cancel') %></a>
<% if (privacy_url && tos_url) { %>
</p>
<% } %>
</div>
</div>