1
0
mirror of https://github.com/sismics/docs.git synced 2025-12-20 13:11:41 +00:00

Client side creation and removal of tags

This commit is contained in:
jendib
2013-07-30 01:34:30 +02:00
parent b9f26929cc
commit db8ff759a6
8 changed files with 111 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
<p class="lead">
{{ documents.total }} document{{ documents.total > 1 ? 's' : '' }} in the database
</p>
<h1>
{{ documents.total }} <small>document{{ documents.total > 1 ? 's' : '' }} in the database</small>
</h1>
<blockquote class="pull-right">
<p>There seems to be a kind of order in the universe, in the movement of the stars and the turning of the earth and the changing of the seasons, and even in the cycle of human life. But human life itself is almost pure chaos. Everyone takes his stance, asserts his own rights and feelings, mistaking the motives of others, and his own.</p>

View File

@@ -0,0 +1,29 @@
<div class="container-fluid">
<div class="row-fluid">
<div class="span3 well text-center">
<p class="input-prepend input-append">
<span class="add-on"><span class="icon-plus"></span></span>
<input type="text" placeholder="Tag name" ng-model="tag.name" ui-keyup="{'enter':'addTag()'}">
<button type="submit" class="btn btn-primary" ng-click="addTag()">Add</button>
</p>
<h1>{{ tags.length }} <small>Tags</small></h1>
<p class="input-prepend">
<span class="add-on"><span class="icon-search"></span></span>
<input type="text" placeholder="Search" ng-model="search.name">
</p>
<table class="table table-striped table-hover table-tags">
<tbody>
<tr ng-repeat="tag in tags | filter:search">
<td>{{ tag.name }}</td>
<td><button class="btn btn-danger pull-right" ng-click="deleteTag(tag)"><span class="icon-trash icon-white"></span></button></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>