Skip to content

Commit a6d2308

Browse files
feat: move candidate dashboard onto harvest v3
1 parent 468594a commit a6d2308

6 files changed

Lines changed: 565 additions & 588 deletions

File tree

templates/careers/application/_activate-email.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
<p>Thank you for the time you have spent on this application. We would love to collect your thoughts on our process and will shortly be sending you a candidate survey to complete via email. We would very much appreciate your time in helping us understand your feedback.</p>
66
<p>We would like to take this opportunity to wish you the very best with your next career steps.</p>
77
<p>Regards,</p>
8-
<p>{{ hiring_lead["name"] }}</p>
8+
<p>{{ hiring_lead["name"] if hiring_lead else "Talent team" }}</p>
99
<p>For further information on data collection, please refer to our <a href="/legal/data-privacy/recruitment" target="_blank">recruitment privacy notice</a> and <a href="/legal/data-privacy" target="_blank">privacy policy</a>.</p>
10-
</div>
10+
</div>

templates/careers/application/_withdrawal-form.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ <h2 class="u-no-margin--bottom" id="modal-title">Application withdrawal</h2>
1313
<label for="email">Email address</label>
1414
<input required type="email" id="email" name="email" placeholder="example@canonical.com" autocomplete="email"/>
1515
<label for="textarea">Reason you wish to withdraw your application</label>
16-
<select name="withdrawal-reason" id="withdrawal-reason" required>
16+
<select name="withdrawal-reason" id="withdrawal-reason" data-other-reason-value="{{ other_withdrawal_reason_value }}" required>
1717
<option value="" disabled="disabled" selected="">Select</option>
1818
{% for reason_id, reason_message in withdrawal_reasons.items() %}
1919
<option value="{{ reason_id }}">{{ reason_message }}</option>
@@ -30,4 +30,4 @@ <h2 class="u-no-margin--bottom" id="modal-title">Application withdrawal</h2>
3030
</div>
3131
</div>
3232
</section>
33-
</div>
33+
</div>

templates/careers/application/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ <h1 class="p-heading--2 u-sv2">
9292
<br />
9393
Application for {{ application["role_name"] }}
9494
</h1>
95-
{% if "stage_progress" in application and application["stage_progress"]["assessment"] and application['source']['id'] == 2 and application['job_post_id'] %}
95+
{% if "stage_progress" in application and application["stage_progress"]["assessment"] and application['source_id'] == 2 and application['job_post_id'] %}
9696
<p class="u-no-margin--bottom">
9797
<a href="/careers/{{ application['job_post_id'] }}"
9898
class="p-link--inverted">Read more about this role&nbsp;&rsaquo;</a>
@@ -102,15 +102,15 @@ <h1 class="p-heading--2 u-sv2">
102102
</div>
103103
</section>
104104

105-
{% if application["candidate"]["application_ids"]|length >= 2 %}
105+
{% if application["candidate"]["applications"]|length >= 2 %}
106106
<section class="p-strip--light is-shallow">
107107
<div class="u-fixed-width">
108108
<h2 class="p-text--x-small-capitalised u-no-margin--bottom">The status of your other applications:</h2>
109109
<ul class="p-inline-list--middot u-no-margin--bottom">
110110
{% for app in application["candidate"]["applications"] %}
111-
{% if app["status"] != 'rejected' and app["id"] != application["id"] and app["jobs"]|length > 0 and app["jobs"][0]["id"] != second_look_req_id %}
111+
{% if app["status"] != 'rejected' and app["id"] != application["id"] and app["jobs"]|length > 0 and app["jobs"][0]["id"] != second_look_req_id and app["custom_fields"]["canonical_com_application_page"] %}
112112
<li class="p-inline-list__item">
113-
<a href='{{ app["custom_fields"]["canonical_com_application_dashboard"] }}'>{{ app["jobs"][0]["name"] }}</a>
113+
<a href='{{ app["custom_fields"]["canonical_com_application_page"] }}'>{{ app["jobs"][0]["name"] }}</a>
114114
</li>
115115
{% endif %}
116116
{% endfor %}
@@ -120,7 +120,7 @@ <h2 class="p-text--x-small-capitalised u-no-margin--bottom">The status of your o
120120
{% endif %}
121121
<!-- End thank you for applying section. -->
122122

123-
{% if "stage_progress" in application and application["stage_progress"]["assessment"] or application["stage_progress"]["early_stage"] or application["stage_progress"]["late_stage"] or application["stage_progress"]["offer"] %}
123+
{% if application["hiring_lead"] and ("stage_progress" in application and application["stage_progress"]["assessment"] or application["stage_progress"]["early_stage"] or application["stage_progress"]["late_stage"] or application["stage_progress"]["offer"]) %}
124124
<!-- Hiring lead section. -->
125125
<section class="p-strip">
126126
<div class="row">
@@ -335,7 +335,7 @@ <h1>Your application has been withdrawn</h1>
335335
withdrawalReason.addEventListener('change', function () {
336336
const withdrawalReasonOther = document.getElementById('withdrawal-reason-other');
337337
const otherInput = document.querySelector('.other-input');
338-
if (withdrawalReason.value === "33") {
338+
if (withdrawalReason.value === withdrawalReason.dataset.otherReasonValue) {
339339
otherInput.style.display = "block";
340340
withdrawalReasonOther.setAttribute("required", "true");
341341
} else {

0 commit comments

Comments
 (0)