mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-20 13:19:24 +00:00
Finish moving the eve_api functions out to the eve_api app
This commit is contained in:
19
templates/eve_api/add.html
Normal file
19
templates/eve_api/add.html
Normal file
@@ -0,0 +1,19 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Add EVE API Key{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<p>Please fill in your API key as provided on the <a
|
||||
href="http://eve-online.com/api">EVE Online API
|
||||
page</a> and a optional description.</p>
|
||||
|
||||
<form action="{% url eve_api.views.eveapi_add %}" method="post">
|
||||
<table>
|
||||
{{ form.as_table }}
|
||||
</table>
|
||||
<br />
|
||||
{% csrf_token %}
|
||||
<input type="submit" value="Add Key" />
|
||||
</form>
|
||||
|
||||
{% endblock %}
|
||||
19
templates/eve_api/log.html
Normal file
19
templates/eve_api/log.html
Normal file
@@ -0,0 +1,19 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}EVE API Access Logs{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<h1>Access Logs for API Key {{ userid }}</h1>
|
||||
|
||||
<table>
|
||||
<tr><th>Service ID</th><th>Date / Time</th><th>API</th></tr>
|
||||
{% for log in logs %}
|
||||
<tr><td>{{ log.service }}</td>
|
||||
<td>{{ log.time_access }}</td>
|
||||
<td>{{ log.document }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user