mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-22 22:29:34 +00:00
Added Primary Character field
This commit is contained in:
19
app/sso/templates/sso/primarycharchange.html
Normal file
19
app/sso/templates/sso/primarycharchange.html
Normal 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 %}
|
||||
@@ -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/>
|
||||
|
||||
Reference in New Issue
Block a user