diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
| commit | 3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch) | |
| tree | a44932296ef4a9b71d5f010906253d8c53727726 /addons/hr_skills/static/src/xml | |
| parent | 0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff) | |
initial commit 2
Diffstat (limited to 'addons/hr_skills/static/src/xml')
| -rw-r--r-- | addons/hr_skills/static/src/xml/resume_templates.xml | 55 | ||||
| -rw-r--r-- | addons/hr_skills/static/src/xml/skills_templates.xml | 24 |
2 files changed, 79 insertions, 0 deletions
diff --git a/addons/hr_skills/static/src/xml/resume_templates.xml b/addons/hr_skills/static/src/xml/resume_templates.xml new file mode 100644 index 00000000..5db3b006 --- /dev/null +++ b/addons/hr_skills/static/src/xml/resume_templates.xml @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="UTF-8"?> +<templates id="template" xml:space="preserve"> + +<t t-name="hr_resume_data_row"> + <tr class="o_data_row" t-attf-class="o_data_row #{is_last? 'o_data_row_last' : ''}" t-att-data-id="id"> + <t t-if="data.display_type === 'classic'"> + <td class="o_resume_timeline_cell position-relative pr-lg-2"> + <div class="rounded-circle bg-info position-relative"/> + </td> + <td class="o_data_cell pt-0 w-100"> + <div class="o_resume_line" t-att-data-id="id"> + <small class="o_resume_line_dates"> + <b t-esc="data.date_start"/> - <b t-esc="data.date_end"/> + </small> + <h4 class="o_resume_line_title mt-2" t-esc="data.name"/> + <p t-if="data.description" class="o_resume_line_desc" t-esc="data.description"/> + </div> + </td> + </t> + </tr> +</t> + +<t t-name="hr_trash_button"> + <td class="o_list_record_remove pr-3"> + <button name="delete" arial-label="Delete row" class="btn btn-secondary"> + <i class="fa fa-trash"/> + </button> + </td> +</t> + +<t t-name="hr_resume_group_row"> + <tr class="o_resume_group_header"> + <td class="o_group_name" colspan="100%"><span class="o_horizontal_separator my-0" t-esc="display_name"/></td> + </tr> +</t> + +<t t-name="group_add_item"> + <t t-set="empty" t-value="Object.keys(context).length == 2"/> + + <div t-attf-class="o_field_x2many_list_row_add #{empty? 'd-block w-100' : 'd-inline pull-right'}"> + <div t-if="empty" class="o_resume_empty_helper o_horizontal_separator text-muted my-0"> + <em>Resumé empty</em> + </div> + <a href="#" + role="button" + t-attf-class="btn o-kanban-button-new #{empty? 'btn-primary mt-3' : 'btn-secondary btn-sm'}" + t-attf-data-context="{{ context }}"> + <t t-if="empty">CREATE A NEW ENTRY</t> + <t t-else="">ADD</t> + </a> + </div> +</t> + + +</templates> diff --git a/addons/hr_skills/static/src/xml/skills_templates.xml b/addons/hr_skills/static/src/xml/skills_templates.xml new file mode 100644 index 00000000..e078ca3e --- /dev/null +++ b/addons/hr_skills/static/src/xml/skills_templates.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8"?> +<templates id="template" xml:space="preserve"> + +<t t-name="hr_skill_data_row"> + <tr class="o_data_row" t-att-data-id="id"> + <td class="o_data_cell o_skill_cell w-100"> + <t t-esc="data.skill_id.data.display_name"/> + </td> + <td class="o_data_cell o_skill_cell pr-3"> + <t t-esc="data.skill_level_id.data.display_name"/> + </td> + </tr> +</t> + +<t t-name="hr_default_group_row"> + <tr class="o_group_header o_group_has_content"> + <td class="o_group_name border-0 pr-2" colspan="99"> + <b t-esc="display_name"/> + </td> + </tr> +</t> + + +</templates> |
