-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
400 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using EntityLayer.Dtos; | ||
|
||
namespace BlogWeb.Areas.Admin.Models | ||
{ | ||
public class CategoryAddAjaxViewModel | ||
{ | ||
public CategoryAddDto CategoryAddDto { get; set; } | ||
public string CategoryAddPartial { get; set; } | ||
public CategoryDto CategoryDto { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
BlogWeb/Areas/Admin/Views/Category/_CategoryAddPartial.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
@model EntityLayer.Dtos.CategoryAddDto | ||
|
||
<div class="modal fade" tabindex="-1" role="dialog" aria-hidden="true"> | ||
<div class="modal-dialog"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<h5 class="modal-title"><span class="fas fa-plus"></span> Kategori Ekle</h5> | ||
<button type="button" class="close" data-dismiss="modal" aria-label="İptal"> | ||
<span aria-hidden="true">×</span> | ||
</button> | ||
</div> | ||
<div class="modal-body"> | ||
<form asp-action="Add" id="form-category-add"> | ||
<input name="IsValid" type="hidden" value="@ViewData.ModelState.IsValid.ToString()" /> | ||
<div asp-validation-summary="All" class="text-danger" id="validation-summary" aria-hidden="true" style="display: none"></div> | ||
<div class="form-group"> | ||
<label asp-for="CategoryName"></label> | ||
<input class="form-control" asp-for="CategoryName" /> | ||
<span class="text-danger" asp-validation-for="CategoryName"></span> | ||
</div> | ||
<div class="form-group"> | ||
<label asp-for="Description"></label> | ||
<input class="form-control" asp-for="Description" /> | ||
<span class="text-danger" asp-validation-for="Description"></span> | ||
</div> | ||
<div class="form-group"> | ||
<label asp-for="Note"></label> | ||
<input class="form-control" asp-for="Note" /> | ||
<span class="text-danger" asp-validation-for="Note"></span> | ||
</div> | ||
<div class="form-group form-check"> | ||
<input type="checkbox" class="form-check-input" asp-for="IsActive" /> | ||
<label asp-for="IsActive" class="form-check-label"></label> | ||
<span class="text-danger" asp-validation-for="IsActive"></span> | ||
</div> | ||
</form> | ||
</div> | ||
<div class="modal-footer"> | ||
<button type="button" class="btn btn-danger btn-block" data-dismiss="modal"><span class="fas fa-times"></span> İptal</button> | ||
<button type="button" class="btn btn-primary btn-block" id="btnSave"><span class="fas fa-save" ></span> Kaydet</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.