Sample Table Style

Changed the style of the add/manage users table.
pull/87/head
Justin Gray 2016-01-17 01:31:46 -06:00
parent 0d57a78b74
commit 84d21ab655
3 changed files with 37 additions and 2 deletions

31
static/css/main.css vendored
View File

@ -341,3 +341,34 @@
float:none !important; float:none !important;
} }
} }
/* Table Styling */
.modal-content .dataTable tbody td {
font-size: 16px;/* Smaller font on modal tables */
}
.dataTables_info{
font-size: 15px;
}
/* Sort Icons */
table.dataTable thead .sorting:after, table.dataTable thead .sorting_asc:after, table.dataTable thead .sorting_desc:after {
font-family: 'FontAwesome' !important;
position: relative !important;
display: initial !important;
top: initial!important;
right: initial!important;
left: 6px;
color: #1abc9c;
}
table.dataTable thead .sorting:after{
content: "\f0dc" !important;
}
table.dataTable thead .sorting_asc:after {
content: "\f0de" !important;
opacity: .8 !important;
}
table.dataTable thead .sorting_desc:after {
content: "\f0dd" !important;
opacity: .8 !important;
}

View File

@ -52,7 +52,11 @@ function dismiss(){
} }
function edit(idx){ function edit(idx){
targets = $("#targetsTable").dataTable() targets = $("#targetsTable").dataTable({
columnDefs: [
{ orderable: false, targets: -1 }
]
})
$("#modalSubmit").unbind('click').click(function(){save(idx)}) $("#modalSubmit").unbind('click').click(function(){save(idx)})
if (idx == -1) { if (idx == -1) {
group = {} group = {}

View File

@ -94,7 +94,7 @@
</form> </form>
</div> </div>
<br /> <br />
<table id="targetsTable" class="table table-hover table-striped"> <table id="targetsTable" class="table table-hover table-striped table-condensed">
<thead> <thead>
<tr> <tr>
<th>First Name</th> <th>First Name</th>