]> git.mxchange.org Git - friendica.git/blob - view/templates/settings/delegation.tpl
Merge branch '2021.03-rc' into copyright-2021
[friendica.git] / view / templates / settings / delegation.tpl
1 <div id="delegation" class="generic-page-wrapper">
2 <h1>{{$header}}</h1>
3
4 {{if !$is_child_user}}
5 <h2>{{$account_header}}</h2>
6 <div id="add-account-desc" class="add-account-desc"><p>{{$account_desc}}</p></div>
7 <p><a href='register'>{{$add_account}}</a></p>
8 {{/if}}
9
10 {{if $parent_user}}
11 <h2>{{$parent_header}}</h2>
12 <div id="delegate-parent-desc" class="delegate-parent-desc"><p>{{$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"><input type="submit" name="delegate" value="{{$submit}}"/></div>
19         </form>
20 </div>
21 {{/if}}
22
23 <h2>{{$delegates_header}}</h2>
24
25 <div id="delegate-desc" class="delegate-desc"><p>{{$desc nofilter}}</p></div>
26
27 <h3>{{$head_delegates}}</h3>
28 {{if $delegates}}
29     {{foreach $delegates as $x}}
30 <div class="contact-block-div">
31         <a class="contact-block-link" href="settings/delegation/remove/{{$x.uid}}">
32                 <img class="contact-block-img" src="photo/thumb/{{$x.uid}}" title="{{$x.username}} ({{$x.nickname}})">
33         </a>
34 </div>
35     {{/foreach}}
36 <div class="clear"></div>
37 {{else}}
38     <p>{{$none}}</p>
39 {{/if}}
40
41 <h3>{{$head_potentials}}</h3>
42 {{if $potentials}}
43     {{foreach $potentials as $x}}
44 <div class="contact-block-div">
45         <a class="contact-block-link" href="settings/delegation/add/{{$x.uid}}">
46                 <img class="contact-block-img" src="photo/thumb/{{$x.uid}}" title="{{$x.username}} ({{$x.nickname}})">
47         </a>
48 </div>
49     {{/foreach}}
50 <div class="clear"></div>
51 {{else}}
52     <p>{{$none}}</p>
53 {{/if}}
54 </div>