]> git.mxchange.org Git - friendica.git/blob - view/templates/settings/oauth.tpl
Improve connectors settings display
[friendica.git] / view / templates / settings / oauth.tpl
1
2 <h1>{{$title}}</h1>
3
4
5 <form action="settings/oauth" method="post" autocomplete="off">
6 <input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
7
8         <div id="profile-edit-links">
9                 <ul>
10                         <li>
11                                 <a id="profile-edit-view-link" href="{{$baseurl}}/settings/oauth/add">{{$add}}</a>
12                         </li>
13                 </ul>
14         </div>
15
16         {{foreach $apps as $app}}
17         <div class='oauthapp'>
18                 <img src='{{$app.icon}}' class="{{if $app.icon}} {{else}}noicon{{/if}}">
19                 {{if $app.name}}<h4>{{$app.name}}</h4>{{else}}<h4>{{$noname}}</h4>{{/if}}
20                 {{if $app.my}}
21                         {{if $app.oauth_token}}
22                         <div class="settings-submit-wrapper" ><button class="settings-submit"  type="submit" name="remove" value="{{$app.oauth_token}}">{{$remove}}</button></div>
23                         {{/if}}
24                 {{/if}}
25                 {{if $app.my}}
26                 <a href="{{$baseurl}}/settings/oauth/edit/{{$app.client_id}}" class="icon s22 edit" title="{{$edit|escape:'html'}}">&nbsp;</a>
27                 <a href="{{$baseurl}}/settings/oauth/delete/{{$app.client_id}}?t={{$form_security_token}}" class="icon s22 delete" title="{{$delete|escape:'html'}}">&nbsp;</a>
28                 {{/if}}         
29         </div>
30         {{/foreach}}
31
32 </form>