Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @model IEnumerable<StaffBaze.Models.Staff>
- @{
- ViewBag.Title = "SearchIndex";
- }
- <h2>SearchIndex</h2>
- <p>
- @Html.ActionLink("Create New", "Create")
- @using (Html.BeginForm()){
- <p>Post: @Html.DropDownList("staffPost", "All")
- Title: @Html.TextBox("SearchString")
- <input type="submit" value="Filter" /></p>
- }
- @using (Html.BeginForm()){
- <p>Genre: @Html.DropDownList("staffProjectName", "All")
- Title: @Html.TextBox("SearchString")
- <input type="submit" value="Filter" /></p>
- }
- </p>
- <table>
- <tr>
- <th>
- Name
- </th>
- <th>
- BirthDay
- </th>
- <th>
- Post
- </th>
- <th>
- ProjectName
- </th>
- <th></th>
- </tr>
- @foreach (var item in Model) {
- <tr>
- <td>
- @Html.DisplayFor(modelItem => item.Name)
- </td>
- <td>
- @Html.DisplayFor(modelItem => item.BirthDay)
- </td>
- <td>
- @Html.DisplayFor(modelItem => item.Post)
- </td>
- <td>
- @Html.DisplayFor(modelItem => item.ProjectName)
- </td>
- <td>
- @Html.ActionLink("Edit", "Edit", new { id=item.ID }) |
- @Html.ActionLink("Details", "Details", new { id=item.ID }) |
- @Html.ActionLink("Delete", "Delete", new { id=item.ID })
- </td>
- </tr>
- }
- </table>
Add Comment
Please, Sign In to add comment