Skip to content

Commit

Permalink
ER-1019 - Added field indicators in QA for EmployerName (#608) +semve…
Browse files Browse the repository at this point in the history
…r: patch
  • Loading branch information
chrisjensenuk authored May 22, 2019
1 parent 32de44f commit 0dcdc12
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/QA/QA.Web/Mappings/ReviewFieldMappingLookups.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public static ReviewFieldMappingLookupsForPage GetPreviewReviewFieldIndicators()
new ReviewFieldIndicatorViewModel(FieldIdentifiers.ThingsToConsider, Anchors.ThingsToConsider),
new ReviewFieldIndicatorViewModel(FieldIdentifiers.EmployerDescription, Anchors.EmployerDescription),
new ReviewFieldIndicatorViewModel(FieldIdentifiers.DisabilityConfident, Anchors.DisabilityConfident),
new ReviewFieldIndicatorViewModel(FieldIdentifiers.EmployerName, Anchors.EmployerName),
new ReviewFieldIndicatorViewModel(FieldIdentifiers.EmployerWebsiteUrl, Anchors.EmployerWebsiteUrl),
new ReviewFieldIndicatorViewModel(FieldIdentifiers.EmployerContact, Anchors.EmployerContact),
new ReviewFieldIndicatorViewModel(FieldIdentifiers.EmployerAddress, Anchors.EmployerAddress),
Expand All @@ -42,7 +43,7 @@ public static ReviewFieldMappingLookupsForPage GetPreviewReviewFieldIndicators()
{
{ FieldIdResolver.ToFieldId(v => v.EmployerAccountId), new string[0]},
{ FieldIdResolver.ToFieldId(v => v.Title), new[]{ FieldIdentifiers.Title} },
{ FieldIdResolver.ToFieldId(v => v.EmployerName), new string[0] },
{ FieldIdResolver.ToFieldId(v => v.EmployerName), new[]{FieldIdentifiers.EmployerName} },
{ FieldIdResolver.ToFieldId(v => v.ShortDescription), new []{ FieldIdentifiers.ShortDescription} },
{ FieldIdResolver.ToFieldId(v => v.ClosingDate), new []{ FieldIdentifiers.ClosingDate} },
{ FieldIdResolver.ToFieldId(v => v.Wage.WeeklyHours), new []{ FieldIdentifiers.WorkingWeek} },
Expand Down
7 changes: 6 additions & 1 deletion src/QA/QA.Web/Views/Review/ReadonlyReview.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,14 @@
<h3 class="govuk-heading-s">Description</h3>
<p class="govuk-body">@Model.EmployerDescription</p>
</div>
<div>
<div id="@Anchors.EmployerName">
<h3 class="govuk-heading-s">Employer</h3>
<p class="govuk-body">@Model.EmployerName</p>

<div asp-show="@Model.IsAnonymous" class="govuk-inset-text">
<h3 class="govuk-heading-s">Reason for being anonymous (does not show on vacancy)</h3>
<p>@Model.AnonymousReason</p>
</div>
</div>
<div id="@Anchors.DisabilityConfident">
<h3 class="govuk-heading-s">Disability Confident (optional)</h3>
Expand Down

0 comments on commit 0dcdc12

Please sign in to comment.