mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-19 13:01:51 -07:00
Disable WebUI header menu WEB, DNS, MAIL, DB, CRON, BACKUP if they are set "0" in the package.
This commit is contained in:
parent
1820107da2
commit
cc15e4adad
2 changed files with 63 additions and 2 deletions
13
web/css/styles.min.css
vendored
13
web/css/styles.min.css
vendored
|
@ -993,6 +993,19 @@ input[type="checkbox"] {
|
||||||
margin-right: -8px;
|
margin-right: -8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.l-stat__col a.disabled {
|
||||||
|
cursor: default;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.l-stat__col a.disabled:hover {
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.l-stat__col a.disabled .l-stat__col-title, .l-stat__col a.disabled li {
|
||||||
|
color: #e0e0e0;
|
||||||
|
}
|
||||||
|
|
||||||
.l-separator.selected,
|
.l-separator.selected,
|
||||||
.l-separator {
|
.l-separator {
|
||||||
height: 1px;
|
height: 1px;
|
||||||
|
|
|
@ -15,6 +15,54 @@
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<?php if($panel[$user]['WEB_DOMAINS'] == "0") { ?>
|
||||||
|
<script>
|
||||||
|
$('a[href^="/list/web"]').addClass('disabled').click(function() {
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
|
<?php if($panel[$user]['DNS_DOMAINS'] == "0") { ?>
|
||||||
|
<script>
|
||||||
|
$('a[href^="/list/dns"]').addClass('disabled').click(function() {
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
|
<?php if($panel[$user]['MAIL_DOMAINS'] == "0") { ?>
|
||||||
|
<script>
|
||||||
|
$('a[href^="/list/mail"]').addClass('disabled').click(function() {
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
|
<?php if($panel[$user]['DATABASES'] == "0") { ?>
|
||||||
|
<script>
|
||||||
|
$('a[href^="/list/db"]').addClass('disabled').click(function() {
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
|
<?php if($panel[$user]['CRON_JOBS'] == "0") { ?>
|
||||||
|
<script>
|
||||||
|
$('a[href^="/list/cron"]').addClass('disabled').click(function() {
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
|
<?php if($panel[$user]['BACKUPS'] == "0") { ?>
|
||||||
|
<script>
|
||||||
|
$('a[href^="/list/backup"]').addClass('disabled').click(function() {
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
// Dialogs
|
// Dialogs
|
||||||
// todo: display all the dialogs?
|
// todo: display all the dialogs?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue