make navbar static instead of fixed, sync up dark theme, and improve storage editing styles

This commit is contained in:
Isaac Connor 2017-01-30 21:16:21 -05:00
parent 7ab6818fa0
commit f3378207c0
9 changed files with 32 additions and 24 deletions

View File

@ -0,0 +1,3 @@
input[type="url"] {
width: 100%;
}

View File

@ -0,0 +1,3 @@
input[type="url"] {
width: 100%;
}

View File

@ -94,7 +94,3 @@
#consoleTable .colRightButtons input {
margin: 0 8px;
}
body {
padding-top:81px;
}

View File

@ -21,7 +21,3 @@ input.large {
#contentTable.userTable .colMonitor, #contentTable.userTable .colUsername {
text-align: left;
}
body {
padding-top:81px;
}

View File

@ -200,7 +200,7 @@ function getNavBarHTML() {
global $user;
global $bwArray;
?>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar navbar-inverse navbar-static-top">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#main-header-nav" aria-expanded="false">

View File

@ -1,12 +1,9 @@
function validateForm( form, newServer )
{
function validateForm( form, newServer ) {
var errors = new Array();
if ( !form.elements['newServer[Name]'].value )
{
if ( !form.elements['newServer[Name]'].value ) {
errors[errors.length] = "You must supply a name";
}
if ( errors.length )
{
if ( errors.length ) {
alert( errors.join( "\n" ) );
return( false );
}

View File

@ -0,0 +1,14 @@
function validateForm( form, newStorage ) {
var errors = new Array();
if ( !form.elements['newStorage[Name]'].value ) {
errors[errors.length] = "You must supply a name";
}
if ( !form.elements['newStorage[Path]'].value ) {
errors[errors.length] = "You must supply a path";
}
if ( errors.length ) {
alert( errors.join( "\n" ) );
return( false );
}
return( true );
}

View File

@ -240,7 +240,7 @@ elseif ( $tab == "users" )
<input type="hidden" name="tab" value="<?php echo $tab ?>"/>
<input type="hidden" name="action" value="delete"/>
<input type="hidden" name="object" value="storage"/>
<table id="contentTable" class="major storageTable" cellspacing="0">
<table id="contentTable" class="table table-striped" cellspacing="0">
<thead>
<tr>
<th class="colId"><?php echo translate('Id') ?></th>

View File

@ -18,15 +18,14 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
if ( !canEdit( 'System' ) )
{
$view = "error";
if ( !canEdit( 'System' ) ) {
$view = 'error';
return;
}
if ( $_REQUEST['id'] ) {
if ( !($newStorage = dbFetchOne( 'SELECT * FROM Storage WHERE Id = ?', NULL, ARRAY($_REQUEST['id'])) ) ) {
$view = "error";
$view = 'error';
return;
}
} else {
@ -52,17 +51,17 @@ xhtmlHeaders(__FILE__, translate('Storage')." - ".$newStorage['Name'] );
<table id="contentTable" class="major" cellspacing="0">
<tbody>
<tr>
<th scope="row"><?php echo translate('StorageName') ?></th>
<th scope="row"><?php echo translate('Name') ?></th>
<td><input type="text" name="newStorage[Name]" value="<?php echo $newStorage['Name'] ?>"/></td>
</tr>
<tr>
<th scope="row"><?php echo translate('StoragePath') ?></th>
<td><input type="text" name="newStorage[Path]" value="<?php echo $newStorage['Path'] ?>"/></td>
<th scope="row"><?php echo translate('Path') ?></th>
<td><input type="url" name="newStorage[Path]" value="<?php echo $newStorage['Path'] ?>"/></td>
</tr>
</tbody>
</table>
<div id="contentButtons">
<input type="hidden" name="action" value="Save"/>
<input type="hidden" name="action" value="Save"/>
<input type="submit" value="<?php echo translate('Save') ?>"/>
<input type="button" value="<?php echo translate('Cancel') ?>" onclick="closeWindow();"/>
</div>