Search UI complete (#3)

"Back" doesn't preserve search results; need to fix that before this is done
This commit is contained in:
2021-01-18 14:52:24 -05:00
parent 7839b8eb57
commit feb3c5fd4a
5 changed files with 51 additions and 8 deletions

View File

@@ -14,9 +14,9 @@
{
if (!Searched)
{
<p>Instructions go here</p>
<p>Enter one or more criteria to filter results, or just click &ldquo;Search&rdquo; to list all profiles.</p>
}
<section>
<Collapsible HeaderText="Search Criteria" Collapsed=@(Searched && SearchResults.Any())>
<EditForm Model=@Criteria OnValidSubmit=@RetrieveProfiles>
<div class="form-row">
<div class="col col-12 col-sm-6 col-md-4 col-lg-3">
@@ -64,7 +64,8 @@
</div>
</div>
</EditForm>
</section>
</Collapsible>
<br>
@if (SearchResults.Any())
{
<table class="table table-sm table-hover">
@@ -93,5 +94,9 @@
</tbody>
</table>
}
else if (Searched)
{
<p>No results found for the specified criteria</p>
}
}
</ErrorList>

View File

@@ -54,9 +54,6 @@ namespace JobsJobsJobs.Client.Pages.Profile
{
ErrorMessages.Add(continentResult.Error);
}
// TODO: remove this call once the filter is ready
await RetrieveProfiles();
}
/// <summary>