Skip to content

Commit

Permalink
Grand.Web.Vendor - add support for order
Browse files Browse the repository at this point in the history
  • Loading branch information
support committed Oct 28, 2023
1 parent e1fe53f commit 6c9f783
Show file tree
Hide file tree
Showing 13 changed files with 1,619 additions and 915 deletions.
79 changes: 79 additions & 0 deletions src/Web/Grand.Web.Vendor/Areas/Vendor/Views/Order/Edit.cshtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
@model OrderModel
@{
//page title
ViewBag.Title = Loc["Vendor.Orders.EditOrderDetails"];
}
<form asp-area="@Constants.AreaVendor" asp-controller="Order" asp-action="Edit" method="post" id="order-form">
<input type="hidden" asp-for="Id" />
<div asp-validation-summary="All"></div>
<div class="row">
<div class="col-md-12">
<div class="x_panel light form-fit">
<div class="x_title">
<div class="caption">
<i class="icon-basket"></i>
@Loc["Vendor.Orders.EditOrderDetails"] - @Model.OrderNumber
<small><i class="fa fa-arrow-circle-left"></i>@Html.ActionLink(Loc["Admin.Orders.BackToList"], "List")</small>
</div>
<div class="actions">
<div class="btn-group btn-group-devided util-btn-margin-bottom-5">
<a href="@Url.Action("PdfInvoice", new { orderId = Model.Id, area = Constants.AreaVendor })" class="btn purple">
<i class="fa fa-file-pdf-o"></i> @Loc["Vendor.Orders.PdfInvoice"]
</a>
<input type="submit" id="btnRefreshPage" style="display: none" />
<script>
$(document).ready(function () {
$('#btnRefreshPage').click(function () {
//refresh page
location.reload();
});
});
</script>
<vc:vendor-widget widget-zone="order_details_buttons" additional-data="Model" />
</div>
</div>
</div>
<div class="x_content form">
<admin-tabstrip name="order-edit" SetTabPos="true" BindGrid="true">
<items>
<tabstrip-item text="@Loc["Vendor.Orders.Info"]" tab-index="0">
<content>
<div>
<partial name="Partials/OrderDetails.Info" model="Model" />
</div>
</content>
</tabstrip-item>

<tabstrip-item text="@Loc["Vendor.Orders.Addresses"]" tab-index="1">
<content>
<div>
<partial name="Partials/OrderDetails.Addresses" model="Model" />
</div>
</content>
</tabstrip-item>
@if (Model.IsShippable)
{
<tabstrip-item text="@Loc["Vendor.Orders.Shipments"]" tab-index="2">
<content>
<div>
<partial name="Partials/OrderDetails.Shipment" model="Model" />
</div>
</content>
</tabstrip-item>
}
<tabstrip-item text="@Loc["Vendor.Orders.Products"]" tab-index="3">
<content>
<div>
<partial name="Partials/OrderDetails.Products" model="Model" />
</div>
</content>
</tabstrip-item>
<vc:vendor-widget widget-zone="order_details_tabs" additional-data="Model" />
</items>
</admin-tabstrip>
</div>
</div>
</div>
</div>
</form>
<admin-delete-confirmation button-id="order-delete" />
443 changes: 443 additions & 0 deletions src/Web/Grand.Web.Vendor/Areas/Vendor/Views/Order/List.cshtml

Large diffs are not rendered by default.

Loading

0 comments on commit 6c9f783

Please sign in to comment.