@model LeafWeb.Web.ViewModels.SelectListViewModel
@{
    Layout = "~/Views/Shared/EditorTemplates/_FieldLayout.cshtml";
}
@{
    var prefix = ViewData.TemplateInfo.HtmlFieldPrefix;
    ViewData.TemplateInfo.HtmlFieldPrefix = string.Empty;

    foreach (var li in Model.ListItems)
    {
        <div class="radio">
            <label class="radio">
                @Html.RadioButton(prefix + ".Selected", li.Value, li.Selected) @li.Text
            </label>
        </div>
    }
    ViewData.TemplateInfo.HtmlFieldPrefix = prefix;
}
