Skip to content

Commit

Permalink
CON-997 Rename few more
Browse files Browse the repository at this point in the history
  • Loading branch information
indiwiz committed Nov 5, 2019
1 parent 119e065 commit e0c1f5f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public async Task<VacancyPreviewViewModel> GetVacancyPreviewViewModelAsync(Vacan
vm.SoftValidationErrors = GetSoftValidationErrors(vacancy);
vm.EducationLevelName = EducationLevelNumberHelper.GetEducationLevelName(programme.EducationLevelNumber);

if (programme != null) vm.Level = programme.ApprenticeshipLevel;
if (programme != null) vm.ApprenticeshipLevel = programme.ApprenticeshipLevel;

if (vacancy.Status == VacancyStatus.Referred)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ private bool IsEditRequired(string fieldIdentifier)
}.Count(s => s == VacancyPreviewSectionState.Incomplete || s == VacancyPreviewSectionState.InvalidIncomplete);

public string IncompleteRequiredSectionText => "section".ToQuantity(IncompleteRequiredSectionCount, ShowQuantityAs.None);
public ApprenticeshipLevel Level { get; set; }
public ApprenticeshipLevel ApprenticeshipLevel { get; set; }

public IList<string> OrderedFieldNames => new List<string>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public async Task<VacancyPreviewViewModel> GetVacancyPreviewViewModelAsync(Vacan
vm.CanShowDraftHeader = vacancy.Status == VacancyStatus.Draft;
vm.SoftValidationErrors = GetSoftValidationErrors(vacancy);

if (programme != null) vm.Level = programme.ApprenticeshipLevel;
if (programme != null) vm.ApprenticeshipLevel = programme.ApprenticeshipLevel;

if (vacancy.Status == VacancyStatus.Referred)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public class VacancyPreviewViewModel : DisplayVacancyViewModel
public bool VacancyDescriptionRequiresEdit => IsEditRequired(FieldIdentifiers.VacancyDescription);
public bool WageRequiresEdit => IsEditRequired(FieldIdentifiers.Wage);
public bool WorkingWeekRequiresEdit => IsEditRequired(FieldIdentifiers.WorkingWeek);
public ApprenticeshipLevel Level { get; set; }
public ApprenticeshipLevel ApprenticeshipLevel { get; set; }
private bool IsEditRequired(string fieldIdentifier)
{
return Review.FieldIndicators.Any(f => f.ReviewFieldIdentifier == fieldIdentifier);
Expand Down

0 comments on commit e0c1f5f

Please sign in to comment.