Skip to content

Commit

Permalink
Update - Ajout d'un lien pour télécharger l'image originale d'un prod…
Browse files Browse the repository at this point in the history
…uit depuis manage
  • Loading branch information
noelmugnier committed Dec 20, 2020
1 parent 5359c02 commit 7c47a8d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions Sheaft.Web.Manage/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ public void ConfigureServices(IServiceCollection services)
services.AddScoped<ISheaftMediatr, SheaftMediatr>();
services.AddScoped<IAuthService, AuthService>();
services.AddScoped<IFeesService, FeesService>();
services.AddScoped<ICapingDeliveriesService, CapingDeliveriesService>();

services.AddScoped<IAgreementQueries, AgreementQueries>();
services.AddScoped<IBusinessQueries, BusinessQueries>();
Expand Down
4 changes: 4 additions & 0 deletions Sheaft.Web.Manage/Views/Products/Edit.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@
{
<img src="@Model.Picture" height="100" />
}
@if (!string.IsNullOrWhiteSpace(Model.Picture))
{
<a href="@Model.Picture.Replace(Sheaft.Core.Models.PictureSize.SMALL, Sheaft.Core.Models.PictureSize.ORIGINAL).Replace(Sheaft.Core.Models.PictureSize.MEDIUM, Sheaft.Core.Models.PictureSize.ORIGINAL).Replace(Sheaft.Core.Models.PictureSize.LARGE, Sheaft.Core.Models.PictureSize.ORIGINAL)">Download original picture</a>
}
@Html.TextBoxFor(c => c.Picture, new { @class = "form-control", @type = "file" })
</div>
<div class="form-group">
Expand Down

0 comments on commit 7c47a8d

Please sign in to comment.