PageRenderTime 155ms CodeModel.GetById 147ms app.highlight 3ms RepoModel.GetById 2ms app.codeStats 0ms

/modules/mod_oauth/templates/oauth_authorize.tpl

https://code.google.com/p/zotonic/
Smarty Template | 35 lines | 25 code | 10 blank | 0 comment | 3 complexity | acce7adfc8573c95695bd2a199bfb6e5 MD5 | raw file
 1{% extends "base.tpl" %}
 2
 3{% block title %}{_ Authorize this request _}{% endblock %}
 4
 5{% block content %}
 6	<div id="content" class="zp-100">
 7        <h1>{_ Allow _} {{ token.application_title|default:_"Untitled" }}?</h1>
 8
 9        <p>{_ The application _} <em>{{ token.application_title|default:_"Untitled" }}</em> {_ wants to access your account. _}</p>
10
11        {% if token.application_descr %}
12        <p>{{ token.application_descr }}</p>
13        {% endif %}
14
15        {% if token.application_uri %}
16        <p><a href="{{ token.application_uri }}">{_ More information about this program _}</a></p>
17        {% endif %}
18
19        <p>{_ This application wants access to the following services: _}</p>
20        <ul>
21        {% for perm in m.oauth_perms.humanreadable[token.application_id] %}
22            <li>{{ perm.desc }}</li>
23        {% endfor %}
24        </ul>
25
26        <!-- FIXME: Show information about how this application will use your account. -->
27
28        <form method="post">
29            <button type="submit">{_ Allow! _}</button>
30            <button type="reset">{_ Disallow _}</button>
31        </form>
32
33	</div>
34{% endblock %}
35