docs update

This commit is contained in:
tmshv committed 2016-02-20 16:49:01 +03:00
1 parent ce2f464520
commit f4bc70cd8b
2 files changed
+15 -2

No files matched your search

+6 -1
View File
@@ -1,6 +1,11 @@
module.exports = function (app) {
app.controller("DocumentsController", function ($scope, docs) {
app.controller("DocumentsController", function ($scope, api, docs) {
$scope.documents = docs.docs;
api.document.awards()
.success(data => {
$scope.awards = data;
});
});
};
+9 -1
View File
@@ -1,3 +1,11 @@
<div class="documents-block" ng-controller="DocumentsController">
<document ng-repeat="doc in documents" document="doc"></document>
<h2>Устав, Лицензия, пр.</h2>
<div class="documents-container">
<document ng-repeat="i in documents" document="i"></document>
</div>
<h2>Награды</h2>
<div class="documents-container">
<award ng-repeat="i in awards" document="i"></award>
</div>
</div>