mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-14 16:52:00 +01:00
139 lines
7.1 KiB
Smarty
139 lines
7.1 KiB
Smarty
|
|
<?php if(isset($errorstring)){ ?><div class="alert alert-danger"><?php print $text_error; ?>: <?php print $errorstring; ?></div><?php } ?>
|
|
|
|
<?php if(isset($x)){ ?>
|
|
|
|
<div class="alert alert-success"><?php print $x; ?>.</div>
|
|
<p><a href="index.php?route=user/list"><i class="icon-circle-arrow-left"></i> <?php print $text_back; ?></a></p>
|
|
|
|
<?php } elseif(isset($user)) { ?>
|
|
|
|
<p><a href="index.php?route=user/list"><i class="icon-circle-arrow-left"></i> <?php print $text_back; ?></a> | <a href="index.php?route=user/remove&uid=<?php print $user['uid']; ?>&user=<?php print $user['username']; ?>"><i class="icon-remove-sign"></i> <?php print $text_remove_this_user; ?>: <?php print $user['username']; ?></a></p>
|
|
|
|
<form action="index.php?route=user/edit" name="edituser" method="post" autocomplete="off" class="form-horizontal">
|
|
<div class="control-group">
|
|
<input type="hidden" name="uid" value="<?php print $uid; ?>" />
|
|
<label class="control-label" for="email"><?php print $text_email_addresses; ?>:</label>
|
|
<div class="controls">
|
|
<textarea name="email"><?php print $emails; ?></textarea>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="control-group">
|
|
<label class="control-label" for="username"><?php print $text_username; ?>:</label>
|
|
<div class="controls">
|
|
<input type="text" name="username" value="<?php print $user['username']; ?>" class="text" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="control-group">
|
|
<label class="control-label" for="realname"><?php print $text_realname; ?>:</label>
|
|
<div class="controls">
|
|
<input type="text" name="realname" value="<?php print $user['realname']; ?>" class="text" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="control-group">
|
|
<label class="control-label" for="domain"><?php print $text_domain; ?>:</label>
|
|
<div class="controls">
|
|
<select name="domain">
|
|
<?php asort($domains); foreach ($domains as $domain) { ?>
|
|
<option value="<?php print $domain; ?>"<?php if($domain == $user['domain']){ ?> selected="selected"<?php } ?>><?php print $domain; ?></option>
|
|
<?php } ?>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="control-group">
|
|
<label class="control-label" for="s_piler_domains"><?php print $text_search_domains; ?>*:</label>
|
|
<div class="controls">
|
|
<input type="text" id="s_piler_domain" name="s_piler_domain" placeholder="<?php print $text_search_domain_to_add; ?>" class="autocompletetext" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="control-group">
|
|
<label class="control-label" for="group"><?php print $text_domains; ?>**:</label>
|
|
<div class="controls">
|
|
<textarea style="height:80px;" name="domains" id="domains"><?php if(isset($user['domains'])){ print $user['domains']; } ?></textarea>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="control-group">
|
|
<label class="control-label" for="s_piler_group"><?php print $text_search_groups; ?>*:</label>
|
|
<div class="controls">
|
|
<input type="text" id="s_piler_group" name="s_piler_group" placeholder="<?php print $text_search_group_to_add; ?>" class="autocompletetext" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="control-group">
|
|
<label class="control-label" for="group"><?php print $text_groups; ?>**:</label>
|
|
<div class="controls">
|
|
<textarea style="height:80px;" name="group" id="group"><?php if(isset($user['group'])){ print $user['group']; } ?></textarea>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="control-group">
|
|
<label class="control-label" for="s_piler_folder"><?php print $text_search_folders; ?>*:</label>
|
|
<div class="controls">
|
|
<input type="text" id="s_piler_folder" name="s_piler_folder" placeholder="<?php print $text_search_folder_to_add; ?>" class="autocompletetext" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="control-group">
|
|
<label class="control-label" for="folder"><?php print $text_folders; ?>**:</label>
|
|
<div class="controls">
|
|
<textarea style="height:80px;" name="folder" id="folder"><?php if(isset($user['folder'])){ print $user['folder']; } ?></textarea>
|
|
</div>
|
|
</div>
|
|
|
|
<?php if(ENABLE_LDAP_IMPORT_FEATURE == 1) { ?>
|
|
<div class="control-group">
|
|
<label class="control-label" for="dn">LDAP DN:</label>
|
|
<div class="controls">
|
|
<input type="text" name="dn" value="<?php print $user['dn']; ?>" class="text" /><br /> (<?php print $text_dn_asterisk_means_skip_sync; ?>)
|
|
</div>
|
|
</div>
|
|
<?php } ?>
|
|
|
|
<div class="control-group">
|
|
<label class="control-label" for="password"><?php print $text_password; ?>:</label>
|
|
<div class="controls">
|
|
<input type="password" name="password" value="" class="text" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="control-group">
|
|
<label class="control-label" for="password2"><?php print $text_password_again; ?>:</label>
|
|
<div class="controls">
|
|
<input type="password" name="password2" value="" class="text" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="control-group">
|
|
<label class="control-label" for="uiddisplay"><?php print $text_user_id; ?>:</label>
|
|
<div class="controls">
|
|
<input type="text" name="uiddisplay" value="<?php print $uid; ?>" class="text" disabled />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="control-group">
|
|
<label class="control-label" for="isadmin"><?php print $text_admin_user; ?>:</label>
|
|
<div class="controls">
|
|
<select name="isadmin">
|
|
<option value="0"<?php if(isset($user['isadmin']) && $user['isadmin'] == 0){ ?> selected="selected"<?php } ?>><?php print $text_user_regular; ?></option>
|
|
<?php if(Registry::get('admin_user') == 1) { ?><option value="1"<?php if(isset($user['isadmin']) && $user['isadmin'] == 1){ ?> selected="selected"<?php } ?>><?php print $text_user_masteradmin; ?></option><?php } ?>
|
|
<option value="2"<?php if(isset($user['isadmin']) && $user['isadmin'] == 2){ ?> selected="selected"<?php } ?>><?php print $text_user_auditor; ?></option>
|
|
<option value="3"<?php if(isset($user['isadmin']) && $user['isadmin'] == 3){ ?> selected="selected"<?php } ?>><?php print $text_user_read_only_admin; ?></option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="alert alert-info">*: <?php print $text_min_2_chars; ?><br />**: <?php print $text_enter_one_group_per_line; ?></div>
|
|
|
|
<div class="form-actions">
|
|
<input type="submit" value="<?php print $text_modify; ?>" class="btn btn-primary" /> <a href="index.php?route=user/list" class="btn"><?php print $text_cancel; ?></a>
|
|
</div>
|
|
|
|
</form>
|
|
|
|
<?php } ?> |