-
Notifications
You must be signed in to change notification settings - Fork 29
/
application_overview.html
66 lines (56 loc) · 2.98 KB
/
application_overview.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{% extends "base.html" %}
{% block title %} | Applications{% endblock %}
{% block main %}
<div class="page-header">
<div class="container">
<h1>Applications</h1>
<ul class="nav nav-tabs header-nav">
<li role="presentation" class="active"><a href="{% url 'admin:app_overview' %}">Registered applications</a></li>
<li role="presentation"><a href="{% url 'admin:app_connected' %}">Connected applications</a></li>
</ul>
</div>
</div>
<div class="container">
{% include 'snippets/messages.html' %}
<div class="row">
<div class="col-md-4">
<div class="alert alert-info">
<h5><strong>Learn more about:</strong></h5>
<ul>
<li><a href="http://geokey.org.uk/help/getting-started-with-oauth.html">How to use OAuth to authenticate users with your application.</a></li>
<li><a href="http://geokey.org.uk/docs/">The GeoKey API.</a></li>
</ul>
</div>
</div>
<div class="col-md-8">
<h3 class="header">
Your registered applications
{% if apps %}<a href="{% url 'admin:app_register' %}" class="pull-right btn btn-sm btn-success"><span class="glyphicon glyphicon-plus"></span> Create new application</a>{% endif %}
</h3>
{% for app in apps %}
{% if forloop.first %}
<ul class="list-unstyled overview-list">
{% endif %}
<li>
<h4><a href="{% url 'admin:app_settings' app.id %}">{{app.name}}</a></h4>
{% if app.description %}<p>{{app.description}}</p>{% endif %}
<p class="meta">Client ID: <span class="lower-case">{{ app.client_id }}</span></p>
<p class="meta">Client secret: <span class="lower-case">{{ app.client_secret }}</span></p>
</li>
{% if forloop.last %}
</ul>
{% endif %}
{% empty %}
<div class="well empty-list">
<p class="lead">You haven't registered an application yet.</p>
<p>If you plan to develop an application using our API, developers need to register their application to obtain OAuth security tokens for the applications.</p>
<a href="{% url 'admin:app_register' %}" class="btn btn-success btn-lg">Register a new application</a>
</div>
{% endfor %}
</div>
</div>
</div>
{% endblock %}
{% block libraries %}
<script src="/static/js/admin.ui.forms.validate.js"></script>
{% endblock %}