Skip to content

Commit

Permalink
Schedule view
Browse files Browse the repository at this point in the history
  • Loading branch information
skrawus committed Jun 27, 2024
1 parent e52f3b6 commit 6ce689a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
14 changes: 7 additions & 7 deletions TutorLizard.Web/Views/Browse/Schedule.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<div class="row schedule-container">
<div class="col-sm-6 d-flex flex-column schedule-column">
<h2 class="schedule-subtitle">Jako uczeń</h2>
<h2 class="schedule-subtitle text-center">Jako uczeń</h2>
@if (Model.StudentsSchedule.Count == 0)
{
<div class="schedule-empty">
Expand All @@ -15,9 +15,9 @@
{
foreach (var item in Model.StudentsSchedule)
{
<div class="p-3 my-2 border border-2 schedule-item">
<div class="p-3 my-2 ad-list-item">
<div class="schedule-item-title">
<a asp-action="AdDetails" asp-route-id="@item.AdId">@item.AdTitle</a>
<a asp-action="AdDetails" asp-route-id="@item.AdId" class="title-3">@item.AdTitle</a>
</div>
<div class="h3 schedule-item-datetime">@item.DateTime</div>
<div class="schedule-item-tutor">Nauczyciel: @item.TutorName</div>
Expand All @@ -42,7 +42,7 @@
</div>

<div class="col-sm-6 d-flex flex-column schedule-column">
<h2 class="schedule-subtitle">Jako nauczyciel</h2>
<h2 class="schedule-subtitle text-center">Jako nauczyciel</h2>
@if (Model.TutorsSchedule.Count == 0)
{
<div class="schedule-empty">
Expand All @@ -53,17 +53,17 @@
{
foreach (var item in Model.TutorsSchedule)
{
<div class="p-3 my-2 border border-2 schedule-item">
<div class="p-3 my-2 ad-list-item">
<div class="schedule-item-title">
<a asp-action="AdDetails" asp-route-id="@item.AdId">@item.AdTitle</a>
<a asp-action="AdDetails" asp-route-id="@item.AdId" class="title-3">@item.AdTitle</a>
</div>
<div class="h3 schedule-item-datetime">@item.DateTime</div>
<div class="schedule-item-requests">Liczba zgłoszeń: @item.RequestCount</div>
<div class="schedule-item-accepted-student">
<span>Zapisany uczeń: </span>
@if (item.AcceptedStudentsName is null)
{
<span>Brak</span>
<span class="text-red">Brak</span>
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion TutorLizard.Web/Views/Home/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</div>
<div class="custom-padding">
<ul class="list-group btn-light">
<li class="btn"><a asp-controller="Browse" asp-action="Schedule" class="custom-link">Przeglądaj terminy</a></li>
<li class="btn"><a asp-controller="Browse" asp-action="Schedule" class="custom-link">Terminy</a></li>
</ul>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions TutorLizard.Web/wwwroot/css/tutorlizard.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ body {
margin-bottom: 20px;
margin-top: 20px;
text-align: center;
border-bottom: 1px solid #b0b0b0;
}

.title-2 {
Expand Down

0 comments on commit 6ce689a

Please sign in to comment.