diff --git a/Disco.Web/Areas/Config/Views/DocumentTemplate/Create.cshtml b/Disco.Web/Areas/Config/Views/DocumentTemplate/Create.cshtml index aef1759c..d38fa9a0 100644 --- a/Disco.Web/Areas/Config/Views/DocumentTemplate/Create.cshtml +++ b/Disco.Web/Areas/Config/Views/DocumentTemplate/Create.cshtml @@ -35,7 +35,7 @@ Template PDF -
@Html.ValidationMessage("Template") +
@Html.ValidationMessage("Template") diff --git a/Disco.Web/Areas/Config/Views/DocumentTemplate/Create.generated.cs b/Disco.Web/Areas/Config/Views/DocumentTemplate/Create.generated.cs index 8435a0a8..053c7b29 100644 --- a/Disco.Web/Areas/Config/Views/DocumentTemplate/Create.generated.cs +++ b/Disco.Web/Areas/Config/Views/DocumentTemplate/Create.generated.cs @@ -2,7 +2,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34014 +// Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -27,7 +27,6 @@ namespace Disco.Web.Areas.Config.Views.DocumentTemplate using System.Web.UI; using System.Web.WebPages; using Disco; - using Disco.BI.Extensions; using Disco.Models.Repository; using Disco.Services; using Disco.Services.Authorization; @@ -129,11 +128,13 @@ WriteLiteral(" type=\"file\""); WriteLiteral(" name=\"Template\""); +WriteLiteral(" accept=\".pdf\""); + WriteLiteral(" />
"); #line 38 "..\..\Areas\Config\Views\DocumentTemplate\Create.cshtml" - Write(Html.ValidationMessage("Template")); + Write(Html.ValidationMessage("Template")); #line default @@ -179,15 +180,15 @@ WriteLiteral("\r\n \r\n \r\n"); #line hidden WriteLiteral(" (jt.Id +, Tuple.Create(Tuple.Create("", 2063), Tuple.Create(jt.Id #line default #line hidden -, 2049), false) +, 2063), false) ); WriteLiteral(" class=\"jobSubTypes\""); diff --git a/Disco.Web/Areas/Config/Views/DocumentTemplate/Show.cshtml b/Disco.Web/Areas/Config/Views/DocumentTemplate/Show.cshtml index 2db3175c..60c428c1 100644 --- a/Disco.Web/Areas/Config/Views/DocumentTemplate/Show.cshtml +++ b/Disco.Web/Areas/Config/Views/DocumentTemplate/Show.cshtml @@ -376,7 +376,7 @@ -
+
@@ -386,7 +386,7 @@ @if (Model.TemplatePagesHaveAttachmentId.Any(i => !i)) - { + {
@for (int i = 0; i < Model.TemplatePagesHaveAttachmentId.Count; i++) { @@ -412,7 +412,7 @@
@using (Html.BeginForm(MVC.API.DocumentTemplate.Template(Model.DocumentTemplate.Id, true, null), FormMethod.Post, new { enctype = "multipart/form-data" })) { - + }
diff --git a/Disco.Web/Areas/Config/Views/DocumentTemplate/Show.generated.cs b/Disco.Web/Areas/Config/Views/DocumentTemplate/Show.generated.cs index 534588e4..0cdb2a18 100644 --- a/Disco.Web/Areas/Config/Views/DocumentTemplate/Show.generated.cs +++ b/Disco.Web/Areas/Config/Views/DocumentTemplate/Show.generated.cs @@ -1234,21 +1234,21 @@ WriteLiteral(" style=\"width: 650px; margin: 0 auto 20px;\""); WriteLiteral(">\r\n

PDF Template

\r\n \r\n \r\n " + " \r\n \r\n <" + @@ -1279,7 +1279,7 @@ WriteLiteral(" \r\n - + + }
\r\n \r\n (Url.Action(MVC.API.DocumentTemplate.TemplatePreview(Model.DocumentTemplate.Id)) +, Tuple.Create(Tuple.Create("", 22175), Tuple.Create(Url.Action(MVC.API.DocumentTemplate.TemplatePreview(Model.DocumentTemplate.Id)) #line default #line hidden -, 22179), false) +, 22175), false) ); WriteLiteral(" />\r\n \r\n
\r\n"); #line 388 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml" if (Model.TemplatePagesHaveAttachmentId.Any(i => !i)) - { + { #line default @@ -1423,6 +1423,8 @@ WriteLiteral(" name=\"Template\""); WriteLiteral(" id=\"Config_DocumentTemplates_TemplatePdf_Template\""); +WriteLiteral(" accept=\".pdf\""); + WriteLiteral(" style=\"width: 250px;\""); WriteLiteral(" />\r\n"); @@ -2278,11 +2280,30 @@ WriteLiteral(" "); #line 775 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml" if (canBulkGenerate) { + if (Model.DocumentTemplate.Scope == DocumentTemplate.DocumentTemplateScopes.User) + { + + + #line default + #line hidden + + #line 779 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml" + Write(Html.ActionLinkButton("Bulk Generate", MVC.Config.DocumentTemplate.BulkGenerate(Model.DocumentTemplate.Id))); #line default #line hidden -WriteLiteral("
-

@plugin.Item1.Name +

+ @plugin.Item1.Name @if (installedPlugin == null) { Install @@ -40,11 +41,11 @@ { if (Version.Parse(plugin.Item2.Version) > installedPlugin.Version) { - Update + Update } else { - Installed + Installed } }

@@ -54,13 +55,14 @@
} - + }
@@ -81,7 +83,7 @@ @using (Html.BeginForm(MVC.API.Plugin.InstallLocal(), FormMethod.Post, new { enctype = "multipart/form-data" })) { - + }
diff --git a/Disco.Web/Areas/Config/Views/Plugins/Install.generated.cs b/Disco.Web/Areas/Config/Views/Plugins/Install.generated.cs index 0c17860f..1eb22a24 100644 --- a/Disco.Web/Areas/Config/Views/Plugins/Install.generated.cs +++ b/Disco.Web/Areas/Config/Views/Plugins/Install.generated.cs @@ -2,7 +2,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34014 +// Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -27,7 +27,6 @@ namespace Disco.Web.Areas.Config.Views.Plugins using System.Web.UI; using System.Web.WebPages; using Disco; - using Disco.BI.Extensions; using Disco.Models.Repository; using Disco.Services; using Disco.Services.Authorization; @@ -94,7 +93,7 @@ WriteLiteral("\r\n"); #line 12 "..\..\Areas\Config\Views\Plugins\Install.cshtml" if (Model.Library.Plugins.Count == 0) - { + { #line default @@ -105,7 +104,7 @@ WriteLiteral(" class=\"form\""); WriteLiteral(" style=\"width: 450px; padding: 100px 0;\""); -WriteLiteral(">\r\n

No Plugins are Available

\r\n
\r\n"); +WriteLiteral(">\r\n

No Plugins are Available

\r\n \r\n"); #line 17 "..\..\Areas\Config\Views\Plugins\Install.cshtml" @@ -113,7 +112,7 @@ WriteLiteral(">\r\n

No Plugins are Available

\r\n \r\n \r\n"); WriteLiteral(" \r\n \r\n " + -" \r\n"); +" \r\n"); - #line 58 "..\..\Areas\Config\Views\Plugins\Install.cshtml" + #line 59 "..\..\Areas\Config\Views\Plugins\Install.cshtml" + } @@ -370,7 +370,7 @@ WriteLiteral(">\r\n \r\n WriteLiteral("
\r\n " + " (installedPlugin != null ? " pluginInstalled" : string.Empty +, Tuple.Create(Tuple.Create("", 1513), Tuple.Create(installedPlugin != null ? " pluginInstalled" : string.Empty #line default #line hidden -, 1524), false) +, 1513), false) ); WriteLiteral(">\r\n \r\n "); - #line 34 "..\..\Areas\Config\Views\Plugins\Install.cshtml" - Write(plugin.Item1.Name); + #line 35 "..\..\Areas\Config\Views\Plugins\Install.cshtml" + Write(plugin.Item1.Name); #line default @@ -202,13 +201,13 @@ WriteLiteral(">"); WriteLiteral("\r\n"); - #line 35 "..\..\Areas\Config\Views\Plugins\Install.cshtml" + #line 36 "..\..\Areas\Config\Views\Plugins\Install.cshtml" #line default #line hidden - #line 35 "..\..\Areas\Config\Views\Plugins\Install.cshtml" + #line 36 "..\..\Areas\Config\Views\Plugins\Install.cshtml" if (installedPlugin == null) { @@ -219,20 +218,20 @@ WriteLiteral(" (Url.Action(MVC.API.Plugin.Install(plugin.Item1.Id)) + #line 38 "..\..\Areas\Config\Views\Plugins\Install.cshtml" + , Tuple.Create(Tuple.Create("", 1946), Tuple.Create(Url.Action(MVC.API.Plugin.Install(plugin.Item1.Id)) #line default #line hidden -, 1911), false) +, 1946), false) ); WriteLiteral(">Install\r\n"); - #line 38 "..\..\Areas\Config\Views\Plugins\Install.cshtml" + #line 39 "..\..\Areas\Config\Views\Plugins\Install.cshtml" } else { @@ -242,24 +241,24 @@ WriteLiteral(">Install\r\n"); #line default #line hidden -WriteLiteral(" (Url.Action(MVC.API.Plugin.Update(plugin.Item1.Id)) + #line 44 "..\..\Areas\Config\Views\Plugins\Install.cshtml" + , Tuple.Create(Tuple.Create("", 2419), Tuple.Create(Url.Action(MVC.API.Plugin.Update(plugin.Item1.Id)) #line default #line hidden -, 2380), false) +, 2419), false) ); -WriteLiteral(">Update \r\n"); +WriteLiteral(">Update\r\n"); - #line 44 "..\..\Areas\Config\Views\Plugins\Install.cshtml" + #line 45 "..\..\Areas\Config\Views\Plugins\Install.cshtml" } else { @@ -267,16 +266,16 @@ WriteLiteral(">Update \r\n"); #line default #line hidden -WriteLiteral(" Installed \r\n"); +WriteLiteral(">Installed\r\n"); - #line 48 "..\..\Areas\Config\Views\Plugins\Install.cshtml" + #line 49 "..\..\Areas\Config\Views\Plugins\Install.cshtml" } } @@ -291,7 +290,7 @@ WriteLiteral(" class=\"pluginItemBlurb\""); WriteLiteral(">"); - #line 51 "..\..\Areas\Config\Views\Plugins\Install.cshtml" + #line 52 "..\..\Areas\Config\Views\Plugins\Install.cshtml" Write(new HtmlString(plugin.Item1.Description)); @@ -308,7 +307,7 @@ WriteLiteral(" class=\"pluginId\""); WriteLiteral(">"); - #line 53 "..\..\Areas\Config\Views\Plugins\Install.cshtml" + #line 54 "..\..\Areas\Config\Views\Plugins\Install.cshtml" Write(plugin.Item1.Id); @@ -321,7 +320,7 @@ WriteLiteral(" class=\"pluginVersion\""); WriteLiteral(">v"); - #line 53 "..\..\Areas\Config\Views\Plugins\Install.cshtml" + #line 54 "..\..\Areas\Config\Views\Plugins\Install.cshtml" Write(plugin.Item2.Version); @@ -330,7 +329,7 @@ WriteLiteral(">v"); WriteLiteral(" | "); - #line 53 "..\..\Areas\Config\Views\Plugins\Install.cshtml" + #line 54 "..\..\Areas\Config\Views\Plugins\Install.cshtml" Write(plugin.Item1.Author); @@ -338,14 +337,14 @@ WriteLiteral(" | "); #line hidden WriteLiteral(" | (plugin.Item1.InformationUrl + #line 54 "..\..\Areas\Config\Views\Plugins\Install.cshtml" + , Tuple.Create(Tuple.Create("", 3286), Tuple.Create(plugin.Item1.InformationUrl #line default #line hidden -, 3251), false) +, 3286), false) ); WriteLiteral(" title=\"More Information\""); @@ -358,10 +357,11 @@ WriteLiteral(" class=\"fa fa-external-link\""); WriteLiteral(">\r\n \r\n " + " \r\n
\r\n \r\n"); - #line 61 "..\..\Areas\Config\Views\Plugins\Install.cshtml" + #line 63 "..\..\Areas\Config\Views\Plugins\Install.cshtml" } @@ -379,8 +379,8 @@ WriteLiteral(" \r\n \r\n"); WriteLiteral(" \r\n"); - #line 63 "..\..\Areas\Config\Views\Plugins\Install.cshtml" - + #line 65 "..\..\Areas\Config\Views\Plugins\Install.cshtml" + } @@ -417,7 +417,7 @@ WriteLiteral(">Warning: All plugins run with the same level "om a trusted source.\r\n

\r\n \r\n\r\n"); - #line 77 "..\..\Areas\Config\Views\Plugins\Install.cshtml" + #line 79 "..\..\Areas\Config\Views\Plugins\Install.cshtml" if (canInstallLocal) { @@ -437,13 +437,13 @@ WriteLiteral(" style=\"padding-bottom: 10px;\""); WriteLiteral(">\r\n"); - #line 81 "..\..\Areas\Config\Views\Plugins\Install.cshtml" + #line 83 "..\..\Areas\Config\Views\Plugins\Install.cshtml" #line default #line hidden - #line 81 "..\..\Areas\Config\Views\Plugins\Install.cshtml" + #line 83 "..\..\Areas\Config\Views\Plugins\Install.cshtml" using (Html.BeginForm(MVC.API.Plugin.InstallLocal(), FormMethod.Post, new { enctype = "multipart/form-data" })) { @@ -464,10 +464,12 @@ WriteLiteral(" name=\"Plugin\""); WriteLiteral(" type=\"file\""); +WriteLiteral(" accept=\".discoPlugin\""); + WriteLiteral(" />\r\n"); - #line 85 "..\..\Areas\Config\Views\Plugins\Install.cshtml" + #line 87 "..\..\Areas\Config\Views\Plugins\Install.cshtml" } @@ -491,7 +493,7 @@ WriteLiteral(">Warning: All plugins run with the same level "\n"); - #line 94 "..\..\Areas\Config\Views\Plugins\Install.cshtml" + #line 96 "..\..\Areas\Config\Views\Plugins\Install.cshtml" } @@ -527,13 +529,13 @@ WriteLiteral("