summaryrefslogtreecommitdiffstats
path: root/extensions/BMO/template/en/default/account/create.html.tmpl
blob: d293031049f95b936b82c6ada9e4bf63ed584221 (plain)
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
[%# The contents of this file are subject to the Mozilla Public
  # License Version 1.1 (the "License"); you may not use this file
  # except in compliance with the License. You may obtain a copy of
  # the License at http://www.mozilla.org/MPL/
  #
  # Software distributed under the License is distributed on an "AS
  # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  # implied. See the License for the specific language governing
  # rights and limitations under the License.
  #
  # The Original Code is the Bugzilla Bug Tracking System.
  #
  # The Initial Developer of the Original Code is Netscape Communications
  # Corporation. Portions created by Netscape are
  # Copyright (C) 1998 Netscape Communications Corporation. All
  # Rights Reserved.
  #
  # Contributor(s): Gervase Markham <gerv@gerv.net>
  #                 Byron Jones <glob@mozilla.com>
  #                 Emma Humphries <emma@mozilla.com>
  #%]

[%# INTERFACE
  # none
  #
  # Param("maintainer") is used to display the maintainer's email.
  # Param("emailsuffix") is used to pre-fill the email field.
  #%]

[% PROCESS global/variables.none.tmpl %]

[% title = BLOCK %]
  Create a new [% terms.Bugzilla %] account
[% END %]

[% PROCESS global/header.html.tmpl
   title = title
   style_urls = [ 'extensions/BMO/web/styles/create_account.css' ]
%]

<script>
function onSubmit() {
  var email = document.getElementById('login').value;
  var agreed = document.getElementById('etiquette').checked;
  if (email == '') {
    alert('You must enter your email address.');
    return false;
  }
  var isValid =
    email.match(/@/)
    && email.match(/@.+\./)
    && !email.match(/\.$/)
    && !email.match(/[\\()&<>,'"\[\]]/)
  ;
  if (!isValid) {
    alert(
      "The e-mail address doesn't pass our syntax checking for a legal " +
      "email address.\n\nA legal address must contain exactly one '@', and " +
      "at least one '.' after the @.\n\nIt must also not contain any of " +
      "these special characters: \ ( ) & < > , ; : \" [ ], or any whitespace."
    );
    return false;
  }
  if (!agreed) {
    alert(
      "You must agree to follow [% terms.Bugzilla %] Etiquette, " +
      "and the Mozilla Community Participation Guidelines."
    );
    return false;
  }
  return true;
}
</script>

<table border="0" id="create-account">
<tr>

<td width="50%" id="create-account-left" valign="top">

  <h2 class="column-header">I need help using a Mozilla Product</h2>

  <table border="0" id="product-list">
  [% INCLUDE product
      icon = "firefox"
      name = "Firefox Support"
      url = "https://support.mozilla.org/"
      desc = "Support for the Firefox web browser."
  %]
  [% INCLUDE product
      icon = "thunderbird"
      name = "Thunderbird Support"
      url = "https://support.mozilla.org/products/thunderbird"
      desc = "Support for Thunderbird email client."
  %]
  [% INCLUDE product
      icon = "input"
      name = "Feedback"
      url = "https://input.mozilla.org/feedback"
      desc = "Report issues with a web site that you use, or provide quick feedback for Firefox."
  %]
  </table>

</td>

<td width="50%" id="create-account-right" valign="top">

  <h2 class="column-header">I want to help</h2>

  <div id="right-blurb">
    <p>
      Great!  There are a few things to know and do:
    </p>
    <ol>
    <li>
      Please read our
      <a href="https://developer.mozilla.org/docs/Mozilla/QA/Bug_writing_guidelines" target="_blank">[% terms.Bug %] Writing Guidelines</a>.
    </li>
    <li>
      [% terms.Bugzilla %] is a public place. Your comments and other activities
      on [% terms.bugs %] will generally be publicly visible, and your email address will be
      accessible through public APIs and will be visible to all logged-in users
      of [% terms.Bugzilla %]. Some people use an
      <a href="https://www.lifewire.com/top-free-email-services-1171481"
      target="_blank">alternative email address</a> for this reason.
      See Mozilla's <a href="https://www.mozilla.org/privacy/websites/"
      target="_blank">Websites, Communications & Cookies Privacy Notice</a> for
      more information on our privacy policies.
    </li>
    <li>
      When using [% terms.Bugzilla %] to submit patches, comments, code, and any other content,
      you agree to our policies on open source licensing and content submission. See Mozilla’s
      <a href="https://www.mozilla.org/about/legal/terms/mozilla/" target="_blank">Websites
      and Communications Terms of Use</a> for more information.
    </li>
    <li>
      You understand that your conduct on this site is subject to both <a href="page.cgi?id=etiquette.html">[% terms.Bugzilla %] Etiquette</a>,
      and the <a href="https://www.mozilla.org/about/governance/policies/participation/">Mozilla Community Participation Guidelines</a>.
      By creating an account, you agree to abide by them.
    </li>
    <li>
      Please give us an email address you want to use. Once we confirm that it works,
      you'll be asked to set a password and then you can start filing [% terms.bugs %] and helping fix them.
    </li>
    </ol>
  </div>

  <h2 class="column-header">Create an account</h2>

  <form method="post" action="createaccount.cgi" onsubmit="return onSubmit()">
    <table id="create-account-form">
    <tr>
    <td class="label">Email Address:</td>
    <td>
      <input size="35" id="login" name="login" placeholder="you@example.com">[% Param('emailsuffix') FILTER html %]
    </td>
    </tr>
    <tr>
    <td colspan="2">
      I have read <a href="page.cgi?id=etiquette.html">[% terms.Bugzilla %] Etiquette</a>
      and the <a href="https://www.mozilla.org/about/governance/policies/participation/">Mozilla Community Participation Guidelines</a>
      and agree to abide by them.
      <input type="checkbox" id="etiquette" value="agreed">
    </td>
    </tr>
    <tr>
    <td>
      <input type="hidden" id="token" name="token" value="[% issue_hash_token(['create_account']) FILTER html %]">
      <input type="submit" value="Create Account">
    </td>
    </tr>
    </table>
  </form>

  [% Hook.process('additional_methods') %]

</td>

</tr>
</table>

<p id="bmo-admin">
  If you think there's something wrong with [% terms.Bugzilla %], you can
  <a href="mailto:bugzilla-admin@mozilla.org">send an email to the admins</a>, but
  remember, they can't file [% terms.bugs %] for you, or solve tech support problems.
</p>

[% PROCESS global/footer.html.tmpl %]

[% BLOCK product %]
  <tr>
  <td valign="top">
    <a href="[% url FILTER none %]"><img
    src="extensions/BMO/web/producticons/[% icon FILTER uri %].png"
    border="0" width="64" height="64"></a>
  </td>
  <td valign="top">
    <h2><a href="[% url FILTER none %]">[% name FILTER html %]</a></h2>
    <div>[% desc FILTER html %]</div>
  </td>
  </tr>
[% END %]