mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 13:17:03 +02:00
gui fixes
This commit is contained in:
@ -1,21 +1,38 @@
|
||||
<div id="deleteconfirm-modal" class="modal hide fade">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" role="dialog" aria-hidden="true"><i class="icon-remove"></i></button>
|
||||
<h3><?php print $text_confirm; ?> <?php print $text_delete; ?></h3>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p><?php print $text_domain_delete_confirm_message; ?> <span id="name">ERROR</span>?</p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<a href="#" class="btn" data-dismiss="modal" aria-hidden="true"><?php print $text_close; ?></a>
|
||||
<a href="index.php?route=domain/remove&id=-1&domain=Error&confirmed=0" class="btn btn-primary" id="id"><?php print $text_delete; ?></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4><?php print $text_add_new_domain; ?></h4>
|
||||
|
||||
<?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-info"><?php print $x; ?></div>
|
||||
<div class="alert alert-success"><?php print $x; ?></div>
|
||||
<?php } ?>
|
||||
|
||||
<form method="post" name="add1" action="index.php?route=domain/domain" class="form-horizontal">
|
||||
|
||||
<div class="control-group">
|
||||
<div class="control-group<?php if(isset($errors['domain'])){ print " error"; } ?>">
|
||||
<label class="control-label" for="domain"><?php print $text_domain; ?>:</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="text" name="domain" placeholder="Domain" />
|
||||
<input type="text" class="text" name="domain" placeholder="Domain"<?php if(isset($post['domain'])){ echo " value='".$post['domain']."'"; } ?> />
|
||||
<?php if ( isset($errors['domain']) ) { ?><span class="help-inline"><?php print $errors['domain']; ?></span><?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="control-group<?php if(isset($errors['mapped'])){ print " error"; } ?>">
|
||||
<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" />
|
||||
<input type="text" class="text" name="mapped" placeholder="Mapped Domain"<?php if(isset($post['mapped'])){ echo " value='".$post['mapped']."'"; } ?> />
|
||||
<?php if ( isset($errors['mapped']) ) { ?><span class="help-inline"><?php print $errors['mapped']; ?></span><?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -43,26 +60,26 @@
|
||||
|
||||
<div class="listarea">
|
||||
|
||||
<?php if(isset($domains)){ ?>
|
||||
<?php if(isset($domains) && count($domains) > 0){ ?>
|
||||
|
||||
<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>
|
||||
<th><?php print $text_domain; ?></th>
|
||||
<th><?php print $text_mapped_domain; ?></th>
|
||||
<?php if(ENABLE_SAAS == 1) { ?>
|
||||
<th class="domaincell"><?php print $text_ldap; ?></th>
|
||||
<th><?php print $text_ldap; ?></th>
|
||||
<?php } ?>
|
||||
<th class="domaincell"> </th>
|
||||
<th> </th>
|
||||
</tr>
|
||||
|
||||
<?php foreach($domains as $domain) { ?>
|
||||
<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>
|
||||
<td><a href="index.php?route=user/list&search=@<?php print $domain['domain']; ?>"><?php print $domain['domain']; ?></a></td>
|
||||
<td><?php print $domain['mapped']; ?></td>
|
||||
<?php if(ENABLE_SAAS == 1) { ?>
|
||||
<td class="domaincell"><?php print $domain['ldap']; ?></td>
|
||||
<td><?php if(isset($domain['ldap'])) {print $domain['ldap'];} else {print ' ';} ?></td>
|
||||
<?php } ?>
|
||||
<td class="domaincell"><a href="index.php?route=domain/remove&domain=<?php print urlencode($domain['domain']); ?>" onclick="javascript:confirm('Delete Domain','Delete','Cancel','<?php print urlencode($domain['domain']); ?>')"><?php print $text_remove; ?></a></td>
|
||||
<td><a href="index.php?route=domain/remove&id=1&domain=<?php print urlencode($domain['domain']); ?>" class="confirm-delete" data-id="1" data-name="<?php print urlencode($domain['domain']); ?>"><i class="icon-remove-sign"></i> <?php print $text_remove; ?></a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
|
@ -1,13 +1,14 @@
|
||||
|
||||
<p>
|
||||
<div>
|
||||
|
||||
<?php if($confirmed){ ?>
|
||||
|
||||
<?php print $x; ?>. <a href="index.php?route=domain/domain"><?php print $text_back; ?></a>
|
||||
<div class="alert alert-success"><?php print $x; ?>.</div>
|
||||
<p><a href="index.php?route=domain/domain"><i class="icon-circle-arrow-left"></i> <?php print $text_back; ?></a></p>
|
||||
|
||||
<?php } else { ?>
|
||||
<a href="index.php?route=domain/remove&domain=<?php print $domain; ?>&confirmed=1"><?php print $text_remove_domain; ?>: <?php print $domain; ?></a>
|
||||
|
||||
<p><a href="index.php?route=domain/domain"><i class="icon-circle-arrow-left"></i> <?php print $text_back; ?></a> | <a href="index.php?route=domain/remove&domain=<?php print $domain; ?>&confirmed=1"><i class="icon-remove-sign"></i> <?php print $text_remove_this_user; ?>: <?php print $user; ?></a></p>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
</p>
|
||||
|
||||
</div>
|
Reference in New Issue
Block a user