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.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
@model StoreModel
@if (!string.IsNullOrEmpty(Model.Id))
{
@* the grid edits inline; its Add new moves into the card header (grid.js).
Kendo also showed Save changes and Cancel changes toolbar buttons; with inline editing they only
repeated the row Update and Cancel buttons *@
<admin-card flush>
<admin-grid id="domains-grid"
read-url="@Url.Action("Domains", "Store", new { storeid = Model.Id, area = Constants.AreaAdmin })"
create-url="@Url.Action("DomainInsert", "Store", new { storeid = Model.Id, area = Constants.AreaAdmin })"
update-url="@Url.Action("DomainUpdate", "Store", new { storeid = Model.Id, area = Constants.AreaAdmin })"
destroy-url="@Url.Action("DomainDelete", "Store", new { storeid = Model.Id, area = Constants.AreaAdmin })"
pager="Compact"
edit-mode="Inline">
<grid-toolbar-create/>
<grid-column field="Url" title="@Loc["Admin.Configuration.Stores.Domains.Fields.Url"]" editor="Text"/>
<grid-column field="HostName" title="@Loc["Admin.Configuration.Stores.Domains.Fields.HostName"]"/>
<grid-column field="Primary" title="@Loc["Admin.Configuration.Stores.Domains.Fields.Primary"]" align="Center">
<cell-template>
<i data-if="Primary" class="bi bi-check-lg text-success" aria-hidden="true"></i>
<i data-else class="bi bi-x-lg text-danger" aria-hidden="true"></i>
</cell-template>
</grid-column>
<grid-commands edit="true" destroy="true"/>
</admin-grid>
</admin-card>
}
else
{
<div class="note note-info">
@Loc["Admin.Configuration.Stores.Domains.SaveBeforeEdit"]
</div>
}