Indefero

Indefero Commit Details


Date:2008-12-07 07:56:06 (16 years 15 days ago)
Author:Loic d'Anterroches
Branch:dev, develop, feature-issue_links, feature.better-home, feature.content-md5, feature.diff-whitespace, feature.download-md5, feature.issue-links, feature.issue-of-others, feature.issue-summary, feature.search-filter, feature.webrepos, feature.wiki-default-page, master, release-1.1, release-1.2, release-1.3
Commit:5886aef3ade570f733ba4f870e8d19dfd0dbd651
Parents: ef3adafa024aa1cce5056ba643edbc93643d64dd
Message:Added the terms and conditions.

These are simple terms, just to allow people to adapt them later.
Changes:

File differences

src/IDF/Views.php
9595
9696
9797
98
99
100
98101
99102
100
103
104
101105
102106
103107
$init = (isset($request->GET['login'])) ? array('initial' => array('login' => $request->GET['login'])) : array();
$form = new IDF_Form_Register(null, $init);
}
$context = new Pluf_Template_Context(array());
$tmpl = new Pluf_Template('idf/terms.html');
$terms = Pluf_Template::markSafe($tmpl->render($context));
return Pluf_Shortcuts_RenderToResponse('idf/register/index.html',
array('page_title' => $title,
'form' => $form),
'form' => $form,
'terms' => $terms),
$request);
}
src/IDF/templates/idf/register/index.html
2525
2626
2727
28
29
30
31
2832
2933
3034
3135
3236
33
37
3438
3539
3640
......
5155
5256
5357
54
58
59
60
61
62
63
64
65
66
5567
5668
5769
<span class="helptext">{$form.f.email.help_text}</span>
</td>
</tr>
<tr id="theterms">
<td>&nbsp;</td>
<td><div class="theterms">{$terms}</div></td>
</tr>
<tr>
<td>&nbsp;</td>
<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> &ndash; basically <em>"Please be nice, we respect you"</em>.{/blocktrans}</span>
<span class="helptext">{blocktrans}Read the <a id="showterms" href="#theterms">terms and conditions</a> &ndash; basically <em>"Please be nice, we respect you"</em>.{/blocktrans}</span>
</td>
</tr>
<tr>
</div>
{/block}
{block javascript}<script type="text/javascript">
document.getElementById('id_login').focus()
document.getElementById('id_login').focus();
{literal}
$(document).ready(function() {
// Hide the key password by default.
$("#theterms").hide();
$("#showterms").click(function(){
$("#theterms").show();
});
});{/literal}
</script>
{/block}
src/IDF/templates/idf/terms.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<h3 class="top">Terms and Conditions</h3>
<p><strong>Legal stuff</strong></p>
<ul>
<li>Respect the others.</li>
<li>You are legally responsible of what you write.</li>
<li>Do not write things you will be ashmed of in 5 years.</li>
<li>We may send you an email some times to times with respect to the use of this service.</li>
<li>We are not going to spam you in any ways.</li>
</ul>
<p><strong>Technical stuff</strong></p>
<ul>
<li>You will need to enable cookies in your browser.</li>
<li>The interface will look nicer with Javascript enabled.</li>
<li>We will send you an email to validate your account.</li>
</ul>
<p><strong>Very important stuff</strong></p>
<p>You are <strong>welcome!</strong></p>
www/media/idf/css/style.css
1919
2020
2121
22
22
2323
2424
2525
......
120120
121121
122122
123
124
125
126
127
128
123129
124130
125131
#
# ***** END LICENSE BLOCK ***** */
h2.top {
.top {
margin-top: 0;
}
width: 90%;
}
div.theterms {
border: 1px solid rgb(229, 225, 169);
background-color: #fffde3;
padding: 1em 1em 0 1em;
}
/**
* Recent issues

Archive Download the corresponding diff file

Page rendered in 0.08593s using 13 queries.