Show single location review forward action
This commit is contained in:
parent
c82430da04
commit
577ec581df
@ -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("Showing @Model.LocationReview.ShowingStart", StringComparison.Ordinal), "Location review should show N-M of T pending.");
|
||||||
Assert(view.Contains("name=\"intent\" value=\"previous\"", StringComparison.Ordinal)
|
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.");
|
&& 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("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("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.");
|
Assert(!view.Contains("data-location-bulk=\"create-all\"", StringComparison.Ordinal), "Location review should not offer bulk create-all.");
|
||||||
|
|||||||
@ -206,9 +206,12 @@
|
|||||||
}
|
}
|
||||||
@if (Model.LocationReview.HasNextPage)
|
@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>
|
<button class="btn btn-primary" type="submit" name="intent" value="save" data-busy-label="Saving locations...">Save location decisions</button>
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user