@model ProductDetailsModel.GiftCardModel
@using SmartStore.Web.Models.Catalog;
@if (Model.IsGiftCard)
{
@Html.LabelFor(model => model.RecipientName)
@Html.TextBoxFor(model => model.RecipientName, new { @class = "recipient-name" })
@if (Model.GiftCardType == SmartStore.Core.Domain.Catalog.GiftCardType.Virtual)
{
@Html.LabelFor(model => model.RecipientEmail);
@Html.TextBoxFor(model => model.RecipientEmail, new { @class = "recipient-email" });
}
@Html.LabelFor(model => model.SenderName)
@Html.TextBoxFor(model => model.SenderName, new { @class = "sender-name" })
@if (Model.GiftCardType == SmartStore.Core.Domain.Catalog.GiftCardType.Virtual)
{
@Html.LabelFor(model => model.SenderEmail);
@Html.TextBoxFor(model => model.SenderEmail, new { @class = "sender-email" });
}
@Html.LabelFor(model => model.Message)
@Html.TextAreaFor(model => model.Message, new { @class = "message" })
}