Toujours moche, mais un peu plus ergonomique poru gérer les profilsde quota
This commit is contained in:
parent
10b6a6888f
commit
2e8635680b
|
@ -98,8 +98,9 @@ $qlist=$quota->getdefaults();
|
|||
reset($qlist);
|
||||
foreach($qlist as $type => $q) {
|
||||
?>
|
||||
<div>
|
||||
<h4><?php echo _("Accounts of type"). " \"$type\"" ?></h4>
|
||||
<div class="info-toggle">
|
||||
<h4 class="toggle-next"><?php echo _("Accounts of type"). " \"$type\"" ?>▼</h4>
|
||||
<div class="info-hide" id="div-quot-<?php echo md5($type);?>">
|
||||
<table border="0" cellpadding="4" cellspacing="0" class='tlist'>
|
||||
<tr><th><?php __("Quotas") ?></th><th><?php __("Default Value"); ?></th></tr>
|
||||
<?php
|
||||
|
@ -113,9 +114,14 @@ foreach($q as $name => $value) {
|
|||
<td><input type="text" class="int" size="16" maxlength="16" name="<?php echo $key; ?>" id="<?php echo $key;?>" value="<?php ehe($value); ?>" /></td></tr>
|
||||
|
||||
<?php
|
||||
}
|
||||
} //foreach
|
||||
?>
|
||||
</table>
|
||||
<br/>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
$("#div-quot-<?php echo md5($type);?>").toggle();
|
||||
</script>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
@ -124,4 +130,12 @@ foreach($q as $name => $value) {
|
|||
<input type="submit" class="inb ok" value="<?php __("Edit the default quotas"); ?>" />
|
||||
</div>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
$(".toggle-next").on("click",function(){
|
||||
var next = $(this).next();
|
||||
next.toggle();
|
||||
})
|
||||
});
|
||||
</script>
|
||||
<?php include_once("foot.php"); ?>
|
||||
|
|
|
@ -1055,3 +1055,11 @@ body .ui-widget-content a {
|
|||
.ui-tabs .ui-tabs-nav li a, .ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a {
|
||||
outline:none;
|
||||
}
|
||||
|
||||
.info-toggle {
|
||||
background: none repeat scroll 0 0 #CFE3F1;
|
||||
border: 1px solid #CCCCCC;
|
||||
border-radius: 15px 15px 15px 15px;
|
||||
margin: 16px 0;
|
||||
padding: 0 16px;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue