Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

1.0 KB
Raw Blame
@* the grid edits inline; its Add new moves into the card header (grid.js) *@
<admin-card flush>
    <admin-grid id="measureunit-grid"
                read-url="@Url.Action("Units", "Measure", new { area = Constants.AreaAdmin })"
                create-url="@Url.Action("UnitAdd", "Measure", new { area = Constants.AreaAdmin })"
                update-url="@Url.Action("UnitUpdate", "Measure", new { area = Constants.AreaAdmin })"
                destroy-url="@Url.Action("UnitDelete", "Measure", new { area = Constants.AreaAdmin })"
                pager="Compact"
                edit-mode="Inline">
        <grid-toolbar-create/>
        <grid-column field="Name" title="@Loc["Admin.Configuration.Measures.Units.Fields.Name"]" width="300" editor="Text"/>
        <grid-column field="DisplayOrder" title="@Loc["Admin.Configuration.Measures.Weights.Fields.DisplayOrder"]" width="100" format="{0:0}" editor="Integer" default-value="0"/>
        <grid-commands edit="true" destroy="true" width="200"/>
    </admin-grid>
</admin-card>