initial commit
[CPE_learningsite] / CPE / CPE.App / CPE.App.Web / Views / Courses / Index.cshtml
1 @model dynamic
2 @*@model List<CPE.App.Web.Models.OnDemanCoursesDataResult>*@
3 @*TODO This view will use the model from our db, not the api release model*@
4 @{
5     ViewBag.Title = "On Demand Courses";
6 }
7 @*<script type="text/javascript" src="/static/js/index/index.js"></script>*@
8 <h2 class="floatright">On Demand Courses</h2>
9 <h3 class="floatleft">@Html.ActionLink("Meeting Sessions", "Index", "Index")</h3>
10 <hr />
11 <table id="onDemandCoursesTable" class="display">
12     <thead>
13         <tr>
14             <th>Course</th>
15             <th>Created Date</th>
16             <th>Views</th>
17             <th>Passes</th>
18             <th>Fails</th>
19             <th>Course Type (Content or Test) or Certificate?</th>
20         </tr>
21     </thead>
22     <tbody>
23         @*@foreach (var onDemandCourse in Model)
24             {
25                 <tr>
26                     <td class="cell namecell"><a href="/OnDemandCousedetails/@onDemandCourse.OnDemandCourseKey">@onDemandCourse.Name</a></td>
27                     <td class="cell datecell">@OnDemandCouse.CreatedDate.GetValueOrDefault().ToString("MM/dd/yyyy")</td>
28                     <td class="cell numbercell">@OnDemandCouse.ToString("hh:mm tt")</td>
29                     <td class="cell numbercell">@OnDemandCouse.ToString("hh:mm tt")</td>
30                     <td class="cell numbercell">@OnDemandCouse.TotalSessionTime.GetValueOrDefault()</td>
31                     <td class="cell namecell">@OnDemandCouse.ActualSessionTime.GetValueOrDefault()</td>
32                 </tr>
33             }*@
34     </tbody>
35 </table>
36