Show single location review forward action

This commit is contained in:
Nick Beckley 2026-09-02 19:00:37 +00:00
parent c82430da04
commit 577ec581df
2 changed files with 8 additions and 2 deletions

View File

@ -2720,6 +2720,9 @@ static void LocationReviewUxSupportsLargeCandidateSets()
Assert(view.Contains("Showing @Model.LocationReview.ShowingStart", StringComparison.Ordinal), "Location review should show N-M of T pending.");
Assert(view.Contains("name=\"intent\" value=\"previous\"", StringComparison.Ordinal)
&& view.Contains("name=\"intent\" value=\"next\"", StringComparison.Ordinal), "Previous and Next should submit the current page so decisions persist before navigation.");
Assert(view.Contains("if (Model.LocationReview.HasNextPage)", StringComparison.Ordinal)
&& view.Contains("else", StringComparison.Ordinal)
&& view.Contains("name=\"intent\" value=\"save\"", StringComparison.Ordinal), "Location review should show Next before the last page and Save only on the last page.");
Assert(view.Contains("name=\"PageNumber\"", StringComparison.Ordinal), "Location review should post the current page number.");
Assert(view.Contains("EvidenceSummaries", StringComparison.Ordinal), "Location review should expose compact aggregated evidence.");
Assert(!view.Contains("data-location-bulk=\"create-all\"", StringComparison.Ordinal), "Location review should not offer bulk create-all.");

View File

@ -206,9 +206,12 @@
}
@if (Model.LocationReview.HasNextPage)
{
<button class="btn btn-outline-secondary" type="submit" name="intent" value="next" data-busy-label="Saving page...">Next</button>
<button class="btn btn-primary" type="submit" name="intent" value="next" data-busy-label="Saving page...">Next</button>
}
else
{
<button class="btn btn-primary" type="submit" name="intent" value="save" data-busy-label="Saving locations...">Save location decisions</button>
}
</div>
</form>
}