Views now working, basic construction complete

This commit is contained in:
2010-02-25 22:44:59 +00:00
parent 180b344c72
commit c0a5f75504
12 changed files with 278 additions and 9 deletions

View File

@@ -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>

View File

@@ -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 %}

View File

@@ -0,0 +1,4 @@
<form action="/profile/add/eveapi" method="post">
{{ form.as_p }}
<input type="submit" value="Submit" />
</form>

View File

@@ -0,0 +1,4 @@
<form action="/profile/add/service" method="post">
{{ form.as_p }}
<input type="submit" value="Submit" />
</form>