@model PizzaRestaurantDrink.Models.CRU_UserAddressMV
@{
ViewBag.Title = "User Address";
}
<!-- Breadcrumb Start -->
<div class="bread-crumb">
<div class="container">
<div class="matter">
<h2>User Address</h2>
<ul class="list-inline">
<li class="list-inline-item"><a href="@Url.Content("~/Home/Index")">HOME</a></li>
<li class="list-inline-item"><a href="@Url.Content("~/Setting/List_UserAddress")">User Address</a></li>
</ul>
</div>
</div>
</div>
<!-- Breadcrumb End -->
<div class="contactus">
<div class="container">
<div class="row">
<!-- Title Content Start -->
<div class="col-sm-12 commontop text-center">
<h4>User Addresses</h4>
<div class="divider style-1 center">
<span class="hr-simple left"></span>
<i class="icofont icofont-ui-press hr-icon"></i>
<span class="hr-simple right"></span>
</div>
</div>
<!-- Title Content End -->
<div class="col-md-5 col-12">
<!-- user type form Start -->
@using (Html.BeginForm("List_UserAddress", "Setting", FormMethod.Post, new { @enctype = "multipart/form-data", @class = "form-horizontal" }))
{
@Html.AntiForgeryToken()
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
@Html.HiddenFor(model => model.UserAddressID)
<div class="form-group row">
<div class="col-md-12 col-sm-12 col-12">
@Html.DropDownList("AddressTypeID", null, "--Choose Type--", htmlAttributes: new { @class = "form-control" })
@Html.ValidationMessageFor(model => model.AddressTypeID, "", new { @class = "text-danger" })
</div>
</div>
<div class="form-group row">
<div class="col-md-12 col-sm-12 col-12">
<i class="icofont icofont-ui-user"></i>
@Html.EditorFor(model => model.FullAddress, new { htmlAttributes = new { @class = "form-control", @placeholder = "Enter Full Address" } })
@Html.ValidationMessageFor(model => model.FullAddress, "", new { @class = "text-danger" })
</div>
</div>
<div class="form-group row">
<div class="col-md-12 col-sm-12 col-12">
@Html.DropDownList("VisibleStatusID", null, "--Choose Status--", htmlAttributes: new { @class = "form-control" })
@Html.ValidationMessageFor(model => model.VisibleStatusID, "", new { @class = "text-danger" })
</div>
</div>
<div class="buttons">
@if (Model.UserAddressID == 0)
{
<input class="btn btn-theme btn-md btn-wide" style="float:right;" type="submit" value="Create" />
}
else
{
<input class="btn btn-theme btn-md btn-wide" style="float:right;" type="submit" value="Update" />
}
</div>
}
<!-- user type form End -->
</div>
<div class="col-md-7 col-12">
<!-- List Start -->
<div class="table-responsive-md">
<table class="table table-bordered">
<thead>
<tr>
<td class="text-center">
Address Type
</td>
<td class="text-center">
Full Address
</td>
<td class="text-center">
Status
</td>
<th>Action</th>
</tr>
</thead>
<tbody>
@foreach (var item in Model.List)
{
<tr>
<td>
@Html.DisplayFor(modelItem => item.AddressType)
</td>
<td>
@Html.DisplayFor(modelItem => item.FullAddress)
</td>
<td>
@Html.DisplayFor(modelItem => item.VisibleStatus)
</td>
<td>
@Html.ActionLink("Edit", "List_UserAddress", new { id = item.UserAddressID }, new { @class = "btn btn-theme btn-md btn-wide" })
</td>
</tr>
}
</tbody>
</table>
</div>
<!-- List End -->
</div>
</div>
</div>
</div>
Comments
Post a Comment