зеркало из https://github.com/mozilla/gecko-dev.git
Login component output files for the HTTP protocol
This commit is contained in:
Родитель
4747c98947
Коммит
5dae3f22b8
|
@ -0,0 +1,19 @@
|
|||
COSES
|
||||
1
|
||||
|
||||
<text xml:space="default" xmlns="http://bugzilla.mozilla.org/coses">
|
||||
|
||||
<set variable="title" value="Access Denied">
|
||||
<set variable="response" value="403 Access Denied">
|
||||
<include href="template.html.header"/>
|
||||
</set></set>
|
||||
|
||||
<text><![CDATA[
|
||||
<p>
|
||||
You do not have sufficient privileges. If you think you should,
|
||||
please contact the administrator.
|
||||
</p>
|
||||
]]></text>
|
||||
|
||||
<include href="template.html.footer"/>
|
||||
</text>
|
|
@ -0,0 +1,17 @@
|
|||
TemplateToolkit
|
||||
1
|
||||
|
||||
[% INCLUDE template.html.header title = 'Details Sent' -%]
|
||||
|
||||
<p>Your password has been sent.</p>
|
||||
|
||||
<form >
|
||||
<p>
|
||||
<input type="submit" value="Continue...">
|
||||
[%- FOREACH key = pendingCommands.keys -%] [%- FOREACH value = pendingCommands.$key %]
|
||||
<input type="hidden" name="[% key %]" value="[% value %]">
|
||||
[%- END -%] [%- END %]
|
||||
</p>
|
||||
</form>
|
||||
|
||||
[% INCLUDE template.html.footer %]
|
|
@ -0,0 +1,23 @@
|
|||
TemplateToolkit
|
||||
1
|
||||
|
||||
[% INCLUDE template.html.header
|
||||
title = 'Login'
|
||||
response = '401 Authentication Required'
|
||||
headers = "WWW-Authenticate: Basic realm=\"$app.name\""
|
||||
-%]
|
||||
|
||||
<form action="" method="GET"> <!-- XXX POST -->
|
||||
|
||||
[% IF tried == 1 -%] <p> The password or username you used is incorrect. </p> [%- END %]
|
||||
|
||||
<p>If you would like to create a new account, or to have your
|
||||
password sent to you, fill in your e-mail address or other means of
|
||||
contact:</p>
|
||||
|
||||
<p>
|
||||
[%- INCLUDE template.html.login.form buttonLabel = 'Get Password' %]
|
||||
</p>
|
||||
</form>
|
||||
|
||||
[% INCLUDE template.html.footer %]
|
|
@ -0,0 +1,15 @@
|
|||
TemplateToolkit
|
||||
1
|
||||
|
||||
[% INCLUDE template.html.header title = 'Create Account' -%]
|
||||
|
||||
<form action="" method="GET"> <!-- XXX POST -->
|
||||
<p>To create a new account fill in your e-mail address or other
|
||||
means of contact in the form below and hit the submit button:</p>
|
||||
|
||||
<p>
|
||||
[%- INCLUDE template.html.login.form buttonLabel = 'Submit' %]
|
||||
</p>
|
||||
</form>
|
||||
|
||||
[% INCLUDE template.html.footer %]
|
|
@ -0,0 +1,12 @@
|
|||
TemplateToolkit
|
||||
1
|
||||
|
||||
<input type="hidden" name="command" value="loginSendPassword">
|
||||
<select name="protocol">
|
||||
[%- FOREACH protocol = contacts.sort %]
|
||||
<option name="[% protocol %]">[% protocol %]</option>
|
||||
[%- END %]
|
||||
</select>
|
||||
<input type="text" name="address" value="">
|
||||
<input type="hidden" name="loginPendingCommands" value="[% pendingCommands %]">
|
||||
<input type="submit" value="[% buttonLabel %]">
|
Загрузка…
Ссылка в новой задаче