Finished styling on the logger for now. #59

This commit is contained in:
tidusjar 2016-03-24 23:16:55 +00:00
commit b96087d089
21 changed files with 19906 additions and 47 deletions

View file

@ -80,7 +80,7 @@
<div class="form-group">
<label for="select" class="control-label">Quality Profiles</label>
<div id="profiles">
<select class="form-control" id="select"></select>
<select class="form-control form-control-custom" id="select"></select>
</div>
</div>
<br/>

View file

@ -1,4 +1,7 @@
@Html.Partial("_Sidebar")
<link rel="stylesheet" type="text/css" href="~/Content/dataTables.bootstrap.css" />
<script type="text/javascript" src="~/Content/datatables.min.js"></script>
<div class="col-sm-8 col-sm-push-1">
<fieldset>
@ -25,41 +28,17 @@
</div>
</form>
<table class="table table-striped table-hover table-responsive">
<tr>
<th>Message</th>
<th>Logger</th>
<th>Exception</th>
<th>Callsite</th>
<th>Log Level</th>
<th>Date</th>
</tr>
@foreach (var m in Model)
{
<table id="example" class="table table-striped table-hover table-responsive">
<thead>
<tr>
<td>
@m.Message
</td>
<td>
@m.Logger
</td>
<td>
@m.Exception
</td>
<td>
@m.Callsite
</td>
<td>
@m.Level
</td>
<td>
@m.Date
</td>
<th>Message</th>
<th>Area</th>
<th>Log Level</th>
<th>Date</th>
</tr>
}
</thead>
</table>
</fieldset>
</div>
@ -68,6 +47,17 @@
<script>
$(function () {
$('#example').DataTable({
"ajax": "/admin/loadlogs",
"columns": [
{ "data": "message" },
{ "data": "logger" },
{ "data": "level" },
{ "data": "dateString" }
],
"order": [[3, "desc"]]
});
$.ajax({
type: "get",
@ -88,7 +78,7 @@
$('#save').click(function (e) {
e.preventDefault();
var logLevel = $("#logLevel option:selected").val();
var $form = $("#mainForm");

View file

@ -72,9 +72,9 @@
</div>
</div>
<div class="form-group">
<label for="profiles" class="control-label">Quality Profiles</label>
<label for="profiles" class="control-label ">Quality Profiles</label>
<div id="profiles">
<select class="form-control" value="selected">
<select class="form-control form-control-custom" value="selected">
<option id="default" value="default">Use Deafult</option>
<option id="sdtv" value="sdtv">SD TV</option>
<option id="sddvd" value="sddvd">SD DVD</option>

View file

@ -78,7 +78,7 @@
<div class="form-group">
<label for="select" class="control-label">Quality Profiles</label>
<div id="profiles">
<select class="form-control" id="select"></select>
<select class="form-control form-control-custom" id="select"></select>
</div>
</div>