Skip to content

Commit a100266

Browse files
use the bootstrap table-success class to higlight rows (#35927)
1 parent 589722e commit a100266

File tree

9 files changed

+23
-23
lines changed

9 files changed

+23
-23
lines changed

aspnetcore/data/ef-mvc/intro/samples/cu-final/Views/Instructors/Index.cshtml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
string selectedRow = "";
2727
if (item.ID == (int?)ViewData["InstructorID"])
2828
{
29-
selectedRow = "success";
29+
selectedRow = "table-success";
3030
}
3131
<tr class="@selectedRow">
3232
<td>
@@ -79,7 +79,7 @@
7979
string selectedRow = "";
8080
if (item.CourseID == (int?)ViewData["CourseID"])
8181
{
82-
selectedRow = "success";
82+
selectedRow = "table-success";
8383
}
8484
<tr class="@selectedRow">
8585
<td>
@@ -122,4 +122,4 @@
122122
</tr>
123123
}
124124
</table>
125-
}
125+
}

aspnetcore/data/ef-mvc/intro/samples/cu/Views/Instructors/Index.cshtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
string selectedRow = "";
2727
if (item.ID == (int?)ViewData["InstructorID"])
2828
{
29-
selectedRow = "success";
29+
selectedRow = "table-success";
3030
}
3131
<tr class="@selectedRow">
3232
<td>
@@ -79,7 +79,7 @@
7979
string selectedRow = "";
8080
if (item.CourseID == (int?)ViewData["CourseID"])
8181
{
82-
selectedRow = "success";
82+
selectedRow = "table-success";
8383
}
8484
<tr class="@selectedRow">
8585
<td>

aspnetcore/data/ef-mvc/intro/samples/cu/Views/Instructors/Index1.cshtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
string selectedRow = "";
2727
if (item.ID == (int?)ViewData["InstructorID"])
2828
{
29-
selectedRow = "success";
29+
selectedRow = "table-success";
3030
}
3131
<tr class="@selectedRow">
3232
<td>
@@ -77,7 +77,7 @@
7777
string selectedRow = "";
7878
if (item.CourseID == (int?)ViewData["CourseID"])
7979
{
80-
selectedRow = "success";
80+
selectedRow = "table-success";
8181
}
8282
<tr class="@selectedRow">
8383
<td>

aspnetcore/data/ef-rp/intro/samples/cu/Pages/Instructors/Index.cshtml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
string selectedRow = "";
2828
if (item.ID == Model.InstructorID)
2929
{
30-
selectedRow = "success";
30+
selectedRow = "table-success";
3131
}
3232
<tr class="@selectedRow">
3333
<td>
@@ -80,7 +80,7 @@
8080
string selectedRow = "";
8181
if (item.CourseID == Model.CourseID)
8282
{
83-
selectedRow = "success";
83+
selectedRow = "table-success";
8484
}
8585
<tr class="@selectedRow">
8686
<td>
@@ -123,4 +123,4 @@
123123
</tr>
124124
}
125125
</table>
126-
}
126+
}

aspnetcore/data/ef-rp/intro/samples/cu/Pages/Instructors/IndexRRD.cshtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
string selectedRow = "";
2828
if (item.ID == Model.InstructorID)
2929
{
30-
selectedRow = "success";
30+
selectedRow = "table-success";
3131
}
3232
<tr class="@selectedRow">
3333
<td>
@@ -80,7 +80,7 @@
8080
string selectedRow = "";
8181
if (item.CourseID == Model.CourseID)
8282
{
83-
selectedRow = "success";
83+
selectedRow = "table-success";
8484
}
8585
<tr class="@selectedRow">
8686
<td>

aspnetcore/data/ef-rp/intro/samples/cu20snapshots/cu-part6-related/Pages/Instructors/Index.cshtml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
string selectedRow = "";
2828
if (item.ID == (int?)ViewData["InstructorID"])
2929
{
30-
selectedRow = "success";
30+
selectedRow = "table-success";
3131
}
3232
<tr class="@selectedRow">
3333
<td>
@@ -80,7 +80,7 @@
8080
string selectedRow = "";
8181
if (item.CourseID == (int?)ViewData["CourseID"])
8282
{
83-
selectedRow = "success";
83+
selectedRow = "table-success";
8484
}
8585
<tr class="@selectedRow">
8686
<td>
@@ -123,4 +123,4 @@
123123
</tr>
124124
}
125125
</table>
126-
}
126+
}

aspnetcore/data/ef-rp/intro/samples/cu20snapshots/cu-part7/Pages/Instructors/Index.cshtml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
string selectedRow = "";
2828
if (item.ID == (int?)ViewData["InstructorID"])
2929
{
30-
selectedRow = "success";
30+
selectedRow = "table-success";
3131
}
3232
<tr class="@selectedRow">
3333
<td>
@@ -80,7 +80,7 @@
8080
string selectedRow = "";
8181
if (item.CourseID == (int?)ViewData["CourseID"])
8282
{
83-
selectedRow = "success";
83+
selectedRow = "table-success";
8484
}
8585
<tr class="@selectedRow">
8686
<td>
@@ -123,4 +123,4 @@
123123
</tr>
124124
}
125125
</table>
126-
}
126+
}

aspnetcore/data/ef-rp/intro/samples/cu20snapshots/cu-part8/Pages/Instructors/Index.cshtml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
string selectedRow = "";
2828
if (item.ID == (int?)ViewData["InstructorID"])
2929
{
30-
selectedRow = "success";
30+
selectedRow = "table-success";
3131
}
3232
<tr class="@selectedRow">
3333
<td>
@@ -80,7 +80,7 @@
8080
string selectedRow = "";
8181
if (item.CourseID == (int?)ViewData["CourseID"])
8282
{
83-
selectedRow = "success";
83+
selectedRow = "table-success";
8484
}
8585
<tr class="@selectedRow">
8686
<td>
@@ -123,4 +123,4 @@
123123
</tr>
124124
}
125125
</table>
126-
}
126+
}

aspnetcore/data/ef-rp/read-related-data.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -803,13 +803,13 @@ The preceding markup makes the following changes:
803803

804804
* Added a **Courses** column that displays courses taught by each instructor. See [Explicit line transition](xref:mvc/views/razor#explicit-line-transition) for more about this razor syntax.
805805

806-
* Added code that dynamically adds `class="success"` to the `tr` element of the selected instructor. This sets a background color for the selected row using a Bootstrap class.
806+
* Added code that dynamically adds `class="table-success"` to the `tr` element of the selected instructor. This sets a background color for the selected row using a Bootstrap class.
807807

808808
```html
809809
string selectedRow = "";
810810
if (item.CourseID == Model.CourseID)
811811
{
812-
selectedRow = "success";
812+
selectedRow = "table-success";
813813
}
814814
<tr class="@selectedRow">
815815
```

0 commit comments

Comments
 (0)