[IMP] website_hr_recruitment: use t-field in website template
Use a `t-field` on the job apply template to make it editable through the editor. closes odoo/odoo#100468 Signed-off-by: Kevin Baptiste <kba@odoo.com>
This commit is contained in:
@@ -10,17 +10,11 @@ class Job(models.Model):
|
||||
job_details = fields.Html('Process Details',
|
||||
help="Complementary information that will appear on the job submission page",
|
||||
default="""
|
||||
<div class="d-flex flex-column align-items-baseline">
|
||||
<span class="text-muted small">Time to Answer</span>
|
||||
<h6>2 open days</h6>
|
||||
</div>
|
||||
<div class="d-flex flex-column align-items-baseline">
|
||||
<span class="text-muted small">Process</span>
|
||||
<h6>1 Phone Call</h6>
|
||||
<h6>1 Onsite Interview</h6>
|
||||
</div>
|
||||
<div class="d-flex flex-column align-items-baseline">
|
||||
<span class="text-muted small">Days to get an Offer</span>
|
||||
<h6>4 Days after Interview</h6>
|
||||
</div>
|
||||
<span class="text-muted small">Time to Answer</span>
|
||||
<h6>2 open days</h6>
|
||||
<span class="text-muted small">Process</span>
|
||||
<h6>1 Phone Call</h6>
|
||||
<h6>1 Onsite Interview</h6>
|
||||
<span class="text-muted small">Days to get an Offer</span>
|
||||
<h6>4 Days after Interview</h6>
|
||||
""")
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
<xpath expr="//div[@name='bottom_right']" position="replace">
|
||||
<field name="website_url" invisible="1"/>
|
||||
<div class="o_link_trackers col-6 text-end">
|
||||
<a t-att-href="record.website_url.raw_value" target="_blank">
|
||||
<a type="object" name="open_website_url">
|
||||
<i class="fa fa-fw fa-external-link" role="img"></i>
|
||||
Job Page
|
||||
</a>
|
||||
|
||||
@@ -288,7 +288,7 @@
|
||||
<h6 t-field="job.contract_type_id"/>
|
||||
</div>
|
||||
<hr t-if="job.job_details" class="w-50 my-3"/>
|
||||
<span t-esc="job.job_details"/>
|
||||
<div t-field="job.job_details"/>
|
||||
</section>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user