-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from abdulrahmannadap/New-Update
New update
- Loading branch information
Showing
23 changed files
with
1,924 additions
and
762 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
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
72 changes: 72 additions & 0 deletions
72
FCommerce.Website/Areas/Admin/Views/Products/UpsertForm.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,72 @@ | ||
@model Product | ||
|
||
<div class="row"> | ||
<div class="col-8"> | ||
<div class="m-2"> | ||
<a asp-action="List" asp-controller="Products" class="btn btn-primary text-uppercase "><i class="bi bi-list-ol"></i> Go To list</a> | ||
</div> | ||
<form asp-area="Admin" asp-controller="Products" asp-action="Upsert" method="post" class="form-group text-center " enctype="multipart/form-data"> | ||
<div asp-validation-summary="ModelOnly" class="text-danger"></div> | ||
|
||
|
||
<div> | ||
<label class="col-form-label">Product Name</label> | ||
<input type="text" asp-for="ProductName" placeholder="Enter Product name" class="form-control"> | ||
<span asp-validation-for="ProductName" class="text text-danger"></span> | ||
</div> | ||
|
||
|
||
<label class="col-form-label">Product Description</label> | ||
<input type="text" asp-for="Description" placeholder="Enter Product name" class="form-control "> | ||
<span asp-validation-for="Description" class="text text-danger"></span> | ||
|
||
|
||
<div class="mt-2"> | ||
<label class="col-form-label">Product Price</label> | ||
<input type="number" asp-for="ProductPrice" placeholder="Enter Product name" class="form-control"> | ||
<span asp-validation-for="ProductPrice" class="text text-danger"></span> | ||
</div> | ||
<div class="row mt-4"> | ||
<div class="col-3"> | ||
<label class=" fw-bold">select File</label> | ||
</div> | ||
<div class="col-9"> | ||
<input type="file" class="form-control" name="file" > | ||
</div> | ||
</div> | ||
|
||
<div class="mt-2"> | ||
<select asp-for="CategoryId" asp-items="@ViewBag.CategoryItem" class="form-select"> | ||
<option selected disabled> Select Category</option> | ||
</select> | ||
|
||
</div> | ||
|
||
|
||
|
||
<div class="mt-2"> | ||
<input type="submit" class="btn btn-success mt-3 text-uppercase mx-4 " value=@(Model.Id==0 ? "ADD" : "EDIT") /> | ||
<a asp-controller="Products" asp-action="List" class="btn btn-warning mt-3 text-uppercase">Cancelled</a> | ||
</div> | ||
</form> | ||
</div> | ||
<div class="col-4"> | ||
<div class="card"> | ||
<div class="card-header"> | ||
|
||
</div> | ||
<div class="card-body"> | ||
<div class="card-img"> | ||
<img src="@Model.ImageUrl" height="300" width="300" alt="No Image Found"/> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
|
||
@section Scripts { | ||
@{ | ||
await Html.RenderPartialAsync("_ValidationScriptsPartial"); | ||
} | ||
} |
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,3 @@ | ||
@using FCommerce.Website | ||
@using FCommerce.Models | ||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers |
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,3 @@ | ||
@{ | ||
Layout = "_Layout"; | ||
} |
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
File renamed without changes.
File renamed without changes.
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,3 @@ | ||
@using FCommerce.Website | ||
@using FCommerce.Models | ||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers |
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,3 @@ | ||
@{ | ||
Layout = "_Layout"; | ||
} |
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.