Merge pull request #126 from tehXor/feat-friendly-web-gui
GUI improvements: collapsible tables & password manager compatible login formmaster
commit
d82b26af4d
|
@ -29,7 +29,7 @@ $_SESSION['return_to'] = $_SERVER['REQUEST_URI'];
|
||||||
<label class="sr-only" for="login_user"><?=$lang['login']['username'];?></label>
|
<label class="sr-only" for="login_user"><?=$lang['login']['username'];?></label>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<div class="input-group-addon"><i class="glyphicon glyphicon-user"></i></div>
|
<div class="input-group-addon"><i class="glyphicon glyphicon-user"></i></div>
|
||||||
<input name="login_user" autocorrect="off" autocapitalize="none" type="name" id="login_user" class="form-control" placeholder="<?=$lang['login']['username'];?>" required="" autofocus="">
|
<input name="login_user" autocorrect="off" autocapitalize="none" type="text" id="login_user" class="form-control" placeholder="<?=$lang['login']['username'];?>" required="" autofocus="">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|
|
@ -51,4 +51,16 @@ $(document).ready(function() {
|
||||||
$panel.find('.panel-body input').focus();
|
$panel.find('.panel-body input').focus();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
$('.container').on('click', '.panel-heading .panel-title', function(e){
|
||||||
|
var $this = $(this),
|
||||||
|
$panel = $this.parents('.panel');
|
||||||
|
$panel.find('.table-responsive').slideToggle("fast");
|
||||||
|
});
|
||||||
|
$('.panel-heading .panel-title').addClass('clickable');
|
||||||
|
$('.panel .table-responsive').each(function() {
|
||||||
|
if ($(this).height() > 550) {
|
||||||
|
// If one is too large initially hide all
|
||||||
|
$('.panel .table-responsive').slideUp("fast");
|
||||||
|
}
|
||||||
|
})
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue