UI optimization
This commit is contained in:
parent
1493c459bd
commit
034b1e3edd
2 changed files with 35 additions and 15 deletions
|
|
@ -83,12 +83,21 @@ else
|
||||||
</div>
|
</div>
|
||||||
@if (SelectedSchedule.ContainsKey(day))
|
@if (SelectedSchedule.ContainsKey(day))
|
||||||
{
|
{
|
||||||
<div class="shift-times">
|
if (GetShiftTimes(day).Length > 0)
|
||||||
@GetShiftTimes(day)
|
{
|
||||||
</div>
|
<div class="shift-times">
|
||||||
<div class="transport-info">
|
@GetShiftTimes(day)
|
||||||
@GetTransportSummary(day)
|
</div>
|
||||||
</div>
|
<div class="transport-info">
|
||||||
|
@GetTransportSummary(day)
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
<div class="shift-times">
|
||||||
|
@SelectedSchedule[day]
|
||||||
|
</div>
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
@ -132,12 +141,21 @@ else
|
||||||
</div>
|
</div>
|
||||||
@if (SelectedSchedule.ContainsKey(day))
|
@if (SelectedSchedule.ContainsKey(day))
|
||||||
{
|
{
|
||||||
<div class="shift-times">
|
if (GetShiftTimes(day).Length > 0)
|
||||||
@GetShiftTimes(day)
|
{
|
||||||
</div>
|
<div class="shift-times">
|
||||||
<div class="transport-info">
|
@GetShiftTimes(day)
|
||||||
@GetTransportSummary(day)
|
</div>
|
||||||
</div>
|
<div class="transport-info">
|
||||||
|
@GetTransportSummary(day)
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
<div class="shift-times">
|
||||||
|
@SelectedSchedule[day]
|
||||||
|
</div>
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -272,13 +272,15 @@ namespace ShiftScheduler.Client.Pages
|
||||||
|
|
||||||
var morningTransport = shiftWithTransport.GetMorningTransportSummary();
|
var morningTransport = shiftWithTransport.GetMorningTransportSummary();
|
||||||
if (!string.IsNullOrEmpty(morningTransport))
|
if (!string.IsNullOrEmpty(morningTransport))
|
||||||
summaries.Add($"🚂 {morningTransport}");
|
summaries.Add(morningTransport);
|
||||||
|
|
||||||
var afternoonTransport = shiftWithTransport.GetAfternoonTransportSummary();
|
var afternoonTransport = shiftWithTransport.GetAfternoonTransportSummary();
|
||||||
if (!string.IsNullOrEmpty(afternoonTransport))
|
if (!string.IsNullOrEmpty(afternoonTransport))
|
||||||
summaries.Add($"🚂 {afternoonTransport}");
|
summaries.Add(afternoonTransport);
|
||||||
|
|
||||||
|
if (summaries.Count == 0) { return string.Empty; }
|
||||||
|
|
||||||
return string.Join(" | ", summaries);
|
return "🚂 " + string.Join(" | ", summaries);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Helper method to get shift times for display
|
// Helper method to get shift times for display
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue