|
1 {assign var="title" value="Edit user"} |
|
2 {include file="header.tpl"} |
|
3 |
|
4 <h1>Edit account: {$this_user['cn']|escape:'html'}</h1> |
|
5 |
|
6 <form method="post" class="form-horizontal"> |
|
7 <div class="control-group"> |
|
8 <label class="control-label">Full LDAP username (Distinguished Name):</label> |
|
9 <div class="controls"> |
|
10 <input type="text" name="dn" value="{$dn|escape:'html'}" readonly="readonly" class="input-xxlarge" /> |
|
11 <p class="help-block">This string is used if you want to bind directly to LDAP as this user. You might find it useful, |
|
12 for example, if you are configuring LDAP for use in an address book on a mobile device or in an e-mail client.</p> |
|
13 <p class="help-block">It is possible to bind as this DN using either a simple (password) bind or via a Kerberos ticket |
|
14 via the GSSAPI SASL mechanism.</p> |
|
15 </div> |
|
16 </div> |
|
17 |
|
18 {foreach $this_user as $key=>$values} |
|
19 {if is_array($values)} |
|
20 {foreach $values as $value} |
|
21 <div class="control-group"> |
|
22 <label class="control-label">{if isset($field_names[$key])}{$field_names[$key]}{else}{$key}{/if}:</label> |
|
23 <div class="controls"> |
|
24 <input class="input-xlarge" type="text" name="entry[{$key}][]" value="{$value|escape:'html'}" {if in_array($key, $readonly)}readonly="readonly"{/if} /> |
|
25 </div> |
|
26 </div> |
|
27 {/foreach} |
|
28 {else} |
|
29 <div class="control-group"> |
|
30 <label class="control-label">{if isset($field_names[$key])}{$field_names[$key]}{else}{$key}{/if}:</label> |
|
31 <div class="controls"> |
|
32 <input class="input-xlarge" type="text" name="entry[{$key}][]" value="{$values|escape:'html'}" {if in_array($key, $readonly)}readonly="readonly"{/if} /> |
|
33 </div> |
|
34 </div> |
|
35 {/if} |
|
36 {/foreach} |
|
37 <div class="form-actions"> |
|
38 <input type="submit" value="Save changes" class="btn btn-primary" /> |
|
39 <a class="btn" href="/users">Cancel</a> |
|
40 </div> |
|
41 </form> |
|
42 |
|
43 {include file="footer.tpl"} |