table columns list ui

This commit is contained in:
antelle 2016-06-10 22:08:28 +03:00
parent 72ee188351
commit 8990058bca
No known key found for this signature in database
GPG Key ID: 26C38FADD3BDF3CA
5 changed files with 17 additions and 27 deletions

View File

@ -14,6 +14,7 @@ var ListView = Backbone.View.extend({
events: {
'click .list__item': 'itemClick',
'click .list__table-options': 'tableOptionsClick',
'dragstart .list__item': 'itemDragStart'
},
@ -206,6 +207,10 @@ var ListView = Backbone.View.extend({
e.originalEvent.dataTransfer.setData('text/entry', id);
e.originalEvent.dataTransfer.effectAllowed = 'move';
DragDropInfo.dragObject = this.items.get(id);
},
tableOptionsClick: function() {
// TODO: show available columns list
}
});

View File

@ -96,6 +96,17 @@
td, th {
padding: $base-padding;
text-align: left;
&:first-child {
text-align: center;
}
}
th:first-child {
padding: 0;
width: 3em;
}
&-options {
@include icon-btn();
cursor: pointer;
}
}

View File

@ -12,5 +12,4 @@
@import "buttons";
@import "forms";
@import "lists";
@import "tables";
@import "typography";

View File

@ -1,25 +0,0 @@
//table {
// border-collapse: collapse;
// font-feature-settings: "kern", "liga", "tnum";
// margin: $small-spacing 0;
// table-layout: fixed;
// width: 100%;
//}
//
//th {
// @include th { border-bottom: 1px solid light-border-color(); }
// font-weight: 600;
// padding: $small-spacing 0;
// text-align: left;
//}
//
//td {
// @include th { border-bottom: base-border(); }
// padding: $small-spacing 0;
//}
//
//tr,
//td,
//th {
// vertical-align: middle;
//}

View File

@ -1,7 +1,7 @@
<table class="list__table">
<thead>
<tr>
<th></th>
<th><i class="fa fa-bars muted-color list__table-options"></i></th>
<th>{{Res 'title'}}</th>
<th>{{Res 'user'}}</th>
<th>{{Res 'website'}}</th>