NzbDrone grids now have thead and tbody properly set.

pull/6/head
Mark McDowall 13 years ago
parent 19fbed2c42
commit e42f0222dc

@ -80,6 +80,7 @@
} }
<table class="seriesTable"> <table class="seriesTable">
<colgroup> <colgroup>
<col style="width: 10px"/> <col style="width: 10px"/>
<col style="width:auto" /> <col style="width:auto" />
@ -89,8 +90,10 @@
<col style="width:100px" /> <col style="width:100px" />
<col style="width:80px"/> <col style="width:80px"/>
</colgroup> </colgroup>
<thead>
<tr> <tr>
<th>Status</> <th>Status</th>
<th>Title</th> <th>Title</th>
<th>Seasons</th> <th>Seasons</th>
<th>Quality</th> <th>Quality</th>
@ -102,7 +105,8 @@
</th> </th>
</tr> </tr>
</thead>
<tbody>
@for (int i = 0; i < Model.Count; i++) @for (int i = 0; i < Model.Count; i++)
{ {
var series = Model[i]; var series = Model[i];
@ -117,6 +121,7 @@
Html.RenderPartial("Series", series, new ViewDataDictionary { new KeyValuePair<string, object>("AltRow", true) }); Html.RenderPartial("Series", series, new ViewDataDictionary { new KeyValuePair<string, object>("AltRow", true) });
} }
} }
</tbody>
</table> </table>
<div id="seriesEditor" title="Edit Series"></div> <div id="seriesEditor" title="Edit Series"></div>

@ -8,11 +8,12 @@
<table class="seriesTable"> <table class="seriesTable">
<colgroup> <colgroup>
<col style="width:40px"/> <col style="width:40px"/>
<col/> <col style="width:auto"/>
<col style="width:100px" /> <col style="width:100px" />
<col style="width:100px" /> <col style="width:100px" />
<col style="width:110px" /> <col style="width:110px" />
</colgroup> </colgroup>
<thead>
<tr> <tr>
<th>#</th> <th>#</th>
<th>Title</th> <th>Title</th>
@ -27,6 +28,8 @@
@Ajax.ImageActionLink("../../Content/Images/Rename.png", new { Alt = "Rename", Title = "Rename all episodes in this season", @class = "renameImage renameImageMaster" }, "RenameSeason", "Episode", new { SeriesId = Model.SeriesId, SeasonNumber = Model.SeasonNumber }, null, null) @Ajax.ImageActionLink("../../Content/Images/Rename.png", new { Alt = "Rename", Title = "Rename all episodes in this season", @class = "renameImage renameImageMaster" }, "RenameSeason", "Episode", new { SeriesId = Model.SeriesId, SeasonNumber = Model.SeasonNumber }, null, null)
</th> </th>
</tr> </tr>
</thead>
<tbody>
@for (int i = 0; i < Model.Episodes.Count; i++) @for (int i = 0; i < Model.Episodes.Count; i++)
{ {
var episode = Model.Episodes[i]; var episode = Model.Episodes[i];
@ -41,4 +44,5 @@
Html.RenderPartial("Episode", episode, new ViewDataDictionary { new KeyValuePair<string, object>("AltRow", true) }); Html.RenderPartial("Episode", episode, new ViewDataDictionary { new KeyValuePair<string, object>("AltRow", true) });
} }
} }
</tbody>
</table> </table>

@ -21,6 +21,7 @@
<col style="width:160px" /> <col style="width:160px" />
<col style="width:100px" /> <col style="width:100px" />
</colgroup> </colgroup>
<thead>
<tr> <tr>
<th>Series Title</th> <th>Series Title</th>
<th>Season #</th> <th>Season #</th>
@ -33,6 +34,8 @@
Status Status
</th> </th>
</tr> </tr>
</thead>
<tbody>
<tr class="title-row"> <tr class="title-row">
<td colspan="6"> <td colspan="6">
Yesterday Yesterday
@ -112,6 +115,7 @@
Html.RenderPartial("UpcomingEpisode", episode, new ViewDataDictionary { new KeyValuePair<string, object>("AltRow", true) }); Html.RenderPartial("UpcomingEpisode", episode, new ViewDataDictionary { new KeyValuePair<string, object>("AltRow", true) });
} }
} }
</tbody>
</table> </table>
@section Scripts{ @section Scripts{

Loading…
Cancel
Save