Fancify the registration screen
This commit is contained in:
@@ -17,7 +17,6 @@ from minecraft.forms import ProfileForm
|
||||
from minecraft.models import MinecraftProfile
|
||||
from django.conf import settings
|
||||
|
||||
@login_required
|
||||
def profile(request, username=None, mc_username=None):
|
||||
if username is None and mc_username is None:
|
||||
user = request.user
|
||||
@@ -83,7 +82,7 @@ def register(request):
|
||||
login(request, user)
|
||||
del request.session['profile-invite']
|
||||
return HttpResponseRedirect(reverse('welcome'))
|
||||
return render_to_response('local/register.html', {'userForm': userForm, 'profileForm': profileForm, 'invite':invite}, context_instance = RequestContext(request))
|
||||
return render_to_response('local/register.html', {'userForm': userForm, 'member_count': len(User.objects.all()), 'profileForm': profileForm, 'invite':invite}, context_instance = RequestContext(request))
|
||||
|
||||
@login_required
|
||||
def deleteInvite(request, code=None):
|
||||
|
@@ -462,3 +462,11 @@ fieldset {
|
||||
#donation-text a {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
#register-form {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#register-button {
|
||||
font-size: xx-large;
|
||||
}
|
||||
|
@@ -1,11 +1,44 @@
|
||||
{% extends "base_simple.html" %}
|
||||
{% block extrahead %}
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
$("#register-button").click(function() {
|
||||
$("#register-button").hide("blind");
|
||||
$("#register-form").show("blind");
|
||||
return false;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
{%block title%}Register an Account{%endblock%}
|
||||
|
||||
{% block sectiontitle %}Welcome!{%endblock%}
|
||||
|
||||
{%block content %}
|
||||
<p>Congratulations on recieving a caminus invite! You were invited here by {{invite.creator}}.</p>
|
||||
<p>To accept this invite, please register an account:</p>
|
||||
<p>Congratulations on recieving a caminus invite!</p>
|
||||
<p>Founded in 2010 in an Akron, Ohio basement, caminus is a minecraft
|
||||
community that has since grown to {{member_count}} players and a world that is the size of a
|
||||
small earth city. While we aim to play as vanilla as possible, we have a number of unique features:</p>
|
||||
<ul>
|
||||
<li>An active economy system</li>
|
||||
<li>A large and friendly community</li>
|
||||
<li>Attentive and helpful staff</li>
|
||||
<li>IRC channel</li>
|
||||
<li>Special events</li>
|
||||
<li>Reliable server infrastructure</li>
|
||||
<li>Forums</li>
|
||||
<li>Read site mail in-game</li>
|
||||
<li><a href="http://github.com/tdfischer/caminus">Open Source</a></li>
|
||||
<li>SSH and SQL access</li>
|
||||
<li>Regional chat</li>
|
||||
<li>Expansive server-wide transportation network</li>
|
||||
<li>Creative and survival on the same server</li>
|
||||
<li>Mumble voice chat</li>
|
||||
</ul>
|
||||
<p>You were invited here by <a href="{{invite.creator.get_absolute_url}}">{{invite.creator}}</a>.
|
||||
To accept this invite, please register an account:</p>
|
||||
<input type="button" id="register-button" value="Sounds good!"/>
|
||||
<div id="register-form">
|
||||
<form method="POST" action="{%url local.views.register %}">
|
||||
{% csrf_token %}
|
||||
<fieldset>
|
||||
@@ -14,5 +47,6 @@
|
||||
</fieldset>
|
||||
<input type="submit" value="Register!"/>
|
||||
</form>
|
||||
</div>
|
||||
{%endblock%}
|
||||
|
||||
|
Reference in New Issue
Block a user