Skip to content

Commit 496224b

Browse files
committed
TD-3621 Changing Text Of Placeholder Text based on condition
1 parent b7b7921 commit 496224b

File tree

1 file changed

+8
-1
lines changed
  • DigitalLearningSolutions.Web/Views/Shared/SearchablePage

1 file changed

+8
-1
lines changed

DigitalLearningSolutions.Web/Views/Shared/SearchablePage/_Search.cshtml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,14 @@
1818
@Model.SearchLabel
1919
</label>
2020

21-
<input class="search-box nhsuk-input" id="search-field" name="searchString" type="search" placeholder="Search by activity name" autocomplete="off" value="@Model.SearchString" />
21+
@if (Model.SearchLabel == "Search courses")
22+
{
23+
<input class="search-box nhsuk-input" id="search-field" name="searchString" type="search" placeholder="Search by activity name" autocomplete="off" value="@Model.SearchString" />
24+
}
25+
else
26+
{
27+
<input class="search-box nhsuk-input" id="search-field" name="searchString" type="search" placeholder="Search" autocomplete="off" value="@Model.SearchString" />
28+
}
2229

2330
<button class="nhsuk-button search-submit"
2431
type="submit"

0 commit comments

Comments
 (0)