regluit/frontend/templates/registration/registration_base.html

50 lines
1.3 KiB
HTML
Raw Normal View History

{% extends "base.html" %}
{% block extra_js %}
<script type="text/javascript" src="/static/js/jquery.cookie.js"></script>
<script type="text/javascript">
var $j = jQuery.noConflict();
function getQueryVariable(variable) {
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i = 0; i < vars.length; i++) {
var pair = vars[i].split("=");
if (pair[0] == variable) {
return pair[1];
}
}
return null;
}
$j(document).ready(function() {
var next = getQueryVariable('next');
var saved_next = $j.cookie('next');
if(next!=null) {
next = next.replace(/[\x22\x27\x3c\x3e]/g,'');
$j.cookie('next', next, {path: '/'});
} else if(saved_next!=null){
var do_next = $j('#link-to-next');
if (do_next.length) window.location.replace(saved_next);
}
});
</script>
{% endblock %}
{% block extra_head %}
<link href="/static/css/documentation.css" rel="stylesheet" type="text/css" />
{% block extra_extra_head %}
<link type="text/css" rel="stylesheet" href="/static/css/registration.css" />
{% endblock %}
{% endblock %}
{% block content %}
<div id="registration">
<div id="login_centerer">
<div id="login">
{% block doccontent %}
{% endblock %}
</div>
</div>
</div>
<div class="spacer"></div>
{% endblock %}