Added Primary Character field

This commit is contained in:
2011-06-10 01:12:02 +01:00
parent 373ebc5b68
commit 4a0f40b0b8
7 changed files with 244 additions and 3 deletions

View File

@@ -0,0 +1,19 @@
{% extends "base.html" %}
{% block title %}Change your Primay Character{% endblock %}
{% block content %}
<h1>Change Your Primary Character</h1>
<p>Your primary character is used across auth services to show as your display name and corporation. Please set this to which character you consider your "main".</p>
<form action="" method="post">
<table>
{{ form.as_table }}
</table>
<br />
{% csrf_token %}
<input type="submit" value="Change" />
</form>
{% endblock %}

View File

@@ -44,12 +44,14 @@ function refresh_apikey(key) {
<p>
<b>Username:</b> {{ user.username }}<br/>
<b>Email:</b> {{ user.email }}<br/>
<b>Primary Character:</b> {{ user.get_profile.primary_character }}<br/>
<b>Groups:</b> {{ user.groups.all|join:", " }}<br/>
</p>
<p>
<a href="{% url sso.views.refresh_access %}" class="button">Update Access</a>
<a href="{% url django.contrib.auth.views.password_change %}" class="button">Change Your Password</a>
<a href="{% url sso.views.email_change %}" class="button">Change Your E-mail</a>
<a href="{% url django.contrib.auth.views.password_change %}" class="button">Change Password</a>
<a href="{% url sso.views.email_change %}" class="button">Change E-mail</a>
<a href="{% url sso.views.primarychar_change %}" class="button">Change Primary Character</a>
</p>
<br/>