Permissions & Authorization for Users #24
Initial Release; Includes Database and MVC refactoring
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.18033
|
||||
// Runtime Version:4.0.30319.18051
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
@@ -28,12 +28,14 @@ namespace Disco.Web.Areas.Config.Views.DocumentTemplate
|
||||
using System.Web.WebPages;
|
||||
using Disco.BI.Extensions;
|
||||
using Disco.Models.Repository;
|
||||
using Disco.Services.Authorization;
|
||||
using Disco.Services.Web;
|
||||
using Disco.Web;
|
||||
using Disco.Web.Extensions;
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")]
|
||||
[System.Web.WebPages.PageVirtualPathAttribute("~/Areas/Config/Views/DocumentTemplate/UndetectedPages.cshtml")]
|
||||
public partial class UndetectedPages : System.Web.Mvc.WebViewPage<Disco.Web.Areas.Config.Models.DocumentTemplate.UndetectedPagesModel>
|
||||
public partial class UndetectedPages : Disco.Services.Web.WebViewPage<Disco.Web.Areas.Config.Models.DocumentTemplate.UndetectedPagesModel>
|
||||
{
|
||||
public UndetectedPages()
|
||||
{
|
||||
@@ -43,6 +45,8 @@ namespace Disco.Web.Areas.Config.Views.DocumentTemplate
|
||||
|
||||
#line 2 "..\..\Areas\Config\Views\DocumentTemplate\UndetectedPages.cshtml"
|
||||
|
||||
Authorization.Require(Claims.Config.DocumentTemplate.UndetectedPages);
|
||||
|
||||
ViewBag.Title = Html.ToBreadcrumb("Configuration", MVC.Config.Config.Index(), "Document Templates", MVC.Config.DocumentTemplate.Index(), "Undetected Pages");
|
||||
Html.BundleDeferred("~/ClientScripts/Modules/Knockout");
|
||||
Html.BundleDeferred("~/ClientScripts/Modules/jQuery-SignalR");
|
||||
@@ -60,25 +64,25 @@ WriteLiteral(" id=\"noUndetectedPages\"");
|
||||
|
||||
WriteLiteral(" data-bind=\"visible: noUndetectedPages\"");
|
||||
|
||||
WriteLiteral(">\r\n <h3>\r\n No Undetected Pages</h3>\r\n </div>\r\n <ul");
|
||||
WriteLiteral(">\r\n <h3>No Undetected Pages</h3>\r\n </div>\r\n <ul");
|
||||
|
||||
WriteLiteral(" id=\"undetectedPages\"");
|
||||
|
||||
WriteLiteral(" class=\"clearfix\"");
|
||||
|
||||
WriteLiteral(" data-bind=\"visible: !noUndetectedPages(), foreach: {data: undetectedPages}\"");
|
||||
WriteLiteral(" data-bind=\"visible: !noUndetectedPages(), foreach: { data: undetectedPages }\"");
|
||||
|
||||
WriteLiteral(">\r\n <li");
|
||||
|
||||
WriteLiteral(" class=\"undetectedPage\"");
|
||||
|
||||
WriteLiteral(" data-bind=\"style: {backgroundImage: thumbnailUrl}, click: select\"");
|
||||
WriteLiteral(" data-bind=\"style: { backgroundImage: thumbnailUrl }, click: select\"");
|
||||
|
||||
WriteLiteral(">\r\n <div");
|
||||
|
||||
WriteLiteral(" class=\"pageDetails\"");
|
||||
|
||||
WriteLiteral(" data-bind=\"text: timestampFuzzy, attr: {title: timestamp}\"");
|
||||
WriteLiteral(" data-bind=\"text: timestampFuzzy, attr: { title: timestamp }\"");
|
||||
|
||||
WriteLiteral(">\r\n </div>\r\n </li>\r\n </ul>\r\n</div>\r\n<div");
|
||||
|
||||
@@ -90,7 +94,7 @@ WriteLiteral(">\r\n <div");
|
||||
|
||||
WriteLiteral(" class=\"pagePreview\"");
|
||||
|
||||
WriteLiteral(" data-bind=\"style: {backgroundImage: previewUrl}\"");
|
||||
WriteLiteral(" data-bind=\"style: { backgroundImage: previewUrl }\"");
|
||||
|
||||
WriteLiteral(">\r\n </div>\r\n <div");
|
||||
|
||||
@@ -104,7 +108,7 @@ WriteLiteral(" class=\"button\"");
|
||||
|
||||
WriteLiteral(" target=\"_blank\"");
|
||||
|
||||
WriteLiteral(" data-bind=\"attr: {href: sourceUrl}\"");
|
||||
WriteLiteral(" data-bind=\"attr: { href: sourceUrl }\"");
|
||||
|
||||
WriteLiteral(">Download</a>\r\n <a");
|
||||
|
||||
@@ -123,7 +127,7 @@ WriteLiteral(" class=\"actions\"");
|
||||
WriteLiteral(">\r\n Type: ");
|
||||
|
||||
|
||||
#line 27 "..\..\Areas\Config\Views\DocumentTemplate\UndetectedPages.cshtml"
|
||||
#line 28 "..\..\Areas\Config\Views\DocumentTemplate\UndetectedPages.cshtml"
|
||||
Write(Html.DropDownList("dialogDocumentTemplateId", Model.DocumentTemplatesSelectListItems, new Dictionary<string, object> { { "data-bind", "value: dialogTemplateId" } }));
|
||||
|
||||
|
||||
@@ -135,8 +139,8 @@ WriteLiteral(" id=\"dialogDataId\"");
|
||||
|
||||
WriteLiteral(" type=\"text\"");
|
||||
|
||||
WriteLiteral(" data-bind=\"value: dialogDataId, autocomplete: {source: dialogDataIdService, minL" +
|
||||
"ength: 3, position: {my: \'left bottom\', at: \'left top\'}}\"");
|
||||
WriteLiteral(" data-bind=\"value: dialogDataId, autocomplete: { source: dialogDataIdService, min" +
|
||||
"Length: 3, position: { my: \'left bottom\', at: \'left top\' } }\"");
|
||||
|
||||
WriteLiteral(" />\r\n <a");
|
||||
|
||||
@@ -160,7 +164,7 @@ WriteLiteral(" class=\"ui-icon ui-icon-alert\"");
|
||||
|
||||
WriteLiteral(" style=\"float: left; margin: 0 7px 20px 0;\"");
|
||||
|
||||
WriteLiteral("></span>\r\n Are you sure?</p>\r\n</div>\r\n<script");
|
||||
WriteLiteral("></span>\r\n Are you sure?\r\n </p>\r\n</div>\r\n<script");
|
||||
|
||||
WriteLiteral(" type=\"text/javascript\"");
|
||||
|
||||
@@ -193,7 +197,7 @@ WriteLiteral(">\r\n $(function () {\r\n\r\n var vm;\r\n var url
|
||||
" = \'");
|
||||
|
||||
|
||||
#line 63 "..\..\Areas\Config\Views\DocumentTemplate\UndetectedPages.cshtml"
|
||||
#line 65 "..\..\Areas\Config\Views\DocumentTemplate\UndetectedPages.cshtml"
|
||||
Write(new HtmlString(Url.Action(MVC.API.DocumentTemplate.ImporterUndetectedFile(null, false, true))));
|
||||
|
||||
|
||||
@@ -202,7 +206,7 @@ WriteLiteral(">\r\n $(function () {\r\n\r\n var vm;\r\n var url
|
||||
WriteLiteral("\';\r\n var urlUndetectedPagePreview = \'");
|
||||
|
||||
|
||||
#line 64 "..\..\Areas\Config\Views\DocumentTemplate\UndetectedPages.cshtml"
|
||||
#line 66 "..\..\Areas\Config\Views\DocumentTemplate\UndetectedPages.cshtml"
|
||||
Write(new HtmlString(Url.Action(MVC.API.DocumentTemplate.ImporterUndetectedFile(null, false, false))));
|
||||
|
||||
|
||||
@@ -211,7 +215,7 @@ WriteLiteral("\';\r\n var urlUndetectedPagePreview = \'");
|
||||
WriteLiteral("\';\r\n var urlUndetectedPageSource = \'");
|
||||
|
||||
|
||||
#line 65 "..\..\Areas\Config\Views\DocumentTemplate\UndetectedPages.cshtml"
|
||||
#line 67 "..\..\Areas\Config\Views\DocumentTemplate\UndetectedPages.cshtml"
|
||||
Write(new HtmlString(Url.Action(MVC.API.DocumentTemplate.ImporterUndetectedFile(null, true, false))));
|
||||
|
||||
|
||||
@@ -220,7 +224,7 @@ WriteLiteral("\';\r\n var urlUndetectedPageSource = \'");
|
||||
WriteLiteral("\';\r\n var urlDataIdLookupService = \'");
|
||||
|
||||
|
||||
#line 66 "..\..\Areas\Config\Views\DocumentTemplate\UndetectedPages.cshtml"
|
||||
#line 68 "..\..\Areas\Config\Views\DocumentTemplate\UndetectedPages.cshtml"
|
||||
Write(Url.Action(MVC.API.DocumentTemplate.ImporterUndetectedDataIdLookup()));
|
||||
|
||||
|
||||
@@ -229,7 +233,7 @@ WriteLiteral("\';\r\n var urlDataIdLookupService = \'");
|
||||
WriteLiteral("/\';\r\n var urlImporterUndetectedAssign = \'");
|
||||
|
||||
|
||||
#line 67 "..\..\Areas\Config\Views\DocumentTemplate\UndetectedPages.cshtml"
|
||||
#line 69 "..\..\Areas\Config\Views\DocumentTemplate\UndetectedPages.cshtml"
|
||||
Write(Url.Action(MVC.API.DocumentTemplate.ImporterUndetectedAssign()));
|
||||
|
||||
|
||||
@@ -238,7 +242,7 @@ WriteLiteral("/\';\r\n var urlImporterUndetectedAssign = \'");
|
||||
WriteLiteral("/\';\r\n var urlImporterUndetectedDelete = \'");
|
||||
|
||||
|
||||
#line 68 "..\..\Areas\Config\Views\DocumentTemplate\UndetectedPages.cshtml"
|
||||
#line 70 "..\..\Areas\Config\Views\DocumentTemplate\UndetectedPages.cshtml"
|
||||
Write(Url.Action(MVC.API.DocumentTemplate.ImporterUndetectedDelete()));
|
||||
|
||||
|
||||
@@ -318,7 +322,7 @@ WriteLiteral("/\';\r\n var $undetectedPageDialog = $(\'#undetectedPageDia
|
||||
"m = new pageViewModel();\r\n\r\n $.ajax({\r\n url: \'");
|
||||
|
||||
|
||||
#line 202 "..\..\Areas\Config\Views\DocumentTemplate\UndetectedPages.cshtml"
|
||||
#line 204 "..\..\Areas\Config\Views\DocumentTemplate\UndetectedPages.cshtml"
|
||||
Write(Url.Action(MVC.API.DocumentTemplate.ImporterUndetectedFiles()));
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user