Skip to content

Commit

Permalink
feat: Show closing date for team application (#178)
Browse files Browse the repository at this point in the history
chore: Update images in League.Demo
  • Loading branch information
axunonb authored Jun 30, 2024
1 parent b5418aa commit e39625b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
Binary file modified League.Demo/wwwroot/images/home_welcome_carousel-02.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified League.Demo/wwwroot/images/home_welcome_carousel-03.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified League.Demo/wwwroot/images/home_welcome_carousel-04.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions League/Views/TeamApplication/List.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@
}
<div class="mb-0 pb-1">
<h2 id="@tableDescriptionId" class="h2">@ViewData["Title"]</h2>
<hr class="mb-" />
<hr class="mb-4" />
<partial name="@nameof(League.Views.ViewNames.TeamApplication._TeamApplicationMessagesPartial)" />
@if (TenantContext.TournamentContext.ApplicationAllowed)
{
<a asp-controller="@nameof(League.Controllers.TeamApplication)" asp-action="@nameof(League.Controllers.TeamApplication.Start)" asp-route-tenant="@tenantUrlSegment" class="btn btn-primary mb-2">@Localizer["Register team now"]</a>
<span class="ms-5 text-success">@(Localizer["Closing date"]): @Model.TimeZoneConverter.ToZonedTime(TenantContext.TournamentContext.ApplicationDeadline)?.DateTimeOffset.DateTime.ToShortDateString()</span>
}
else
{
Expand All @@ -33,7 +34,7 @@
return;
}

<div class="table-responsive mb-2">
<div class="table-responsive mb-2 mt-2">
@* Wrapping this way make tables responsive and 100% width *@
<table id="team-list" class="table table-sm table-light mb-0" aria-describedby="@tableDescriptionId">
<thead class="rounded">
Expand Down
3 changes: 3 additions & 0 deletions League/Views/TeamApplication/List.de.resx
Original file line number Diff line number Diff line change
Expand Up @@ -141,4 +141,7 @@
<data name="The registration deadline for this season has unfortunately already expired" xml:space="preserve">
<value>Die Anmeldefrist für die diese Saison ist leider bereits abgelaufen</value>
</data>
<data name="Closing date" xml:space="preserve">
<value>Anmeldeschluss</value>
</data>
</root>

0 comments on commit e39625b

Please sign in to comment.