﻿@model IPagedList<MMLibrarySystem.Models.BookListController.BookListItem>

@{
    ViewBag.Title = "Book List";
}

@using (Ajax.BeginForm(new AjaxOptions()
{
    HttpMethod = "GET",    
    InsertionMode = InsertionMode.Replace,
    UpdateTargetId = "bookListContainer"
}))
{
    <fieldset style="border:1px solid black;padding: 1em">
        <legend style="display: inline" >Filter</legend>
        Book name or description: <input type="search" name="searchTerm" />
        Show books in library @Html.CheckBox("showInLibrary")
    </fieldset>
    <input type="submit" value="Search by name or description" />
}

@Html.Partial("_BookList", Model)

﻿@model IPagedList<MMLibrarySystem.Models.BookListController.BookListItem>

@{
    ViewBag.Title = "Book List";
}

@using (Ajax.BeginForm(new AjaxOptions()
{
    HttpMethod = "GET",    
    InsertionMode = InsertionMode.Replace,
    UpdateTargetId = "bookListContainer"
}))
{
    <fieldset style="border:1px solid black;padding: 1em">
        <legend style="display: inline">Filter</legend>
        Book name or description: <input type="search" name="searchTerm" />
        Show books in library @Html.CheckBox("showInLibrary")
    </fieldset>
    <input type="submit" value="Search by name or description" />
}

@Html.Partial("_BookList", Model)

Add check box for show in library or not
Add check box for show in library or not
