3 <h4>A new application would like to connect to your account</h4>
5 <div class="center-align col l6 offset-l3">
7 <ul class="collection">
8 <li class="collection-item avatar">
10 <img src="{{ client.image }}" alt="Client icon" class="circle">
12 <span class="title">{{ client.name }}</span>
13 <p>{{ client.description }}</p>
16 {% set scopes = form.scope.vars.value | split(' ') %}
17 {# TODO : Fix me when https://github.com/FriendsOfSymfony/FOSOAuthServerBundle/issues/309 is ok #}
18 <ul class="collapsible col s12 m12 l6 offset-l3" data-collapsible="accordion">
19 {% for scope in scopes %}
20 {% if scope == 'read' %}
22 <div class="collapsible-header"><i class="material-icons">visibility</i>Read Permission</div>
23 <div class="collapsible-body"><span>{{ client.name }} will be able to access the list and contents of your entries, tags and annotations.</span></div>
26 {% if scope == 'write' %}
28 <div class="collapsible-header"><i class="material-icons">edit</i>Edit Permission</div>
29 <div class="collapsible-body"><span>{{ client.name }} will be able to edit and manage (including deleting) your entries, tags and annotations.</span></div>
32 {% if scope == 'user' %}
34 <div class="collapsible-header"><i class="material-icons">person</i>User Permission</div>
35 <div class="collapsible-body"><span>{{ client.name }} will be able to manage your user account.</span></div>
41 {{ form_start(form, {'method': 'POST', 'action': path('fos_oauth_server_authorize'), 'label_attr': {'class': 'fos_oauth_server_authorize'} }) }}
42 <input class="waves-effect waves-light btn red" type="submit" name="rejected" value="{{ 'authorize.reject'|trans({}, 'FOSOAuthServerBundle') }}" />
43 <input class="waves-effect waves-light btn" type="submit" name="accepted" value="{{ 'authorize.accept'|trans({}, 'FOSOAuthServerBundle') }}" />
44 {{ form_row(form.client_id) }}
45 {{ form_row(form.response_type) }}
46 {{ form_row(form.redirect_uri) }}
47 {{ form_row(form.state) }}
48 {{ form_row(form.scope) }}