packages/ssoinabox-webui/root/usr/local/share/ssoinabox/htdocs/includes/templates/useredit.tpl
author Dan Fuhry <dan@enanocms.org>
Sat, 23 Feb 2013 14:26:38 -0500
changeset 9 f4bf6556fb9f
parent 0 3906ca745819
permissions -rw-r--r--
Merged

{assign var="title" value="Edit user"}
{include file="header.tpl"}

<h1>Edit account: {$this_user['cn']|escape:'html'}</h1>

<form method="post" class="form-horizontal">
	<div class="control-group">
		<label class="control-label">Full LDAP username (Distinguished Name):</label>
		<div class="controls">
			<input type="text" name="dn" value="{$dn|escape:'html'}" readonly="readonly" class="input-xxlarge" />
			<p class="help-block">This string is used if you want to bind directly to LDAP as this user. You might find it useful,
				for example, if you are configuring LDAP for use in an address book on a mobile device or in an e-mail client.</p>
			<p class="help-block">It is possible to bind as this DN using either a simple (password) bind or via a Kerberos ticket
				via the GSSAPI SASL mechanism.</p>
		</div>
	</div>
	
	{foreach $this_user as $key=>$values}
		{if is_array($values)}
			{foreach $values as $value}
				<div class="control-group">
					<label class="control-label">{if isset($field_names[$key])}{$field_names[$key]}{else}{$key}{/if}:</label>
					<div class="controls">
						<input class="input-xlarge" type="text" name="entry[{$key}][]" value="{$value|escape:'html'}" {if in_array($key, $readonly)}readonly="readonly"{/if} />
					</div>
				</div>
			{/foreach}
		{else}
			<div class="control-group">
				<label class="control-label">{if isset($field_names[$key])}{$field_names[$key]}{else}{$key}{/if}:</label>
				<div class="controls">
					<input class="input-xlarge" type="text" name="entry[{$key}][]" value="{$values|escape:'html'}" {if in_array($key, $readonly)}readonly="readonly"{/if} />
				</div>
			</div>
		{/if}
	{/foreach}
	<div class="form-actions">
		<input type="submit" value="Save changes" class="btn btn-primary" />
		<a class="btn" href="/users">Cancel</a>
	</div>
</form>

{include file="footer.tpl"}