simple document simplification
This commit is contained in:
1 parent
467753a2e1
commit
d892105e9f
4 files changed
+16
-53
No files matched your search
@@ -11,6 +11,7 @@ module.exports = function (app) {
|
|||||||
$scope.document.currentPage = 0;
|
$scope.document.currentPage = 0;
|
||||||
|
|
||||||
$scope.viewDocument = function () {
|
$scope.viewDocument = function () {
|
||||||
|
return "/views/document-image.html";
|
||||||
switch ($scope.document.viewer) {
|
switch ($scope.document.viewer) {
|
||||||
case "img-sheet":
|
case "img-sheet":
|
||||||
$scope.showControls = false;
|
$scope.showControls = false;
|
||||||
|
|||||||
+13
-51
@@ -2,85 +2,47 @@
|
|||||||
{
|
{
|
||||||
"name": "statue-2013",
|
"name": "statue-2013",
|
||||||
"title": "устав школы за 2013 год",
|
"title": "устав школы за 2013 год",
|
||||||
"path": "/document/statue-2013",
|
"url": "http://static.shburg.org/art/docs/hudozhka_statue-2013.pdf",
|
||||||
"preview": "http://static.shburg.org/art/graphics/statue-2013-preview.png",
|
"preview": "http://static.shburg.org/art/graphics/statue-2013-preview.png",
|
||||||
"download": "http://static.shburg.org/art/docs/hudozhka_statue-2013.pdf",
|
"files": ["http://static.shburg.org/art/docs/hudozhka_statue-2013.pdf"]
|
||||||
"url": [
|
|
||||||
"http://static.shburg.org/art/html/hudozhka_statue-2013-1.page",
|
|
||||||
"http://static.shburg.org/art/html/hudozhka_statue-2013-2.page",
|
|
||||||
"http://static.shburg.org/art/html/hudozhka_statue-2013-3.page",
|
|
||||||
"http://static.shburg.org/art/html/hudozhka_statue-2013-4.page",
|
|
||||||
"http://static.shburg.org/art/html/hudozhka_statue-2013-5.page",
|
|
||||||
"http://static.shburg.org/art/html/hudozhka_statue-2013-6.page",
|
|
||||||
"http://static.shburg.org/art/html/hudozhka_statue-2013-7.page",
|
|
||||||
"http://static.shburg.org/art/html/hudozhka_statue-2013-8.page",
|
|
||||||
"http://static.shburg.org/art/html/hudozhka_statue-2013-9.page",
|
|
||||||
"http://static.shburg.org/art/html/hudozhka_statue-2013-10.page",
|
|
||||||
"http://static.shburg.org/art/html/hudozhka_statue-2013-11.page",
|
|
||||||
"http://static.shburg.org/art/html/hudozhka_statue-2013-12.page",
|
|
||||||
"http://static.shburg.org/art/html/hudozhka_statue-2013-13.page",
|
|
||||||
"http://static.shburg.org/art/html/hudozhka_statue-2013-14.page",
|
|
||||||
"http://static.shburg.org/art/html/hudozhka_statue-2013-15.page",
|
|
||||||
"http://static.shburg.org/art/html/hudozhka_statue-2013-16.page",
|
|
||||||
"http://static.shburg.org/art/html/hudozhka_statue-2013-17.page",
|
|
||||||
"http://static.shburg.org/art/html/hudozhka_statue-2013-18.page",
|
|
||||||
"http://static.shburg.org/art/html/hudozhka_statue-2013-19.page",
|
|
||||||
"http://static.shburg.org/art/html/hudozhka_statue-2013-20.page",
|
|
||||||
"http://static.shburg.org/art/html/hudozhka_statue-2013-21.page",
|
|
||||||
"http://static.shburg.org/art/html/hudozhka_statue-2013-22.page",
|
|
||||||
"http://static.shburg.org/art/html/hudozhka_statue-2013-23.page",
|
|
||||||
"http://static.shburg.org/art/html/hudozhka_statue-2013-24.page",
|
|
||||||
"http://static.shburg.org/art/html/hudozhka_statue-2013-25.page",
|
|
||||||
"http://static.shburg.org/art/html/hudozhka_statue-2013-26.page",
|
|
||||||
"http://static.shburg.org/art/html/hudozhka_statue-2013-27.page"
|
|
||||||
],
|
|
||||||
"extra": {
|
|
||||||
"style": ["http://static.shburg.org/art/docs/preview/hudozhka_statue-2013.css"]
|
|
||||||
},
|
|
||||||
"viewer": "pdf"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "edu-license",
|
"name": "edu-license",
|
||||||
"title": "образовательная лицензия",
|
"title": "образовательная лицензия",
|
||||||
"path": "/document/edu-license",
|
"url": "/document/edu-license",
|
||||||
"preview": "http://static.shburg.org/art/graphics/license_edu-preview.png",
|
"preview": "http://static.shburg.org/art/graphics/license_edu-preview.png",
|
||||||
"url": [
|
"files": [
|
||||||
"http://static.shburg.org/art/docs/hudozhka_license_edu.jpg",
|
"http://static.shburg.org/art/docs/hudozhka_license_edu.jpg",
|
||||||
"http://static.shburg.org/art/docs/hudozhka_license_edu_back.jpg",
|
"http://static.shburg.org/art/docs/hudozhka_license_edu_back.jpg",
|
||||||
"http://static.shburg.org/art/docs/hudozhka_license_edu_attachment.jpg"
|
"http://static.shburg.org/art/docs/hudozhka_license_edu_attachment.jpg"
|
||||||
],
|
]
|
||||||
"viewer": "img-sheet"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "gov-certificate",
|
"name": "gov-certificate",
|
||||||
"title": "свидетельство о государственной регистрации права",
|
"title": "свидетельство о государственной регистрации права",
|
||||||
"path": "/document/gov-certificate",
|
"url": "/document/gov-certificate",
|
||||||
"preview": "http://static.shburg.org/art/graphics/certificate_gov-preview.png",
|
"preview": "http://static.shburg.org/art/graphics/certificate_gov-preview.png",
|
||||||
"url": ["http://static.shburg.org/art/docs/hudozhka_certificate_gov.jpg"],
|
"files": ["http://static.shburg.org/art/docs/hudozhka_certificate_gov.jpg"]
|
||||||
"viewer": "img-sheet"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "VAT",
|
"name": "VAT",
|
||||||
"title": "ИНН",
|
"title": "ИНН",
|
||||||
"path": "/document/VAT",
|
"url": "/document/VAT",
|
||||||
"preview": "http://static.shburg.org/art/graphics/vatin-preview.png",
|
"preview": "http://static.shburg.org/art/graphics/vatin-preview.png",
|
||||||
"url": ["http://static.shburg.org/art/docs/hudozhka_vatin.jpg"],
|
"files": ["http://static.shburg.org/art/docs/hudozhka_vatin.jpg"]
|
||||||
"viewer": "img-sheet"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "EGRYL1",
|
"name": "EGRYL1",
|
||||||
"title": "свидетельство о внесении в «ЕГРЮЛ»",
|
"title": "свидетельство о внесении в «ЕГРЮЛ»",
|
||||||
"path": "/document/EGRYL1",
|
"url": "/document/EGRYL1",
|
||||||
"preview": "http://static.shburg.org/art/graphics/certificate_egryl1-preview.png",
|
"preview": "http://static.shburg.org/art/graphics/certificate_egryl1-preview.png",
|
||||||
"url": ["http://static.shburg.org/art/docs/hudozhka_certificate_egryl1.jpg"],
|
"files": ["http://static.shburg.org/art/docs/hudozhka_certificate_egryl1.jpg"]
|
||||||
"viewer": "img-sheet"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "EGRYL2",
|
"name": "EGRYL2",
|
||||||
"title": "свидетельство о внесении в «ЕГРЮЛ»",
|
"title": "свидетельство о внесении в «ЕГРЮЛ»",
|
||||||
"path": "/document/EGRYL2",
|
"url": "/document/EGRYL2",
|
||||||
"preview": "http://static.shburg.org/art/graphics/certificate_egryl2-preview.png",
|
"preview": "http://static.shburg.org/art/graphics/certificate_egryl2-preview.png",
|
||||||
"url": ["http://static.shburg.org/art/docs/hudozhka_certificate_egryl2.jpg"],
|
"files": ["http://static.shburg.org/art/docs/hudozhka_certificate_egryl2.jpg"]
|
||||||
"viewer": "img-sheet"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
<div class="main" ng-controller="DocumentsController">
|
<div class="main" ng-controller="DocumentsController">
|
||||||
<div class="docblock"><h2>Лицензии, свидетельства и уставы</h2>
|
<div class="docblock"><h2>Лицензии, свидетельства и уставы</h2>
|
||||||
<div class="doc" ng-repeat="doc in documents">
|
<div class="doc" ng-repeat="doc in documents">
|
||||||
<a href="{{doc.path}}" target="_blank">
|
<a href="{{doc.url}}" target="_blank">
|
||||||
<img ng-src="{{doc.preview}}">
|
<img ng-src="{{doc.preview}}">
|
||||||
<span>{{doc.title | uppercaseFirst}}</span>
|
<span>{{doc.title | uppercaseFirst}}</span>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
<img ng-src="{{url}}" alt="" ng-repeat="url in document.url"/>
|
<img ng-src="{{url}}" alt="" ng-repeat="url in document.files"/>
|
||||||
Reference in new issue
Block a user