-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New - Ajout d'un listing des declarations manquantes pour les product…
…eurs approchant les 150€ par mois
- Loading branch information
1 parent
df10ccf
commit 5133667
Showing
5 changed files
with
157 additions
and
34 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
Sheaft.Application.Models/ViewModels/ProducerRequiredDeclarationViewModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using Sheaft.Domain.Enums; | ||
using System; | ||
|
||
namespace Sheaft.Application.Models | ||
{ | ||
public class ProducerRequiredDeclarationViewModel | ||
{ | ||
public Guid Id { get; set; } | ||
public string Email { get; set; } | ||
public string Phone { get; set; } | ||
public string Name { get; set; } | ||
public decimal Total { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
@model IEnumerable<ProducerRequiredDeclarationViewModel> | ||
@{ | ||
ViewData["Title"] = "Declarations"; | ||
int take = ViewBag.Take; | ||
int currentPage = ViewBag.Page; | ||
Guid? imperonatingId = Context.Request.ImpersonificationId(); | ||
} | ||
|
||
<div class="container"> | ||
<h2 class="display-5">DeliveryModes</h2> | ||
<br /> | ||
|
||
<table class="table table-hover"> | ||
<thead class="thead-dark"> | ||
<tr> | ||
<th scope="col">Name</th> | ||
<th scope="col">Email</th> | ||
<th scope="col">Phone</th> | ||
<th scope="col">Total</th> | ||
<th scope="col"> | ||
</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
@foreach (var entity in Model) | ||
{ | ||
<tr> | ||
<th scope="row">@entity.Name</th> | ||
<td>@entity.Email</td> | ||
<td>@entity.Phone</td> | ||
<td>@(entity.Total)€</td> | ||
<td> | ||
<a asp-controller="Producers" asp-action="Edit" asp-route-id="@entity.Id" class="btn btn-info"> | ||
<i class="fa fa-pen"></i> | ||
</a> | ||
</td> | ||
</tr> | ||
} | ||
</tbody> | ||
<tfoot> | ||
<tr class="text-center"> | ||
<td colspan="6"> | ||
@if (currentPage >= 1) | ||
{ | ||
<a asp-controller="Producers" asp-action="Index" asp-route-take="@take" asp-route-page="@(currentPage-1)" class="btn btn-outline-secondary"> | ||
<i class="fa fa-caret-left"></i> | ||
</a> | ||
} | ||
@if (take == Model.Count()) | ||
{ | ||
<a asp-controller="Producers" asp-action="Index" asp-route-take="@take" asp-route-page="@(currentPage+1)" class="btn btn-outline-secondary"> | ||
<i class="fa fa-caret-right"></i> | ||
</a> | ||
} | ||
</td> | ||
</tr> | ||
</tfoot> | ||
</table> | ||
</div> |