]> git.mxchange.org Git - friendica.git/blob - view/templates/settings/delegation.tpl
Refactor Delegation modules
[friendica.git] / view / templates / settings / delegation.tpl
1 <div id="delegation" class="generic-page-wrapper">
2         <h2>{{$l10n.header}}</h2>
3
4 {{if !$is_child_user}}
5         <h3>{{$l10n.account_header}}</h3>
6         <div id="add-account-desc" class="add-account-desc"><p>{{$l10n.account_desc}}</p></div>
7         <p><a href="register">{{$l10n.add_account}}</a></p>
8 {{/if}}
9
10 {{if $parent_user}}
11         <h3>{{$l10n.parent_header}}</h3>
12         <div id="delegate-parent-desc" class="delegate-parent-desc"><p>{{$l10n.parent_desc}}</p></div>
13         <div id="delegate-parent" class="delegate-parent">
14                 <form action="settings/delegation" method="post">
15                         <input type="hidden" name='form_security_token' value="{{$form_security_token}}">
16             {{include file="field_select.tpl" field=$parent_user}}
17             {{include file="field_password.tpl" field=$parent_password}}
18                         <div class="submit">
19                                 <button type="submit" name="delegate" value="{{$l10n.submit}}">{{$l10n.submit}}</button>
20                         </div>
21                 </form>
22         </div>
23 {{/if}}
24
25         <h3>{{$l10n.delegates_header}}</h3>
26
27         <div id="delegate-desc" class="delegate-desc"><p>{{$l10n.desc}}</p></div>
28
29         <h4>{{$l10n.head_delegates}}</h4>
30 {{if $delegates}}
31     {{foreach $delegates as $delegate}}
32         <div class="contact-block-div">
33                 <a class="contact-block-link" href="settings/delegation/remove/{{$delegate.uid}}">
34                         <img class="contact-block-img" src="photo/thumb/{{$delegate.uid}}" title="{{$delegate.username}} ({{$delegate.nickname}})">
35                 </a>
36         </div>
37     {{/foreach}}
38         <div class="clear"></div>
39 {{else}}
40         <p>{{$l10n.none}}</p>
41 {{/if}}
42
43         <h4>{{$l10n.head_potentials}}</h4>
44 {{if $potentials}}
45     {{foreach $potentials as $potential}}
46         <div class="contact-block-div">
47                 <a class="contact-block-link" href="settings/delegation/add/{{$potential.uid}}">
48                         <img class="contact-block-img" src="photo/thumb/{{$potential.uid}}" title="{{$potential.username}} ({{$potential.nickname}})">
49                 </a>
50         </div>
51     {{/foreach}}
52         <div class="clear"></div>
53 {{else}}
54         <p>{{$l10n.none}}</p>
55 {{/if}}
56 </div>