Skip to content

Commit

Permalink
Changed views to add poster image and Movie Title as Hype link to det…
Browse files Browse the repository at this point in the history
…ails
  • Loading branch information
theidlemonk committed Dec 28, 2013
1 parent 6aa1f41 commit b2206d7
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 16 deletions.
63 changes: 63 additions & 0 deletions MovieLibrary/Views/Movie/MovieDetails.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,67 @@
}

<h2>MovieDetails</h2>
<div>
<table>
<tr>
<td>
<img src="@ViewData.Model[0].Poster" alt="" />

</td>

</tr>
<tr>
<td>
@ViewData.Model[0].Title
</td>
</tr>
<tr>
<td>
@ViewData.Model[0].Year
</td>
</tr>
<tr>
<td>
@ViewData.Model[0].MovieId
</td>
</tr>
<tr>
<td>

@ViewData.Model[0].Actors

</td>
</tr>
<tr>
<td>
@ViewData.Model[0].Genre
</td>
</tr>
<tr>
<td>
@ViewData.Model[0].Rating
</td>
</tr>
<tr>
<td>
@ViewData.Model[0].Released
</td>
</tr>
<tr>
<td>
@ViewData.Model[0].Type
</td>
</tr>
<tr>
<td>
@ViewData.Model[0].Plot
</td>
</tr>
<tr>
<td>
@ViewData.Model[0].Poster
</td>
</tr>

</table>
</div>
19 changes: 3 additions & 16 deletions MovieLibrary/Views/Movie/MovieListings.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,18 @@
<p>
@Html.ActionLink("Back To Home", "Index", "Movie")
</p>
<div>
<table class="grid">
<tr>
<th>
Title
</th>
<th>
Year
</th>
</tr>
@foreach (var item in Model) {
<tr>
<td>
@Html.DisplayFor(modelItem => item.Title)
@Html.ActionLink(item.Title, "GetMovieDetailsFromMovieId", "Movie", new { MovieId = item.MovieId },null)
</td>
<td>
@Html.DisplayFor(modelItem => item.Year)
</td>
<td>
@Html.HiddenFor(modelItem => item.MovieId)
</td>
<td>
@Html.ActionLink("TakeMe", "GetMovieDetailsFromMovieId", "Movie", new { MovieId = item.MovieId },null)

</td>
</tr>
}

</table>
</div>

0 comments on commit b2206d7

Please sign in to comment.