Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@model double?
<input asp-for="@Model" data-grand-numeric='{"format":"n6","decimals":6}'/>
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using Grand.Infrastructure.Validators;
using Grand.Web.AdminShared.Models.Common;
using Microsoft.AspNetCore.Mvc.Rendering;
using System.ComponentModel.DataAnnotations;

namespace Grand.Web.AdminShared.Models.Shipping;

Expand Down Expand Up @@ -41,9 +42,11 @@ public class PickupPointModel : BaseEntityModel
[GrandResourceDisplayName("Admin.Configuration.Shipping.PickupPoint.Fields.PickupFee")]
public double PickupFee { get; set; }

[UIHint("DoubleNullableN6")]
[GrandResourceDisplayName("Admin.Configuration.Shipping.PickupPoint.Fields.Latitude")]
public double? Latitude { get; set; }

[UIHint("DoubleNullableN6")]
[GrandResourceDisplayName("Admin.Configuration.Shipping.PickupPoint.Fields.Longitude")]
public double? Longitude { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using Grand.Infrastructure.Models;
using Grand.Web.AdminShared.Models.Common;
using Microsoft.AspNetCore.Mvc.Rendering;
using System.ComponentModel.DataAnnotations;

namespace Grand.Web.AdminShared.Models.Shipping;

Expand All @@ -16,9 +17,11 @@ public class WarehouseModel : BaseEntityModel
[GrandResourceDisplayName("Admin.Configuration.Shipping.Warehouses.Fields.AdminComment")]
public string AdminComment { get; set; }

[UIHint("DoubleNullableN6")]
[GrandResourceDisplayName("Admin.Configuration.Shipping.Warehouses.Fields.Latitude")]
public double? Latitude { get; set; }

[UIHint("DoubleNullableN6")]
[GrandResourceDisplayName("Admin.Configuration.Shipping.Warehouses.Fields.Longitude")]
public double? Longitude { get; set; }

Expand Down
Loading