Added the registration procedure.
This commit is contained in:
27
src/IDF/templates/register/confirmation-email.txt
Normal file
27
src/IDF/templates/register/confirmation-email.txt
Normal file
@@ -0,0 +1,27 @@
|
||||
{blocktrans}Hello,
|
||||
|
||||
You have requested the creation of an account to
|
||||
participate in the life of a software project.
|
||||
|
||||
To confirm the account please follow this link:
|
||||
|
||||
{$url|safe}
|
||||
|
||||
Alternatively, go on this page:
|
||||
|
||||
{$urlik|safe}
|
||||
|
||||
and provide the following confirmation key:
|
||||
|
||||
{$key}
|
||||
|
||||
If you are not interested any longer in getting
|
||||
part in the life of the software project or if
|
||||
you can't remember having requested the creation
|
||||
of an accout, please excuse us and simply ignore
|
||||
this email.
|
||||
|
||||
Yours faithfully,
|
||||
The development team.
|
||||
{/blocktrans}
|
||||
|
65
src/IDF/templates/register/confirmation.html
Normal file
65
src/IDF/templates/register/confirmation.html
Normal file
@@ -0,0 +1,65 @@
|
||||
{extends "base-simple.html"}
|
||||
{block body}
|
||||
{if $form.errors}
|
||||
<div class="px-message-error">
|
||||
<p>{trans 'Oups, please check the form for errors.'}</p>
|
||||
{if $form.get_top_errors}
|
||||
{$form.render_top_errors|unsafe}
|
||||
{/if}
|
||||
{if $form.f.key.errors}{$form.f.key.fieldErrors}{/if}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<form method="post" action=".">
|
||||
<table class="form" summary="">
|
||||
<tr>
|
||||
<th><strong>{trans 'Login:'}</strong></th>
|
||||
<td>{$new_user.login}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><strong>{trans 'Email:'}</strong></th>
|
||||
<td>{$new_user.email}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{$form.f.first_name.labelTag}:</th>
|
||||
<td>{if $form.f.first_name.errors}{$form.f.first_name.fieldErrors}{/if}
|
||||
{$form.f.first_name|unsafe}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><strong>{$form.f.last_name.labelTag}:</strong></th>
|
||||
<td>{if $form.f.last_name.errors}{$form.f.last_name.fieldErrors}{/if}
|
||||
{$form.f.last_name|unsafe}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><strong>{$form.f.password.labelTag}:</strong></th>
|
||||
<td>{if $form.f.password.errors}{$form.f.password.fieldErrors}{/if}
|
||||
{$form.f.password|unsafe}<br />
|
||||
<span class="helptext">{$form.f.password.help_text}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><strong>{$form.f.password2.labelTag}:</strong></th>
|
||||
<td>{if $form.f.password2.errors}{$form.f.password2.fieldErrors}{/if}
|
||||
{$form.f.password2|unsafe}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td><input type="submit" value="{trans 'Enable Your Account'}" name="submit" /> | <a href="{url 'IDF_Views::index'}">{trans 'Cancel'}</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>{$form.f.key|unsafe}
|
||||
</form>
|
||||
{/block}
|
||||
{block context}
|
||||
<div class="issue-submit-info">
|
||||
<p>{trans 'This is the last step, but just <strong>be sure to have the cookies enabled</strong> to log in afterwards.'}</p>
|
||||
</div>
|
||||
{/block}
|
||||
{block javascript}<script type="text/javascript">
|
||||
document.getElementById('id_first_name').focus()
|
||||
</script>
|
||||
{include 'issues/js-autocomplete.html'}{/block}
|
||||
|
@@ -30,7 +30,7 @@
|
||||
<td>
|
||||
{if $form.f.terms.errors}{$form.f.terms.fieldErrors}{/if}
|
||||
{$form.f.terms|unsafe} <strong>{$form.f.terms.labelTag}</strong><br />
|
||||
<span class="helptext">{blocktrans}Read the <a href="#">terms and conditions</a> (basically <em>"Please be nice, we respect you.")</em>{/blocktrans}</span>
|
||||
<span class="helptext">{blocktrans}Read the <a href="#">terms and conditions</a> – basically <em>"Please be nice, we respect you"</em>.{/blocktrans}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -49,9 +49,9 @@
|
||||
{aurl 'url', 'IDF_Views::faq'}
|
||||
{blocktrans}With your account, you will able to participate in the life of all the projects hosted here. Participating in a software project must be fun, so if you have troubles, you can <a href="{$url}">let us know about your issues at anytime</a>!{/blocktrans}
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
{/block}
|
||||
{block javascript}<script type="text/javascript">
|
||||
document.getElementById('id_login').focus()
|
||||
</script>
|
||||
{/block}
|
||||
{block javascript}{include 'issues/js-autocomplete.html'}{/block}
|
||||
{include 'issues/js-autocomplete.html'}{/block}
|
||||
|
40
src/IDF/templates/register/inputkey.html
Normal file
40
src/IDF/templates/register/inputkey.html
Normal file
@@ -0,0 +1,40 @@
|
||||
{extends "base-simple.html"}
|
||||
{block body}
|
||||
{if $form.errors}
|
||||
<div class="px-message-error">
|
||||
<p>{trans 'Oups, we found an error in the form.'}</p>
|
||||
{if $form.get_top_errors}
|
||||
{$form.render_top_errors|unsafe}
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<form method="post" action=".">
|
||||
<table class="form" summary="">
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td><strong>{$form.f.key.labelTag}:</strong><br />
|
||||
{if $form.f.key.errors}{$form.f.key.fieldErrors}{/if}
|
||||
{$form.f.key|unsafe}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td><input type="submit" value="{trans 'Confirm Your Account'}" name="submit" /> | <a href="{url 'IDF_Views::index'}">{trans 'Cancel'}</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
{/block}
|
||||
{block context}
|
||||
<div class="issue-submit-info">
|
||||
<h2>{trans 'Instructions'}</h2>
|
||||
<p>{trans 'Use your email software to read your emails and open your confirmation email. Either click directly on the confirmation link or copy/paste the confirmation key in the box and submit the form.'}</p>
|
||||
<p>{trans 'Just after providing the confirmation key, you will be able to set your password and start using this website fully.'}</p>
|
||||
</div>
|
||||
{/block}
|
||||
{block javascript}<script type="text/javascript">
|
||||
document.getElementById('id_key').focus()
|
||||
</script>
|
||||
{include 'issues/js-autocomplete.html'}{/block}
|
||||
|
Reference in New Issue
Block a user