Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @model WebApplication3.Models.StudentModel
- @{
- ViewBag.Title = "Index";
- }
- <h2>Students</h2>
- <div><button class="create btn btn-success"><span class="glyphicon glyphicon-plus"></span> Create New</button></div>
- <br/>
- <table class="table" ng-app="StudentApp">
- <tbody ng-controller="StudentCtrl">
- <tr>
- <th>Key</th>
- <th ng-click="">First Name</th>
- <th ng-click="">Last Name</th>
- <th>Profile picture</th>
- <th>Options</th>
- </tr>
- @foreach (var student in Model._StudentList)
- {
- <tr>
- <td>@student.StudentID</td>
- <td>@student.FirstName</td>
- <td>@student.LastName</td>
- <td>
- <a class="example-image-link" href="~/Images/@student.PhotoURL" data-lightbox="example-set" data-title="@student.FirstName @student.LastName profile Picture"><img class="example-image" width="60" height="40" src="~/Images/@student.PhotoURL" alt="" /></a>
- </td>
- <td>
- <a href="#" class="edit" data-studentid="@student.StudentID"><span class="glyphicon glyphicon-pencil img-rotate" title="Edit"></span></a>
- <a href="#" class="details" data-studentid="@student.StudentID"><span class="glyphicon glyphicon-exclamation-sign img-rotate" title="Infomation"></span></a>
- <a href="#" class="delete" data-studentid="@student.StudentID"><span class="glyphicon glyphicon-remove img-rotate" title="Remove"></span></a>
- </td>
- </tr>
- }
- </tbody>
- </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement