-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
63fbb39
commit f8b0321
Showing
2 changed files
with
14 additions
and
14 deletions.
There are no files selected for viewing
26 changes: 13 additions & 13 deletions
26
app/views/jobseekers/job_applications/build/_employment_summary_card.html.slim
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 |
---|---|---|
@@ -1,34 +1,34 @@ | ||
div.govuk-summary-card | ||
div.govuk-summary-card__title-wrapper | ||
.govuk-summary-card | ||
.govuk-summary-card__title-wrapper | ||
h2.govuk-summary-card__title = employment.job_title | ||
ul.govuk-summary-card__actions | ||
= govuk_link_to t("buttons.change_hidden_text_html", hidden_text: employment.job_title), edit_jobseekers_job_application_employment_path(job_application, employment), class: "govuk-link--no-visited-state" | ||
= govuk_link_to t("buttons.delete_hidden_text_html", hidden_text: employment.job_title), jobseekers_job_application_employment_path(job_application, employment), method: :delete | ||
div.govuk-summary-card__content | ||
.govuk-summary-card__content | ||
dl.govuk-summary-list | ||
div.govuk-summary-list__row | ||
.govuk-summary-list__row | ||
dt.govuk-summary-list__key = t("jobseekers.job_applications.employments.organisation") | ||
dd.govuk-summary-list__value = employment.organisation.presence | ||
div.govuk-summary-list__row | ||
.govuk-summary-list__row | ||
dt.govuk-summary-list__key = t("jobseekers.job_applications.employments.started_on") | ||
dd.govuk-summary-list__value = employment.started_on.to_formatted_s(:month_year) | ||
- case employment.current_role | ||
- when "yes" | ||
div.govuk-summary-list__row | ||
.govuk-summary-list__row | ||
dt.govuk-summary-list__key = t("jobseekers.job_applications.employments.ended_on") | ||
dd.govuk-summary-list__value = t("jobseekers.job_applications.employments.current_role") | ||
- when "no" | ||
div.govuk-summary-list__row | ||
.govuk-summary-list__row | ||
dt.govuk-summary-list__key = t("jobseekers.job_applications.employments.ended_on") | ||
dd.govuk-summary-list__value = employment.ended_on.to_formatted_s(:month_year) | ||
= govuk_details summary_text: "Additional information" do | ||
div.govuk-summary-list__row | ||
|
||
= govuk_details summary_text: "Additional information" do | ||
.govuk-summary-list__row | ||
dt.govuk-summary-list__key = t("jobseekers.job_applications.employments.subjects") | ||
dd.govuk-summary-list__value = employment.subjects.presence || t("jobseekers.job_applications.not_defined") | ||
div.govuk-summary-list__row | ||
.govuk-summary-list__row | ||
dt.govuk-summary-list__key = t("jobseekers.job_applications.employments.main_duties") | ||
dd.govuk-summary-list__value = simple_format(employment.main_duties) | ||
div.govuk-summary-list__row | ||
.govuk-summary-list__row | ||
dt.govuk-summary-list__key = t("jobseekers.job_applications.employments.reason_for_leaving") | ||
dd.govuk-summary-list__value = employment.reason_for_leaving | ||
dd.govuk-summary-list__value = employment.reason_for_leaving |
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