Fix blog editor default selection and checkbox binding
TaxBaik CI/CD / build-and-deploy (push) Successful in 54s
TaxBaik CI/CD / build-and-deploy (push) Successful in 54s
This commit is contained in:
@@ -44,6 +44,7 @@
|
||||
<div class="col-md-4">
|
||||
<label class="form-label" for="Input_CategoryId">카테고리</label>
|
||||
<select class="form-select" id="Input_CategoryId" name="Input.CategoryId" required>
|
||||
<option value="">카테고리 선택</option>
|
||||
@foreach (var category in (ViewData["BlogCategories"] as IEnumerable<TaxBaik.Domain.Entities.Category>) ?? [])
|
||||
{
|
||||
if (category.Id == Model.CategoryId)
|
||||
@@ -60,6 +61,7 @@
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label class="form-label d-block" for="Input_IsPublished">발행 여부</label>
|
||||
<input type="hidden" name="Input.IsPublished" value="false" />
|
||||
<input class="form-check-input" id="Input_IsPublished" name="Input.IsPublished" type="checkbox" value="true" @(Model.IsPublished ? "checked" : null) />
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
|
||||
Reference in New Issue
Block a user