-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2963 from DFE-Digital/employment-contract
Add an employment contract task to the admin
- Loading branch information
Showing
7 changed files
with
45 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<% content_for(:page_title) { page_title("Claim #{@claim.reference} employment contract check for #{@claim.policy.short_name}") } %> | ||
<%= link_to "Back", admin_claim_tasks_path(claim_id: @claim.id), class: "govuk-back-link" %> | ||
<%= render "shared/error_summary", instance: @task, errored_field_id_overrides: { "passed": "task_passed_true" } if @task.errors.any? %> | ||
|
||
<div class="govuk-grid-row"> | ||
<%= render "claim_summary", claim: @claim, heading: "Employment contract check" %> | ||
|
||
<div class="govuk-grid-column-two-thirds"> | ||
<h2 class="govuk-heading-l"><%= @current_task_name.humanize %></h2> | ||
</div> | ||
|
||
<div class="govuk-grid-column-two-thirds"> | ||
<%= render "admin/claims/answers", answers: @tasks_presenter.employment_contract %> | ||
</div> | ||
|
||
<div class="govuk-grid-column-two-thirds"> | ||
<% if !@task.passed.nil? %> | ||
<%= render "task_outcome", task: @task %> | ||
<% else %> | ||
<%= render "form", task_name: "employment_contract", claim: @claim %> | ||
<% end %> | ||
|
||
<%= render partial: "admin/task_pagination" %> | ||
</div> | ||
</div> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters