Debian Codegraph @

addons/hr_skills/static/src/fields/resume_one2many/resume_one2many.xml

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <odoo>
3 <t t-name="hr_skills.ResumeListRenderer" t-inherit-mode="primary" t-inherit="hr_skills.SkillsListRenderer">
4 <xpath expr="//table" position="attributes">
5 <attribute name="t-attf-class" add="table-borderless {{ !showTable ? 'd-none' : ''}}" remove="table-striped" separator=" "/>
6 </xpath>
7 <xpath expr="//table" position="after">
8 <t t-if="!showTable">
9 <button t-on-click="props.onAdd" class="btn btn-secondary ms-4 mt-3" role="button" t-if="isEditable">
10 Create Resume Lines
11 </button>
12 </t>
13 </xpath>
14 <xpath expr="//div[@name='skills_header']" position="replace"/>
15 <xpath expr="//thead/tr" position="replace">
16 <tr>
17 <th style="width: 32px; min-width: 32px;"></th>
18 <th class="w-100"></th>
19 <th t-if="isEditable" class="o_list_actions_header" style="width: 32px; min-width: 32px"></th>
20 </tr>
21 </xpath>
22 <xpath expr="//div[@name='no_skills']" position="replace"/>
23 </t>
24
25 <t t-name="hr_skills.ResumeListRenderer.Rows" t-inherit-mode="primary" t-inherit="hr_skills.SkillsListRenderer.Rows">
26 <xpath expr="//tr" position="attributes">
27 <attribute name="class" add="o_resume_group_header" separator=" "/>
28 </xpath>
29 <xpath expr="//th[hasclass('o_group_name')]" position="after">
30 <th></th>
31 </xpath>
32 <xpath expr="//button[@id='add_button']" position="attributes">
33 <attribute name="t-on-click">() => props.onAdd({ context: { default_line_type_id: skill_group[1].id }})</attribute>
34 </xpath>
35 </t>
36
37 <t t-name="hr_skills.ResumeListRenderer.RecordRow" t-inherit-mode="primary" t-inherit="web.ListRenderer.RecordRow">
38 <xpath expr="//t[@t-foreach='getColumns(record)']" position="replace">
39 <t t-set="data" t-value="record.data"/>
40 <td class="o_resume_timeline_cell position-relative pe-lg-2">
41 <div class="rounded-circle bg-info position-relative"/>
42 </td>
43 <td class="o_data_cell pt-0" t-on-click="(ev) => this.onCellClicked(record, null, ev)">
44 <div t-attf-class="o_resume_line" t-att-data-id="id">
45 <small class="o_resume_line_dates fw-bold">
46 <t t-out="formatDate(data.date_start)"/>
47 <t t-if="!data.is_course">
48 -
49 <t t-if="data.date_end" t-out="formatDate(data.date_end)"/>
50 <t t-else="">
51 Current
52 </t>
53 </t>
54 <t t-if="data.is_course &amp;&amp; data.duration > 0">
55 (<t t-out="data.duration"/> hours)
56 </t>
57 </small>
58 <div class="d-flex align-items-center">
59 <h4 class="o_resume_line_title mt-2 me-2" t-esc="data.name"/>
60 <t t-if="data.is_course">
61 <a id="external_link" t-if="data.external_url" t-attf-href="#{data.external_url}" target="_blank" class="ms-2 fa fa-external-link btn-secondary" style="font-size: 1rem;"/>
62 </t>
63 </div>
64 <p t-if="data.description" class="o_resume_line_desc" t-out="data.description" t-ref="link-target-blank"/>
65 </div>
66 </td>
67 </xpath>
68 </t>
69 </odoo>