summaryrefslogtreecommitdiff
path: root/addons/hr/static/src/xml
diff options
context:
space:
mode:
authorsgo@tinyerp.com <>2013-06-26 16:40:29 +0530
committersgo@tinyerp.com <>2013-06-26 16:40:29 +0530
commit2e272a76872cee16de1ecbdc8f67fdf4a84f27e4 (patch)
tree73883be0a6ba0f3ad7f0ee6299db56279d471c6b /addons/hr/static/src/xml
parent2ed45d19d31344e332ae3632abec8c791efab1f0 (diff)
parentc180afab26171617c1c7c22db5d9836b159e5e7d (diff)
[MERGE]sync with trunk
bzr revid: sgo@tinyerp.com-20130626111029-e6szwugpewn3cd2g
Diffstat (limited to 'addons/hr/static/src/xml')
-rw-r--r--addons/hr/static/src/xml/suggestions.xml36
1 files changed, 36 insertions, 0 deletions
diff --git a/addons/hr/static/src/xml/suggestions.xml b/addons/hr/static/src/xml/suggestions.xml
new file mode 100644
index 00000000000..f3095627bae
--- /dev/null
+++ b/addons/hr/static/src/xml/suggestions.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<template>
+
+ <!-- Employees placeholder in sidebar -->
+ <t t-extend="mail.wall.sidebar">
+ <t t-jquery=".oe_mail_wall_sidebar" t-operation="append">
+ <div class="oe_suggestions_employees"></div>
+ </t>
+ </t>
+
+ <!-- Suggested employees -->
+ <div t-name="hr.suggestions.employees" class="oe_sidebar_suggestion oe_suggestion_employee">
+ <div class="oe_suggest_title">
+ <a class="oe_suggestion_remove oe_suggestion_employee oe_e">X</a>
+ <h2>Suggested Employees</h2>
+ </div>
+ <div class="oe_suggest_items">
+ <t t-foreach="widget.employees" t-as="result">
+ <div class="oe_suggested_item">
+ <div class="oe_suggested_item_image">
+ <a t-attf-href="#model=hr.employee&amp;id=#{result.id}">
+ <img t-attf-src="{result.image}" t-attf-alt="{result.name}"/>
+ </a>
+ </div>
+ <div class="oe_suggested_item_content">
+ <a class="oe_suggestion_item_name" t-attf-href="#model=hr.employee&amp;id=#{result.id}"><t t-esc="result.name"/></a>
+ <a class="oe_suggestion_remove_item oe_suggestion_employee oe_e" t-attf-id="{result.id}">X</a>
+ <br/>
+ <button class="oe_suggestion_follow" t-att-id="result.id">Follow</button>
+ </div>
+ </div>
+ </t>
+ </div>
+ </div>
+
+</template>