@model ProductTagModel
@using Microsoft.AspNetCore.Mvc.Razor;

@{ Func<int, HelperResult>
           template = @<div class="form-body">
    <div class="form-group">
        <admin-label asp-for="@Model.Locales[item].Name" class="col-sm-3 control-label" />
        <div class="col-md-9 col-sm-9">
            <admin-input asp-for="@Model.Locales[item].Name" />
            <span asp-validation-for="@Model.Locales[item].Name"></span>
        </div>
    </div>
    <input asp-for="@Model.Locales[item].LanguageId" type="hidden" />
</div>;
}

<div class="form-horizontal">
    <localized-editor localized-template=@template name="producttag-localized" language-ids=@Model.Locales.Select(c=>c.LanguageId).ToList()>
        <div class="form-body">
            <div class="form-group">
                <admin-label asp-for="Name" />
                <div class="col-md-9 col-sm-9">
                    <admin-input asp-for="Name" />
                    <span asp-validation-for="Name"></span>
                </div>
            </div>
        </div>
    </localized-editor>
    
</div>