diff options
Diffstat (limited to 'hr_organizational_chart/static/src/xml')
| -rw-r--r-- | hr_organizational_chart/static/src/xml/chart_view.xml | 20 | ||||
| -rw-r--r-- | hr_organizational_chart/static/src/xml/hr_org_chart_template.xml | 20 |
2 files changed, 40 insertions, 0 deletions
diff --git a/hr_organizational_chart/static/src/xml/chart_view.xml b/hr_organizational_chart/static/src/xml/chart_view.xml new file mode 100644 index 0000000..ebdfbb9 --- /dev/null +++ b/hr_organizational_chart/static/src/xml/chart_view.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<templates id="template" xml:space="preserve"> + + <t t-name="OrganizationalEmployeeChart"> + <div id="o_organizational_chart"> + <h4 class="o_org_chart_title mb16 mt0" align="center">Organization Chart</h4> + <center> + <div id="o_parent_employee" class="empchart"> + + </div> + </center> + </div> + + + + + </t> + + </templates> + diff --git a/hr_organizational_chart/static/src/xml/hr_org_chart_template.xml b/hr_organizational_chart/static/src/xml/hr_org_chart_template.xml new file mode 100644 index 0000000..71ad1a0 --- /dev/null +++ b/hr_organizational_chart/static/src/xml/hr_org_chart_template.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<templates xml:space="preserve"> + <t t-name="hr_organizational_chart.org_chart_template"> + <h4 class="o_org_chart_title mb16 mt0" align="center">Organization Chart</h4> + <div id="chart-container"></div> + <script type="text/javascript"> + $(function() { + <!-- Get Employee Data --> + var datascource = employee_data.values; + + var oc = $('#chart-container').orgchart({ + 'data' : datascource, + 'nodeTemplate': nodeTemplate, + 'toggleSiblingsResp': true + }); + + }); + </script> + </t> +</templates> |
