Feat: Add docker support

This commit is contained in:
Namu
2025-12-27 01:06:54 +01:00
parent 5ae8ef655a
commit 0327d70657
17 changed files with 158 additions and 54 deletions

View File

@@ -15,20 +15,18 @@
}
else
{
<dl>
<dh>Name</dh>
<dd>@schoolSubject.Name</dd>
<dl class="row">
<dh class="col-3">Name</dh>
<dd class="col-9">@schoolSubject.Name</dd>
@if (!string.IsNullOrWhiteSpace(schoolSubject.Description))
{
<dh>Description:</dh>
<dd>@schoolSubject.Description</dd>
<dh class="col-3">Description:</dh>
<dd class="col-9">@schoolSubject.Description</dd>
}
<dh>Created At</dh>
<dd>@schoolSubject.CreatedAt.ToLocalTime()</dd>
<dh>Actions</dh>
<dh class="col-3">Created At</dh>
<dd class="col-9">@schoolSubject.CreatedAt.ToLocalTime()</dd>
</dl>
}
@@ -41,6 +39,5 @@ else
protected override async Task OnInitializedAsync()
{
schoolSubject = await SchoolSubjectService.GetSchoolSubjectByIdAsync(Id);
}
}

View File

@@ -11,7 +11,7 @@
<h3>SchoolSubjectListing</h3>
<div>
<NavLink class="btn btn-primary" href="school-subjects/creation" Match="NavLinkMatch.All">
<NavLink class="btn btn-primary mb-3" href="school-subjects/creation" Match="NavLinkMatch.All">
Create
</NavLink>
</div>
@@ -22,10 +22,10 @@
}
else
{
<ul>
<ul class="list-unstyled">
@foreach (var schoolSubject in schoolSubjects)
{
<li>
<li class="border text-center p-3">
<SchoolSubjectDisplay Id="@schoolSubject.Id" />
<div class="btn-group">
<SchoolSubjectDeletion Id="@schoolSubject.Id" OnDeleted="HandleDeletion" />