15 lines
588 B
Plaintext
15 lines
588 B
Plaintext
@model IEnumerable<Menu>
|
|
<ol class="dd-list">
|
|
@foreach (var menu in Model)
|
|
{
|
|
<li class="dd-item dd3-item" data-id="@menu.ID" data-category="@menu.Category">
|
|
<div class="dd-handle dd3-handle"></div>
|
|
<div class="dd3-content"><label><input name="menuParent" type="checkbox" value="@menu.ID" /><input type="radio" name="menu" value="@menu.ID" /><span>@menu.Name</span></label></div>
|
|
@if (menu.Menus.Count() > 0)
|
|
{
|
|
@Html.Partial("SubMenuTree", menu.Menus)
|
|
}
|
|
</li>
|
|
}
|
|
</ol>
|