Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

Download.cshtml

@model int
@inject IDownloadService downloadService
@using Nop.Services.Media

@{
    //other variables
    var randomNumber = CommonHelper.GenerateRandomInteger();
    var clientId = "download" + randomNumber;
    var download = await downloadService.GetDownloadByIdAsync(Model);

    var disableUrl = Convert.ToBoolean(ViewData["nop.DownloadEditor.DisableUrl"] ?? false);
}

@* register CSS and JS *@





@if (!disableUrl) {
checked="checked" } />
}
value="@(download.DownloadUrl)" } />
@*fine uploader container*@
@*fine uploader template (keep it synchronized to \Content\fineuploader\templates\default.html)*@
@if (download != null) { @T("Admin.Download.DownloadUploadedFile") }
@if (download != null) { @T("Admin.Download.RemoveDownload") } else { }