1. sayfa (Toplam 1 sayfa)

Eticaret Projesi

Gönderilme zamanı: 14 May 2021 20:58
gönderen AzS
kod

CreateProduct

Gönderilme zamanı: 14 May 2021 20:59
gönderen AzS

Kod: Tümünü seç

@model ProductModel
@{
    ViewData["Title"] = "CreateProduct";
}

<h2>Create Product</h2>
<hr />
<div class="row">
    <div class="col-md-8">
        <form asp-controller="Admin" asp-action="CreateProduct" method="post">
            <div class="row mb-3">
                <label asp-for="Name" class="col-sm-2 col-form-label"></label>
                <div class="col-sm-10">
                    <input asp-for="Name" value="" class="form-control">
                </div>
            </div>
            <div class="row mb-3">
                <label asp-for="ImageUrl" class="col-sm-2 col-form-label"></label>
                <div class="col-sm-10">
                    <input asp-for="ImageUrl" value="" class="form-control">
                </div>
            </div>
            <div class="row mb-3">
                <label asp-for="Description" class="col-sm-2 col-form-label"></label>
                <div class="col-sm-10">
                    <textarea id="editor" asp-for="Description" class="form-control"></textarea>
                </div>
            </div>
            <div class="row mb-3">
                <label asp-for="Price" class="col-sm-2 col-form-label"></label>
                <div class="col-sm-10">
                    <input asp-for="Price" value="" class="form-control">
                </div>
            </div>
            <div class="form-group row">
                <div class="col-md-10 offset-md-2">
                    <button type="submit" class="btn btn-primary">Save Product</button>
                </div>
            </div>
        </form>
    </div>
</div>