aboutsummaryrefslogtreecommitdiff
path: root/src/Costasdev.Busurbano.ServiceViewer/Views/Services/ServicesInDay.cshtml
blob: a5ac66f527a5e401560495153eaf15710b766e01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
@model Costasdev.ServiceViewer.Views.Services.ServiceInDayModel
@{
    ViewData["Title"] = "Servicios a realizar en " + Model.Date.ToString("dd 'de' MMMM 'de' yyyy");
}

@section Head
{
    <link rel="stylesheet" href="~/styles/services_in_day.css" />
    <link rel="stylesheet" href="/stylesheets/routecolours.css" />
}

<header>
    <h1>
        @ViewData["Title"]
    </h1>
</header>

<section id="service-cards">
    @foreach (ServicesInDayItem card in Model.Items)
    {
        <article>
            <header>
                <a asp-action="ServiceDetails" asp-route-day="@Model.Date.ToString("yyyy-MM-dd")" asp-route-serviceId="@card.ServiceId">
                    @card.ServiceName
                </a>
            </header>
            <main>
                @card.ShiftStart &rarr; @card.ShiftEnd
            </main>
            <footer>
                @foreach (var cardTripGroup in card.TripGroups)
                {
                    <span class="route-group route-@cardTripGroup.route.SafeId">
                        @cardTripGroup.route.ShortName (@cardTripGroup.count)
                    </span>
                }
            </footer>
        </article>
    }
</section>