authors table view
[angular-drzb] / app / partials / authors.html.ep
diff --git a/app/partials/authors.html.ep b/app/partials/authors.html.ep
new file mode 100644 (file)
index 0000000..d151365
--- /dev/null
@@ -0,0 +1,41 @@
+
+<div ng-show="! ready" class="alert alert-important">
+{{message}}
+</div>
+
+<form ng-controller="AuthorsCtrl" class="form-search" ng-show="ready">
+
+<fieldset>
+<legend>
+Authors
+</legend>
+
+<input class="my-lebel-input search-query" ng-model="search.$" label="Search">
+
+<a class="btn btn-invert" href="" ng-click="reset()">
+<i class="icon-remove"></i></a>
+
+<tt>{{search}}</tt>
+
+{{data.total_rows}} authors
+{{data.distinct_rows}} distinct
+
+</fieldset>
+
+<table ng-show="authors.length" class="table">
+<tr ng-repeat="author in authors | filter:search">
+<td>{{author.value.surname}}</td>
+<td>{{author.value.firstname}}</td>
+<td>{{author.value.organization}}</td>
+<td>{{author.value.email}}</td>
+</tr>
+</table>
+
+% if ( $lang =~ m/x-dev/ ) {
+<pre class="controls-row">
+{{authors}}
+</pre>
+% }
+
+</form>
+