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.5 KB
Raw Blame
@model ProductModel
@if (!string.IsNullOrEmpty(Model.Id))
{
    if (Model.AvailableProductAttributes.Count > 0)
    {
        <admin-tabstrip name="productattribute-edit">
            <items>
                <tabstrip-item text="@Loc[$"{Scope.ResourceKeyPrefix}.Catalog.Products.ProductAttributes.Attributes"]" tab-index="100" class="active">
                    <content>
                        <div>
                            <partial name="Partials/CreateOrUpdate.ProductAttributes.TabAttributes" model="Model"/>
                        </div>
                    </content>
                </tabstrip-item>
                <tabstrip-item text="@Loc[$"{Scope.ResourceKeyPrefix}.Catalog.Products.ProductAttributes.AttributeCombinations"]" tab-index="101">
                    <content>
                        <div>
                            <partial name="Partials/CreateOrUpdate.ProductAttributes.TabAttributeCombinations" model="Model"/>
                        </div>
                    </content>
                </tabstrip-item>
                <partial name="Partials/WidgetZone.AttributeDetailsTabs" model="Model"/>
            </items>
        </admin-tabstrip>
    }
    else
    {
        <div class="note note-info">
            @Loc[$"{Scope.ResourceKeyPrefix}.Catalog.Products.ProductAttributes.NoAttributesAvailable"]
        </div>
    }
}
else
{
    <div class="note note-info">
        @Loc[$"{Scope.ResourceKeyPrefix}.Catalog.Products.ProductAttributes.SaveBeforeEdit"]
    </div>
}