@model List @{ ViewData["Title"] = "Homepage Editor"; Layout = "_AdminLayout"; }

Homepage Editor

Add New Section
@if (TempData["SuccessMessage"] != null) { }
Footer Text
@Html.AntiForgeryToken()
Homepage Sections
Drag and drop to reorder sections
@if (Model != null && Model.Any()) {
@foreach (var sect in Model) {
@sect.SectionType @if (!sect.IsActive) { Inactive }
@sect.Title @if (!string.IsNullOrEmpty(sect.Subtitle)) {
@sect.Subtitle }
Order: @sect.DisplayOrder
Edit
@Html.AntiForgeryToken()
}
} else {
No sections found. Click "Add New Section" to create your first homepage section.
}
Preview Homepage
@section Scripts { }