mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-23 14:49:31 +00:00
Views now working, basic construction complete
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>dredd.it - {% block title %}{% endblock %}</title>
|
||||
<style type="text/css">
|
||||
BODY, TH, TD, P {
|
||||
font-size: 0.9em;
|
||||
font-family: Verdana;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
{% block content %}{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Your Profile{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<h1>Your Profile</h1>
|
||||
|
||||
<ul>
|
||||
<li><b>Username:</b> {{ user.username }}</li>
|
||||
<li><b>Corp Access?</b> {{ profile.corp_user }}</li>
|
||||
</ul>
|
||||
|
||||
<h2>Service Accounts</h2>
|
||||
{% if srvaccounts %}
|
||||
<table border=1>
|
||||
<tr><th>Service</th><th>Username</th><th>Password</th><th>Active</th><th>Actions</th></tr>
|
||||
{% for acc in srvaccounts %}
|
||||
<tr><td>{{ acc.service }}</td>
|
||||
<td>{{ acc.username }}</td>
|
||||
<td>******</td>
|
||||
<td>{{ acc.active }}</td>
|
||||
<td><a href="/profile/del/service/{{ acc.id }}/">Delete</a></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% endif %}
|
||||
|
||||
{% if profile.corp_user %}
|
||||
<a href="/profile/add/service">Add Service</a>
|
||||
{% endif %}
|
||||
|
||||
<br/>
|
||||
|
||||
<h2>Eve API Keys</h2>
|
||||
{% if eveaccounts %}
|
||||
<table border=1>
|
||||
<tr><th>User ID</th><th>API Key</th><th>Description</th><th>Active</th><th>Actions</th></tr>
|
||||
{% for acc in eveaccounts %}
|
||||
<tr><td>{{ acc.api_user_id }}</td>
|
||||
<td>{{ acc.api_key }}</td>
|
||||
<td>{{ acc.description }}</td>
|
||||
<td>{{ acc.api_status }}</td>
|
||||
<td><a href="/profile/del/eveapi/{{ acc.api_user_id }}/">Delete</a></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% endif %}
|
||||
|
||||
<a href="/profile/add/eveapi">Add a Eve API key</a>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
4
templates/sso/eveapi.html
Normal file
4
templates/sso/eveapi.html
Normal file
@@ -0,0 +1,4 @@
|
||||
<form action="/profile/add/eveapi" method="post">
|
||||
{{ form.as_p }}
|
||||
<input type="submit" value="Submit" />
|
||||
</form>
|
||||
4
templates/sso/serviceaccount.html
Normal file
4
templates/sso/serviceaccount.html
Normal file
@@ -0,0 +1,4 @@
|
||||
<form action="/profile/add/service" method="post">
|
||||
{{ form.as_p }}
|
||||
<input type="submit" value="Submit" />
|
||||
</form>
|
||||
Reference in New Issue
Block a user