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.2 KB
Raw Blame
@{
    //page title
    ViewBag.Title = Loc["Admin.Courses.Level"];
}

@* an inline-edit grid in a flush card; grid.js moves its Add new into the card header *@
<admin-page title="@Loc["Admin.Courses.Level"]" icon="bi-wrench">
    <admin-card flush>
        <admin-grid id="level-grid"
                    confirm-destroy="true"
                    read-url="@Url.Action("Levels", "Course", new { area = Constants.AreaAdmin })"
                    create-url="@Url.Action("LevelAdd", "Course", new { area = Constants.AreaAdmin })"
                    update-url="@Url.Action("LevelUpdate", "Course", new { area = Constants.AreaAdmin })"
                    destroy-url="@Url.Action("LevelDelete", "Course", new { area = Constants.AreaAdmin })"
                    pager="Compact"
                    edit-mode="Inline">
            <grid-toolbar-create/>
            <grid-column field="Name" title="@Loc["Admin.Courses.Level.Fields.Name"]" width="400" editor="Text"/>
            <grid-column field="DisplayOrder" title="@Loc["Admin.Courses.Level.Fields.DisplayOrder"]" width="100" format="{0:0}" editor="Integer" default-value="0"/>
            <grid-commands edit="true" destroy="true" width="200"/>
        </admin-grid>
    </admin-card>
</admin-page>