public override void Execute() { #line 3 "..\..\Views\Packages\VerifyPackage.cshtml" ViewBag.Tab = "Upload Your Package"; #line default #line hidden WriteLiteral("\r\n \r\n<h1 class=\"page-heading\">Verify Details & Submit</h1>\r\n\r\n"); #line 10 "..\..\Views\Packages\VerifyPackage.cshtml" Write(ViewHelpers.UploadSequence(2)); #line default #line hidden WriteLiteral(@" <h2>Verify Details</h2> <p class=""long note""> These package details are read from the package file and cannot be changed. If anything below is incorrect, click Cancel and upload a correct package. </p> <ul id=""packageDetails""> <li> <h3>Package ID</h3> <p>"); #line 22 "..\..\Views\Packages\VerifyPackage.cshtml" Write(Model.Id); #line default #line hidden WriteLiteral("</p>\r\n </li>\r\n <li>\r\n <h3>Version</h3>\r\n <p>"); #line 26 "..\..\Views\Packages\VerifyPackage.cshtml" Write(Model.Version); #line default #line hidden WriteLiteral("</p>\r\n </li>\r\n"); #line 28 "..\..\Views\Packages\VerifyPackage.cshtml" if (!String.IsNullOrEmpty(Model.Title)) { #line default #line hidden WriteLiteral(" <li>\r\n <h3>Title</h3>\r\n <p>"); #line 31 "..\..\Views\Packages\VerifyPackage.cshtml" Write(Model.Title); #line default #line hidden WriteLiteral("</p>\r\n </li>\r\n"); #line 33 "..\..\Views\Packages\VerifyPackage.cshtml" } #line default #line hidden WriteLiteral(" <li>\r\n <h3>Description</h3>\r\n <p>"); #line 36 "..\..\Views\Packages\VerifyPackage.cshtml" Write(Model.Description); #line default #line hidden WriteLiteral("</p>\r\n </li>\r\n <li>\r\n <h3>Authors</h3>\r\n <p>"); #line 40 "..\..\Views\Packages\VerifyPackage.cshtml" Write(Model.Authors); #line default #line hidden WriteLiteral("</p>\r\n </li>\r\n"); #line 42 "..\..\Views\Packages\VerifyPackage.cshtml" if (!String.IsNullOrEmpty(Model.Tags)) { #line default #line hidden WriteLiteral(" <li>\r\n <h3>Tags</h3>\r\n <p>"); #line 45 "..\..\Views\Packages\VerifyPackage.cshtml" Write(Model.Tags); #line default #line hidden WriteLiteral("</p>\r\n </li>\r\n"); #line 47 "..\..\Views\Packages\VerifyPackage.cshtml" } #line default #line hidden #line 48 "..\..\Views\Packages\VerifyPackage.cshtml" if (!String.IsNullOrEmpty(Model.LicenseUrl)) { #line default #line hidden WriteLiteral(" <li>\r\n <h3>License URL</h3>\r\n <p>\r\n"); #line 52 "..\..\Views\Packages\VerifyPackage.cshtml" if (Model.RequiresLicenseAcceptance) { #line default #line hidden WriteLiteral("Acceptance of license required: "); #line 52 "..\..\Views\Packages\VerifyPackage.cshtml" } #line default #line hidden WriteLiteral(" <a href=\""); #line 53 "..\..\Views\Packages\VerifyPackage.cshtml" Write(Model.LicenseUrl); #line default #line hidden WriteLiteral("\" target=\"_blank\">"); #line 53 "..\..\Views\Packages\VerifyPackage.cshtml" Write(Model.LicenseUrl); #line default #line hidden WriteLiteral("</a>\r\n \r\n </p>\r\n </li>\r\n"); #line 57 "..\..\Views\Packages\VerifyPackage.cshtml" } #line default #line hidden #line 58 "..\..\Views\Packages\VerifyPackage.cshtml" if (!String.IsNullOrEmpty(Model.ProjectUrl)) { #line default #line hidden WriteLiteral(" <li>\r\n <h3>Project URL</h3>\r\n <p><a href=\""); #line 61 "..\..\Views\Packages\VerifyPackage.cshtml" Write(Model.ProjectUrl); #line default #line hidden WriteLiteral("\" target=\"_blank\">"); #line 61 "..\..\Views\Packages\VerifyPackage.cshtml" Write(Model.ProjectUrl); #line default #line hidden WriteLiteral("</a></p>\r\n </li>\r\n"); #line 63 "..\..\Views\Packages\VerifyPackage.cshtml" } #line default #line hidden WriteLiteral("</ul>\r\n\r\n\r\n<h2>Submit Package</h2>\r\n"); #line 68 "..\..\Views\Packages\VerifyPackage.cshtml" using (Html.BeginForm()) { #line default #line hidden WriteLiteral("<fieldset class=\"form\">\r\n <legend>Submit Package</legend>\r\n "); #line 71 "..\..\Views\Packages\VerifyPackage.cshtml" Write(Html.AntiForgeryToken()); #line default #line hidden WriteLiteral("\r\n <div class=\"form-field\">\r\n "); #line 73 "..\..\Views\Packages\VerifyPackage.cshtml" Write(Html.EditorFor(package => package.Listed)); #line default #line hidden WriteLiteral("\r\n <label for=\"Listed\" class=\"checkbox\">\r\n List this package in" + " search results. \r\n </label>\r\n </div>\r\n <input type=\"submit\" value=" + "\"Submit\" title=\"Verify Details & Submit\" /> \r\n <a class=\"cancel\" href=\""); #line 79 "..\..\Views\Packages\VerifyPackage.cshtml" Write(Url.Action(MVC.Packages.CancelUpload())); #line default #line hidden WriteLiteral("\" title=\"Cancel the upload in progress.\">Cancel</a>\r\n</fieldset>\r\n"); #line 81 "..\..\Views\Packages\VerifyPackage.cshtml" } #line default #line hidden WriteLiteral("\r\n"); DefineSection("BottomScripts", () => { WriteLiteral(@" <script> $(function() { $('a.cancel').click(function () { var $anchor = $(this); var $form = $anchor.parents('form'); $form.attr('action', $anchor.attr('href')); $form.submit(); return false; }); }); </script> "); }); WriteLiteral("\r\n\r\n"); }
public override void Execute() { #line 3 "..\..\Views\Packages\UploadPackage.cshtml" ViewBag.Tab = "Upload Your Package"; #line default #line hidden WriteLiteral("\r\n<h1 class=\"page-heading\">Upload Your Package</h1>\r\n\r\n"); #line 9 "..\..\Views\Packages\UploadPackage.cshtml" Write(ViewHelpers.UploadSequence(1)); #line default #line hidden WriteLiteral("\r\n\r\n"); #line 11 "..\..\Views\Packages\UploadPackage.cshtml" using (Html.BeginForm("UploadPackage", "Packages", FormMethod.Post, new { enctype = "multipart/form-data" })){ #line default #line hidden WriteLiteral(" <fieldset class=\"form\">\r\n <legend>Upload a Package</legend>\r\n "); #line 14 "..\..\Views\Packages\UploadPackage.cshtml" Write(Html.AntiForgeryToken()); #line default #line hidden WriteLiteral("\r\n "); #line 15 "..\..\Views\Packages\UploadPackage.cshtml" Write(Html.ValidationSummary(true)); #line default #line hidden WriteLiteral(@" <p class=""message"">Your package file will be uploaded and hosted on the NuGet Gallery server (NuGet.org).</p> <div class=""form-field""> <label for=""PackageFile"">Choose a package...</label> <input type=""file"" name=""PackageFile"" /> </div> <input type=""submit"" value=""Upload"" title=""Upload the package."" /> </fieldset> "); #line 24 "..\..\Views\Packages\UploadPackage.cshtml" } #line default #line hidden }