Fix style

pull/3852/head
IgorA100 2024-03-06 19:56:10 +03:00 committed by GitHub
parent 714a0913e4
commit 008c864751
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 59 additions and 41 deletions

View File

@ -72,13 +72,20 @@ foreach ($tabs as $name=>$value) {
?> ?>
</ul> </ul>
</nav> </nav>
<div id="optionsContainer" class="container-fluid col-sm-offset-2"> <div id="optionsContainer" class="col">
<?php <?php
if ($tab == 'skins') { if ($tab == 'skins') {
?> ?>
<form name="optionsForm" method="get" action="?"> <form name="optionsForm" method="get" action="?">
<input type="hidden" name="view" value="<?php echo $view ?>"/> <input type="hidden" name="view" value="<?php echo $view ?>"/>
<input type="hidden" name="tab" value="<?php echo $tab ?>"/> <input type="hidden" name="tab" value="<?php echo $tab ?>"/>
<div class="row">
<div class="col">
<div id="contentButtons">
<button value="Save" type="submit"><?php echo translate('Save') ?></button>
</div>
</div>
</div>
<div class="form-group row"> <div class="form-group row">
<label for="skin" class="col-sm-3 col-form-label"><?php echo translate('Skin')?></label> <label for="skin" class="col-sm-3 col-form-label"><?php echo translate('Skin')?></label>
<div class="col-sm-6"> <div class="col-sm-6">
@ -107,9 +114,6 @@ foreach (array_map('basename', glob('skins/'.$skin.'/css/*', GLOB_ONLYDIR)) as $
<span class="form-text"><?php echo translate('CSSDescription'); ?></span> <span class="form-text"><?php echo translate('CSSDescription'); ?></span>
</div> </div>
</div> </div>
<div id="contentButtons">
<button value="Save" type="submit"><?php echo translate('Save') ?></button>
</div>
</form> </form>
<?php <?php
} else if ($tab == 'control') { } else if ($tab == 'control') {
@ -145,6 +149,9 @@ foreach (array_map('basename', glob('skins/'.$skin.'/css/*', GLOB_ONLYDIR)) as $
<input type="hidden" name="tab" value="<?php echo $tab ?>"/> <input type="hidden" name="tab" value="<?php echo $tab ?>"/>
<input type="hidden" name="action" value="delete"/> <input type="hidden" name="action" value="delete"/>
<input type="hidden" name="object" value="storage"/> <input type="hidden" name="object" value="storage"/>
<div class="col px-0">
<div class="row">
<div class="col overflow-auto">
<table id="contentTable" class="table table-striped"> <table id="contentTable" class="table table-striped">
<thead class="thead-highlight"> <thead class="thead-highlight">
<tr> <tr>
@ -195,10 +202,17 @@ foreach (array_map('basename', glob('skins/'.$skin.'/css/*', GLOB_ONLYDIR)) as $
?> ?>
</tbody> </tbody>
</table> </table>
</div><!-- .col -->
</div> <!-- .row -->
<div class="row">
<div class="col">
<div id="contentButtons"> <div id="contentButtons">
<button type="button" id="NewStorageBtn" value="<?php echo translate('AddNewStorage') ?>" disabled="disabled"><?php echo translate('AddNewStorage') ?></button> <button type="button" id="NewStorageBtn" value="<?php echo translate('AddNewStorage') ?>" disabled="disabled"><?php echo translate('AddNewStorage') ?></button>
<button type="submit" class="btn-danger" name="deleteBtn" value="Delete" disabled="disabled"><?php echo translate('Delete') ?></button> <button type="submit" class="btn-danger" name="deleteBtn" value="Delete" disabled="disabled"><?php echo translate('Delete') ?></button>
</div> </div>
</div>
</div> <!-- .row -->
</div> <!-- .col px-0 -->
</form> </form>
<?php <?php
} else if ($tab == 'dnsmasq' and file_exists('skins/classic/views/_options_dnsmasq.php')) { } else if ($tab == 'dnsmasq' and file_exists('skins/classic/views/_options_dnsmasq.php')) {
@ -296,9 +310,13 @@ foreach (array_map('basename', glob('skins/'.$skin.'/css/*', GLOB_ONLYDIR)) as $
<input type="hidden" name="view" value="<?php echo $view ?>"/> <input type="hidden" name="view" value="<?php echo $view ?>"/>
<input type="hidden" name="tab" value="<?php echo $tab ?>"/> <input type="hidden" name="tab" value="<?php echo $tab ?>"/>
<input type="hidden" name="action" value="options"/> <input type="hidden" name="action" value="options"/>
<div class="row">
<div class="col">
<div id="contentButtons"> <div id="contentButtons">
<button type="submit" <?php echo $canEdit?'':' disabled="disabled"' ?>><?php echo translate('Save') ?></button> <button type="submit" <?php echo $canEdit?'':' disabled="disabled"' ?>><?php echo translate('Save') ?></button>
</div> </div>
</div>
</div>
<div id="options"> <div id="options">
<?php <?php
if (!isset($configCats[$tab])) { if (!isset($configCats[$tab])) {
@ -381,7 +399,7 @@ foreach (array_map('basename', glob('skins/'.$skin.'/css/*', GLOB_ONLYDIR)) as $
<?php <?php
} }
?> ?>
</div><!-- end #options --> </div><!-- end #optionsContainer -->
</div> <!-- end row --> </div> <!-- end row -->
</div> </div>
<?php xhtmlFooter() ?> <?php xhtmlFooter() ?>