| | 1 | | @using MUNity.Base |
| | 2 | | @using Microsoft.EntityFrameworkCore |
| | 3 | |
|
| | 4 | | @inject MUNity.Database.Context.MunityContext context |
| | 5 | |
|
| | 6 | | <div class="mailbox-content-header"> |
| | 7 | | <!-- BEGIN btn-toolbar --> |
| | 8 | | <div class="btn-toolbar align-items-center"> |
| | 9 | | <button class="btn btn-sm btn-white me-2"><i class="fa fa-redo"></i></button> |
| | 10 | | <div class="w-100 d-sm-none d-block mb-2 hide" data-email-action="divider"></div> |
| | 11 | | <!-- BEGIN btn-group --> |
| | 12 | | <div class="btn-group"> |
| | 13 | | <button class="btn btn-sm btn-white hide" data-email-action="delete"><i class="fa fa-times me-1"></i> <span |
| | 14 | | <button class="btn btn-sm btn-white hide" data-email-action="archive"><i class="fa fa-folder me-1"></i> <spa |
| | 15 | | <button class="btn btn-sm btn-white hide" data-email-action="archive"><i class="fa fa-trash me-1"></i> <span |
| | 16 | | </div> |
| | 17 | | <!-- END btn-group --> |
| | 18 | | <!-- BEGIN btn-group --> |
| | 19 | | <div class="btn-group ms-auto"> |
| | 20 | | <button class="btn btn-white btn-sm"> |
| | 21 | | <i class="fa fa-chevron-left"></i> |
| | 22 | | </button> |
| | 23 | | <button class="btn btn-white btn-sm"> |
| | 24 | | <i class="fa fa-chevron-right"></i> |
| | 25 | | </button> |
| | 26 | | </div> |
| | 27 | | <!-- END btn-group --> |
| | 28 | | </div> |
| | 29 | | <!-- END btn-toolbar --> |
| | 30 | | </div> |
| | 31 | | <div class="mailbox-content-body"> |
| | 32 | | <div class="ps ps--active-y" style="height: 100%;"> |
| | 33 | | <!-- BEGIN list-email --> |
| | 34 | | <ul class="list-group list-group-lg no-radius list-email"> |
| 0 | 35 | | @foreach (var application in context.DelegationApplications |
| 0 | 36 | | .Include(n => n.DelegationWishes) |
| 0 | 37 | | .ThenInclude(n => n.Delegation) |
| 0 | 38 | | .Include(n => n.FormulaInputs) |
| 0 | 39 | | .Include(n => n.Users) |
| 0 | 40 | | .ThenInclude(n => n.User) |
| 0 | 41 | | .Where(n => n.DelegationWishes.Any(a => a.Delegation.Conference.ConferenceId == ConferenceId))) |
| 0 | 42 | | { |
| | 43 | | <li class="list-group-item @((application.Status == ApplicationStatuses.Pending) ? "unread" : null)"> |
| | 44 | | @*<div class="email-checkbox"> |
| | 45 | | <div class="form-check"> |
| | 46 | | <input type="checkbox" class="form-check-input" data-checked="email-checkbox" id="emailC |
| | 47 | | <label class="form-check-label" for="emailCheckbox1"></label> |
| | 48 | | </div> |
| | 49 | | </div>*@ |
| | 50 | | <a href="/c/manageapplications/@ConferenceId/application/@application.DelegationApplicationId" class |
| | 51 | | <span class="text-white">F</span> |
| | 52 | | </a> |
| | 53 | | <div class="email-info"> |
| | 54 | | <a href="/c/manageapplications/@ConferenceId/application/@application.DelegationApplicationId"> |
| 0 | 55 | | <span class="email-sender">DelegationWishesbewerbung @application.Users.Count Benutzer </spa |
| 0 | 56 | | <span class="email-title">@application.FormulaInputs?.FirstOrDefault()?.Value</span> |
| 0 | 57 | | <span class="email-desc">@string.Join(", ", application.Users.Select(a => a.User.Forename + |
| 0 | 58 | | <span class="email-time">@application.ApplyDate.ToShortDateString()</span> |
| | 59 | | </a> |
| | 60 | | </div> |
| | 61 | | </li> |
| 0 | 62 | | } |
| | 63 | |
|
| | 64 | | </ul> |
| | 65 | | <!-- END list-email --> |
| | 66 | | <div class="ps__rail-x" style="left: 0px; bottom: 0px;"><div class="ps__thumb-x" tabindex="0" style="left: 0px; |
| | 67 | | </div> |
| | 68 | | </div> |
| | 69 | | <div class="mailbox-content-footer d-flex align-items-center"> |
| 0 | 70 | | <div class="text-inverse fw-bold">@context.DelegationApplications.Count(n => n.DelegationWishes.Any(a => a.Delegatio |
| | 71 | | <div class="btn-group ms-auto"> |
| | 72 | | <button class="btn btn-white btn-sm"> |
| | 73 | | <i class="fa fa-fw fa-chevron-left"></i> |
| | 74 | | </button> |
| | 75 | | <button class="btn btn-white btn-sm"> |
| | 76 | | <i class="fa fa-fw fa-chevron-right"></i> |
| | 77 | | </button> |
| | 78 | | </div> |
| | 79 | | </div> |
| | 80 | |
|
| | 81 | | @code { |
| 0 | 82 | | [Parameter] public string ConferenceId { get; set; } |
| | 83 | |
|
| 0 | 84 | | [Parameter] public EventCallback<int> ApplicationSelected { get; set; } |
| | 85 | | } |