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.

613 B
Raw Blame
@model OrderModel.AddOrderProductModel.GiftVoucherModel
@if (Model.IsGiftVoucher)
{
    @* direct children of the caller's field grid, so they pair up with the other fields *@
    <admin-field asp-for="RecipientName"/>
    @if (Model.GiftVoucherType == GiftVoucherType.Virtual)
    {
        <admin-field asp-for="RecipientEmail"/>
    }
    <admin-field asp-for="SenderName"/>
    @if (Model.GiftVoucherType == GiftVoucherType.Virtual)
    {
        <admin-field asp-for="SenderEmail"/>
    }
    <admin-field asp-for="Message">
        <admin-textarea asp-for="Message"></admin-textarea>
    </admin-field>
}