mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-19 13:01:51 -07:00
Change Menus and checkboxes disabled to hide
This commit is contained in:
parent
d120654a9b
commit
5939012ab1
5 changed files with 149 additions and 183 deletions
22
web/css/styles.min.css
vendored
22
web/css/styles.min.css
vendored
|
@ -916,16 +916,18 @@ input[type="checkbox"] {
|
|||
|
||||
.l-stat {
|
||||
margin: 0 auto;
|
||||
display: table;
|
||||
margin: 34px auto;
|
||||
position: fixed;
|
||||
background-color: #fff;
|
||||
z-index: 100;
|
||||
padding-top: 30px;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
.l-stat__col {
|
||||
display: table-cell;
|
||||
display: block;
|
||||
vertical-align: top;
|
||||
float: left;
|
||||
}
|
||||
.l-stat__col a {
|
||||
display: inline-block;
|
||||
|
@ -993,19 +995,6 @@ input[type="checkbox"] {
|
|||
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 {
|
||||
height: 1px;
|
||||
|
@ -3136,13 +3125,14 @@ form#vstobjects.suspended {
|
|||
background: rgba(50, 50, 50, 0.9);
|
||||
display: inline-block;
|
||||
position: fixed;
|
||||
right: 20%;
|
||||
left: 50%;
|
||||
bottom: 0;
|
||||
color: #eee;
|
||||
width: 800px;
|
||||
border: 1px solid #333;
|
||||
font-size: 13px;
|
||||
z-index: 120;
|
||||
transform: translate(-50%, 0);
|
||||
}
|
||||
.shortcuts .header {
|
||||
border-bottom: 1px solid #333;
|
||||
|
|
|
@ -71,16 +71,16 @@
|
|||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php if($panel[$user]['DNS_DOMAINS'] != "0") { ?><tr>
|
||||
<td class="vst-text input-label">
|
||||
<label><input type="checkbox" size="20" class="vst-checkbox" name="v_dns" <?php if (empty($v_dns)&&$panel[$user]['DNS_DOMAINS'] != "0") echo "checked=yes"; ?> <?php if($panel[$user]['DNS_DOMAINS'] == "0") echo "disabled" ?> ><?php print __('DNS Support');?></label>
|
||||
<label><input type="checkbox" size="20" class="vst-checkbox" name="v_dns" <?php if (empty($v_dns)&&$panel[$user]['DNS_DOMAINS'] != "0") echo "checked=yes"; ?>> <?php print __('DNS Support');?></label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
</tr><?php } ?>
|
||||
<?php if($panel[$user]['MAIL_DOMAINS'] != "0") { ?><tr>
|
||||
<td class="vst-text input-label">
|
||||
<label><input type="checkbox" size="20" class="vst-checkbox" name="v_mail" <?php if (empty($v_mail)&&$panel[$user]['MAIL_DOMAINS'] != "0") echo "checked=yes"; ?> <?php if($panel[$user]['MAIL_DOMAINS'] == "0") echo "disabled" ?> ><?php print __('Mail Support');?></label>
|
||||
<label><input type="checkbox" size="20" class="vst-checkbox" name="v_mail" <?php if (empty($v_mail)&&$panel[$user]['MAIL_DOMAINS'] != "0") echo "checked=yes"; ?>> <?php print __('Mail Support');?></label>
|
||||
</td>
|
||||
</tr>
|
||||
</tr><?php } ?>
|
||||
<tr>
|
||||
<td class="step-top vst-text" style="/*padding: 32px 0 20px 0;*/">
|
||||
<a href="javascript:elementHideShow('advtable');" class="vst-advanced"><?php print __('Advanced options');?></a>
|
||||
|
|
|
@ -48,6 +48,7 @@
|
|||
</ul>
|
||||
</a>
|
||||
</div>
|
||||
<?php if($panel[$user]['WEB_DOMAINS'] != "0") { ?>
|
||||
<div class="l-stat__col <?php if($TAB == 'WEB' ) echo 'l-stat__col--active' ?>">
|
||||
<a href="/list/web/">
|
||||
<div class="l-stat__col-title"><?=__('WEB')?></div>
|
||||
|
@ -58,6 +59,8 @@
|
|||
</ul>
|
||||
</a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if($panel[$user]['DNS_DOMAINS'] != "0") { ?>
|
||||
<div class="l-stat__col <?php if($TAB == 'DNS' ) echo 'l-stat__col--active' ?>">
|
||||
<a href="/list/dns/">
|
||||
<div class="l-stat__col-title"><?=__('DNS')?></div>
|
||||
|
@ -68,6 +71,8 @@
|
|||
</ul>
|
||||
</a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if($panel[$user]['MAIL_DOMAINS'] != "0") { ?>
|
||||
<div class="l-stat__col <?php if($TAB == 'MAIL' ) echo 'l-stat__col--active' ?>">
|
||||
<a href="/list/mail/">
|
||||
<div class="l-stat__col-title"><?=__('MAIL')?></div>
|
||||
|
@ -78,6 +83,8 @@
|
|||
</ul>
|
||||
</a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if($panel[$user]['DATABASES'] != "0") { ?>
|
||||
<div class="l-stat__col <?php if($TAB == 'DB' ) echo 'l-stat__col--active' ?>">
|
||||
<a href="/list/db/">
|
||||
<div class="l-stat__col-title"><?=__('DB')?></div>
|
||||
|
@ -87,6 +94,8 @@
|
|||
</ul>
|
||||
</a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if($panel[$user]['CRON_JOBS'] != "0") { ?>
|
||||
<div class="l-stat__col <?php if($TAB == 'CRON' ) echo 'l-stat__col--active' ?>">
|
||||
<a href="/list/cron/">
|
||||
<div class="l-stat__col-title"><?=__('CRON')?></div>
|
||||
|
@ -96,6 +105,8 @@
|
|||
</ul>
|
||||
</a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if($panel[$user]['BACKUPS'] != "0") { ?>
|
||||
<div class="l-stat__col <?php if($TAB == 'BACKUP' ) echo 'l-stat__col--active' ?>">
|
||||
<a href="/list/backup/">
|
||||
<div class="l-stat__col-title"><?=__('BACKUP')?></div>
|
||||
|
@ -104,6 +115,7 @@
|
|||
</ul>
|
||||
</a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<!-- /.l-stats -->
|
||||
</div>
|
||||
|
|
|
@ -15,54 +15,6 @@
|
|||
});
|
||||
</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
|
||||
// Dialogs
|
||||
// todo: display all the dialogs?
|
||||
|
|
|
@ -41,6 +41,7 @@
|
|||
</ul>
|
||||
</a>
|
||||
</div>
|
||||
<?php if($panel[$user]['WEB_DOMAINS'] != "0") { ?>
|
||||
<div class="l-stat__col <?php if($TAB == 'WEB' ) echo 'l-stat__col--active' ?>">
|
||||
<a href="/list/web/">
|
||||
<div class="l-stat__col-title"><?=__('WEB')?></div>
|
||||
|
@ -51,6 +52,8 @@
|
|||
</ul>
|
||||
</a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if($panel[$user]['DNS_DOMAINS'] != "0") { ?>
|
||||
<div class="l-stat__col <?php if($TAB == 'DNS' ) echo 'l-stat__col--active' ?>">
|
||||
<a href="/list/dns/">
|
||||
<div class="l-stat__col-title"><?=__('DNS')?></div>
|
||||
|
@ -61,6 +64,8 @@
|
|||
</ul>
|
||||
</a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if($panel[$user]['MAIL_DOMAINS'] != "0") { ?>
|
||||
<div class="l-stat__col <?php if($TAB == 'MAIL' ) echo 'l-stat__col--active' ?>">
|
||||
<a href="/list/mail/">
|
||||
<div class="l-stat__col-title"><?=__('MAIL')?></div>
|
||||
|
@ -71,6 +76,8 @@
|
|||
</ul>
|
||||
</a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if($panel[$user]['DATABASES'] != "0") { ?>
|
||||
<div class="l-stat__col <?php if($TAB == 'DB' ) echo 'l-stat__col--active' ?>">
|
||||
<a href="/list/db/">
|
||||
<div class="l-stat__col-title"><?=__('DB')?></div>
|
||||
|
@ -80,6 +87,8 @@
|
|||
</ul>
|
||||
</a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if($panel[$user]['CRON_JOBS'] != "0") { ?>
|
||||
<div class="l-stat__col <?php if($TAB == 'CRON' ) echo 'l-stat__col--active' ?>">
|
||||
<a href="/list/cron/">
|
||||
<div class="l-stat__col-title"><?=__('CRON')?></div>
|
||||
|
@ -89,6 +98,8 @@
|
|||
</ul>
|
||||
</a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if($panel[$user]['BACKUPS'] != "0") { ?>
|
||||
<div class="l-stat__col <?php if($TAB == 'BACKUP' ) echo 'l-stat__col--active' ?>">
|
||||
<a href="/list/backup/">
|
||||
<div class="l-stat__col-title"><?=__('BACKUP')?></div>
|
||||
|
@ -97,6 +108,7 @@
|
|||
</ul>
|
||||
</a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<!-- /.l-stats -->
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue