piler/webui/view/theme/default/templates/domain/list.tpl

79 lines
2.7 KiB
Smarty
Raw Normal View History

2012-02-08 23:14:28 +01:00
<h4><?php print $text_add_new_domain; ?></h4>
2013-04-05 10:16:33 +02:00
<?php if(isset($x)){ ?>
<div class="alert alert-info"><?php print $x; ?></div>
<?php } ?>
2012-02-08 23:14:28 +01:00
2013-04-05 10:16:33 +02:00
<form method="post" name="add1" action="index.php?route=domain/domain" class="form-horizontal">
<div class="control-group">
<label class="control-label" for="domain"><?php print $text_domain; ?>:</label>
<div class="controls">
<input type="text" class="text" name="domain" placeholder="Domain" />
</div>
</div>
<div class="control-group">
2013-07-08 11:31:17 +02:00
<label class="control-label" for="mapped"><?php print $text_mapped_domain; ?>:</label>
<div class="controls">
<input type="text" class="text" name="mapped" placeholder="Mapped Domain" />
</div>
2013-04-05 10:16:33 +02:00
</div>
2013-07-08 11:31:17 +02:00
<?php if(ENABLE_SAAS == 1) { ?>
<div class="control-group">
<label class="control-label" for="ldap_id"><?php print $text_ldap; ?>:</label>
<div class="controls">
<select name="ldap_id" id="ldap_id">
<?php foreach ($ldap as $l) { ?>
<option value="<?php print $l['id']; ?>"><?php print $l['description']; ?></option>
<?php } ?>
</select>
</div>
</div>
<?php } ?>
2013-04-05 10:16:33 +02:00
<div class="form-actions">
<input type="submit" value="<?php print $text_add; ?>" class="btn btn-primary" />
<input type="reset" value="<?php print $text_clear; ?>" class="btn" />
</div>
2012-02-08 23:14:28 +01:00
</form>
<h4><?php print $text_existing_domains; ?></h4>
2013-02-11 20:24:19 +01:00
<div class="listarea">
2012-11-01 22:33:57 +01:00
2012-02-08 23:14:28 +01:00
<?php if(isset($domains)){ ?>
2013-04-05 10:16:33 +02:00
<table id="ss1" class="table table-striped table-condensed">
<tr>
<th class="domaincell"><?php print $text_domain; ?></th>
<th class="domaincell"><?php print $text_mapped_domain; ?></th>
2013-07-08 11:31:17 +02:00
<?php if(ENABLE_SAAS == 1) { ?>
<th class="domaincell"><?php print $text_ldap; ?></th>
<?php } ?>
2013-04-05 10:16:33 +02:00
<th class="domaincell">&nbsp;</th>
</tr>
2012-02-08 23:14:28 +01:00
<?php foreach($domains as $domain) { ?>
2013-04-05 10:16:33 +02:00
<tr>
<td class="domaincell"><a href="index.php?route=user/list&search=@<?php print $domain['domain']; ?>"><?php print $domain['domain']; ?></a></td>
<td class="domaincell"><?php print $domain['mapped']; ?></td>
2013-07-08 11:31:17 +02:00
<?php if(ENABLE_SAAS == 1) { ?>
<td class="domaincell"><?php print $domain['ldap']; ?></td>
<?php } ?>
2013-04-05 10:16:33 +02:00
<td class="domaincell"><a href="index.php?route=domain/remove&amp;domain=<?php print urlencode($domain['domain']); ?>" onclick="javascript:confirm('Delete Domain','Delete','Cancel','<?php print urlencode($domain['domain']); ?>')"><?php print $text_remove; ?></a></td>
</tr>
2012-02-08 23:14:28 +01:00
<?php } ?>
</div>
<?php } else { ?>
2013-04-05 10:16:33 +02:00
<div class="alert alert-error lead">
<?php print $text_not_found; ?>
</div>
2012-02-08 23:14:28 +01:00
<?php } ?>
2012-11-01 22:33:57 +01:00
</div>