2020-01-20 00:05:20 -05:00
|
|
|
<div id="delegation" class="generic-page-wrapper">
|
2023-07-28 05:55:57 -04:00
|
|
|
<h2>{{$l10n.header}}</h2>
|
2019-10-09 22:17:09 -04:00
|
|
|
|
2020-01-18 13:40:48 -05:00
|
|
|
{{if !$is_child_user}}
|
2023-07-28 05:55:57 -04:00
|
|
|
<h3>{{$l10n.account_header}}</h3>
|
|
|
|
<div id="add-account-desc" class="add-account-desc"><p>{{$l10n.account_desc}}</p></div>
|
|
|
|
<p><a href="register">{{$l10n.add_account}}</a></p>
|
2020-01-18 13:40:48 -05:00
|
|
|
{{/if}}
|
|
|
|
|
2019-10-09 22:17:09 -04:00
|
|
|
{{if $parent_user}}
|
2023-07-28 05:55:57 -04:00
|
|
|
<h3>{{$l10n.parent_header}}</h3>
|
|
|
|
<div id="delegate-parent-desc" class="delegate-parent-desc"><p>{{$l10n.parent_desc}}</p></div>
|
|
|
|
<div id="delegate-parent" class="delegate-parent">
|
|
|
|
<form action="settings/delegation" method="post">
|
|
|
|
<input type="hidden" name='form_security_token' value="{{$form_security_token}}">
|
|
|
|
{{include file="field_select.tpl" field=$parent_user}}
|
|
|
|
{{include file="field_password.tpl" field=$parent_password}}
|
|
|
|
<div class="submit">
|
|
|
|
<button type="submit" name="delegate" value="{{$l10n.submit}}">{{$l10n.submit}}</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
2019-10-09 22:17:09 -04:00
|
|
|
{{/if}}
|
|
|
|
|
2023-07-28 05:55:57 -04:00
|
|
|
<h3>{{$l10n.delegates_header}}</h3>
|
2019-10-09 22:17:09 -04:00
|
|
|
|
2023-07-28 05:55:57 -04:00
|
|
|
<div id="delegate-desc" class="delegate-desc"><p>{{$l10n.desc}}</p></div>
|
2019-10-09 22:17:09 -04:00
|
|
|
|
2023-07-28 05:55:57 -04:00
|
|
|
<h4>{{$l10n.head_delegates}}</h4>
|
2019-10-09 22:17:09 -04:00
|
|
|
{{if $delegates}}
|
2023-07-28 05:55:57 -04:00
|
|
|
{{foreach $delegates as $delegate}}
|
|
|
|
<div class="contact-block-div">
|
|
|
|
<a class="contact-block-link" href="settings/delegation/remove/{{$delegate.uid}}">
|
|
|
|
<img class="contact-block-img" src="photo/thumb/{{$delegate.uid}}" title="{{$delegate.username}} ({{$delegate.nickname}})">
|
|
|
|
</a>
|
|
|
|
</div>
|
2019-10-09 22:17:09 -04:00
|
|
|
{{/foreach}}
|
2023-07-28 05:55:57 -04:00
|
|
|
<div class="clear"></div>
|
2019-10-09 22:17:09 -04:00
|
|
|
{{else}}
|
2023-07-28 05:55:57 -04:00
|
|
|
<p>{{$l10n.none}}</p>
|
2019-10-09 22:17:09 -04:00
|
|
|
{{/if}}
|
|
|
|
|
2023-07-28 05:55:57 -04:00
|
|
|
<h4>{{$l10n.head_potentials}}</h4>
|
2019-10-09 22:17:09 -04:00
|
|
|
{{if $potentials}}
|
2023-07-28 05:55:57 -04:00
|
|
|
{{foreach $potentials as $potential}}
|
|
|
|
<div class="contact-block-div">
|
|
|
|
<a class="contact-block-link" href="settings/delegation/add/{{$potential.uid}}">
|
|
|
|
<img class="contact-block-img" src="photo/thumb/{{$potential.uid}}" title="{{$potential.username}} ({{$potential.nickname}})">
|
|
|
|
</a>
|
|
|
|
</div>
|
2019-10-09 22:17:09 -04:00
|
|
|
{{/foreach}}
|
2023-07-28 05:55:57 -04:00
|
|
|
<div class="clear"></div>
|
2019-10-09 22:17:09 -04:00
|
|
|
{{else}}
|
2023-07-28 05:55:57 -04:00
|
|
|
<p>{{$l10n.none}}</p>
|
2019-10-09 22:17:09 -04:00
|
|
|
{{/if}}
|
2020-01-20 00:05:20 -05:00
|
|
|
</div>
|