427df6d by Anon Ray at 2014-05-11 1
{% extends "layout.html" %}
2
{% block body %}
3
4
{% if authorized_clients | length > 0 %}
5
<h4> Your authorized apps </h4>
6
7
<p class="text-muted">
8
  You have given access to these apps to post sweets
9
  to the swtstore on your behalf. You can revoke access to specific apps.
10
</p>
11
12
<form role="form" method="POST" action="{{ url_for('user.authorizedApps') }}">
13
  <div class="form-group">
14
    <ul>
15
      {% for client in authorized_clients %}
16
        <li class="authorized_apps">
17
          <p class="form-control-static">
18
            <b>{{ client.name }}</b>: {{ client.description }}
19
            <button type="submit" name="revoke-id" value="{{ client.client_id }}"
20
              class="btn btn-sm btn-primary pull-right">Revoke Access</button>
21
          </p>
22
        </li>
23
      {% endfor %}
24
    </ul>
25
  </div>
26
</form>
27
{% else %}
28
<i> You have not authorized any apps to access swtstore yet.</i>
29
{% endif %}
30
31
{% endblock %}
32
33
{% block scripts %}
34
35
<script>
36
</script>
37
38
{% endblock %}