mirror of
https://github.com/sismics/docs.git
synced 2024-11-22 14:07:55 +01:00
Display tags on documents list
This commit is contained in:
parent
28fe7c8b02
commit
395b528b4b
@ -1,3 +1,2 @@
|
|||||||
- Users administration (client)
|
- Users administration (client)
|
||||||
- Tag color (client/server)
|
- Tag color (client/server)
|
||||||
- Display tags on documents list (client)
|
|
@ -1,14 +1,17 @@
|
|||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="row-fluid">
|
<div class="row-fluid">
|
||||||
<div class="span4 well">
|
<div class="span4 well">
|
||||||
|
|
||||||
<p class="text-center">
|
<p class="text-center">
|
||||||
<button class="btn btn-primary" type="button" ng-click="addDocument()"><span class="icon-plus icon-white"></span> Add a document</button>
|
<button class="btn btn-primary" type="button" ng-click="addDocument()"><span class="icon-plus icon-white"></span> Add a document</button>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p class="input-prepend input-append text-center input-block-level">
|
<p class="input-prepend input-append text-center input-block-level">
|
||||||
<span class="add-on"><span class="icon-search"></span></span>
|
<span class="add-on"><span class="icon-search"></span></span>
|
||||||
<input type="text" placeholder="Search" ng-model="search.query" />
|
<input type="text" placeholder="Search" ng-model="search.query" />
|
||||||
<button class="btn" ng-click="isAdvancedSearchCollapsed = !isAdvancedSearchCollapsed">More <span class="caret"></span></button>
|
<button class="btn" ng-click="isAdvancedSearchCollapsed = !isAdvancedSearchCollapsed">More <span class="caret"></span></button>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div collapse="isAdvancedSearchCollapsed">
|
<div collapse="isAdvancedSearchCollapsed">
|
||||||
<div class="well well-small">
|
<div class="well well-small">
|
||||||
<form class="form-horizontal">
|
<form class="form-horizontal">
|
||||||
@ -32,26 +35,34 @@
|
|||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<table class="table table-striped table-hover table-documents">
|
<table class="table table-striped table-hover table-documents">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th ng-click="sortDocuments(1)"><span class="icon-chevron-{{ sortColumn == 1 ? (asc ? 'down' : 'up') : '' }}"></span> Title</th>
|
<th class="span6" ng-click="sortDocuments(1)"><span class="icon-chevron-{{ sortColumn == 1 ? (asc ? 'down' : 'up') : '' }}"></span> Title</th>
|
||||||
<th ng-click="sortDocuments(3)"><span class="icon-chevron-{{ sortColumn == 3 ? (asc ? 'down' : 'up') : '' }}"></span> Creation date</th>
|
<th class="span3" ng-click="sortDocuments(3)"><span class="icon-chevron-{{ sortColumn == 3 ? (asc ? 'down' : 'up') : '' }}"></span> Creation date</th>
|
||||||
|
<th class="span3 hidden-phone">Tags</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr ng-click="viewDocument(document.id)" ng-repeat="document in documents">
|
<tr ng-click="viewDocument(document.id)" ng-repeat="document in documents">
|
||||||
<td>{{ document.title }}</td>
|
<td>{{ document.title }}</td>
|
||||||
<td>{{ document.create_date | date: 'yyyy-MM-dd' }}</td>
|
<td>{{ document.create_date | date: 'yyyy-MM-dd' }}</td>
|
||||||
|
<td class="hidden-phone cell-tags">
|
||||||
|
<span class="label label-info" ng-repeat="tag in document.tags">{{ tag.name }}</span>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
<pagination num-pages="numPages" max-size="5" current-page="currentPage"></pagination>
|
<pagination num-pages="numPages" max-size="5" current-page="currentPage"></pagination>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="text-right">
|
<div class="text-right">
|
||||||
{{ totalDocuments }} document{{ totalDocuments > 1 ? 's' : '' }} found
|
{{ totalDocuments }} document{{ totalDocuments > 1 ? 's' : '' }} found
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="span8 well">
|
<div class="span8 well">
|
||||||
<div ui-view="document"></div>
|
<div ui-view="document"></div>
|
||||||
|
@ -8,6 +8,18 @@
|
|||||||
tbody tr {
|
tbody tr {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tbody td {
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cell-tags {
|
||||||
|
padding: 2px;
|
||||||
|
|
||||||
|
.label {
|
||||||
|
margin-left: 2px;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Logs list
|
// Logs list
|
||||||
|
Loading…
Reference in New Issue
Block a user