2012-02-02 14:18:43 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<template >
2012-02-23 16:32:36 +00:00
2012-10-17 09:43:22 +00:00
<!-- this template contains the mail widget and is used to namespace the css -->
2012-10-17 13:37:50 +00:00
<t t-name= "mail.Widget" >
2012-10-17 09:43:22 +00:00
<div class= "oe_mail" >
</div>
</t>
2012-10-05 10:46:54 +00:00
<!--
mail.compose_message template
This template holds the composition form to write a note or send
an e-mail. It contains by default a textarea, that will be replaced
by another composition form in the main wall composition form, or
for main thread composition form in document form view.
-->
<t t-name= "mail.compose_message" >
2012-10-17 09:43:22 +00:00
<div class= "oe_msg oe_msg_composer" >
<div class= "oe_msg_left" >
2012-10-18 08:04:11 +00:00
<img class= "oe_msg_icon" alt= "User img" t-attf-src= "#{widget.datasets.avatar}" />
2012-10-17 09:43:22 +00:00
</div>
<div class= "oe_msg_center" >
<div class= "oe_msg_content" >
<textarea class= "field_text" placeholder= "Add your comment here..." />
</div> <div class= "oe_msg_footer" >
<div class= "oe_msg_attachment_list" />
<button class= "oe_post" > Post</button>
2012-10-05 10:46:54 +00:00
<t t-call= "mail.compose_message.add_attachment" />
2012-10-17 09:43:22 +00:00
<t t-call= "mail.thread.list_recipients" />
<!-- <a class="oe_cancel oe_e">X</a> -->
<button class= "oe_full oe_right" > Full</button>
2012-10-05 10:46:54 +00:00
</div>
</div>
</div>
</t>
2012-10-18 08:04:11 +00:00
<!--
mail.compose_message.compact template
This template holds the composition form to write a message, this box is converted into
mail.compose_message when focus on textarea
-->
<t t-name= "mail.compose_message.compact" >
<div class= "oe_msg oe_msg_composer_compact" >
<textarea class= "field_text oe_compact" placeholder= "Add your comment here..." />
</div>
</t>
2012-10-05 10:46:54 +00:00
<!--
mail.compose_message.add_attachment template
Small template to be inserted in the composition for add attachments
-->
<t t-name= "mail.compose_message.add_attachment" >
<div class= "oe_attachment_file" >
<div class= "oe_add" >
2012-10-08 14:26:54 +00:00
<!-- uploader of file -->
2012-10-05 10:46:54 +00:00
<button > <span class= "oe_e" > p</span> </button>
2012-10-08 14:26:54 +00:00
<t t-call= "HiddenInputFile" >
<t t-set= "fileupload_id" t-value= "widget.fileupload_id" />
<t t-set= "fileupload_action" > /web/binary/upload_attachment</t>
2012-10-17 09:35:59 +00:00
<input type= "hidden" name= "model" value= "mail.message" />
2012-10-08 14:26:54 +00:00
<input type= "hidden" name= "id" value= "0" />
<input type= "hidden" name= "session_id" t-att-value= "widget.session.session_id" />
</t>
2012-10-05 10:46:54 +00:00
</div>
</div>
</t>
<!--
mail.thread.message.attachments template
Template used to display attachments in a mail.message
-->
<t t-name= "mail.thread.message.attachments" >
2012-10-17 15:09:41 +00:00
<ul t-attf-class= "oe_msg_attachments #{widget.datasets.attachment_ids[0]?'':'oe_hidden'}" >
2012-10-15 14:17:31 +00:00
<t t-foreach= "widget.datasets.attachment_ids" t-as= "attachment" >
2012-10-05 10:46:54 +00:00
<li >
2012-10-09 13:28:24 +00:00
<span t-if= "(attachment.upload or attachment.percent_loaded<100)" t-attf-title= "{(attachment.name || attachment.filename) + (attachment.date?' \n('+attachment.date+')':'' )}" t-attf-name= "{attachment.name || attachment.filename}" >
<div class= "oe_upload_in_process" >
2012-10-17 09:35:59 +00:00
<span > ...Upload in progress...</span>
2012-10-09 13:28:24 +00:00
</div>
<t t-raw= "attachment.name || attachment.filename" />
</span>
<a t-if= "(!attachment.upload or attachment.percent_loaded>=100)" t-att-href= "attachment.url" t-attf-title= "{(attachment.name || attachment.filename) + (attachment.date?' \n('+attachment.date+')':'' )}" >
<t t-raw= "attachment.name || attachment.filename" />
</a>
2012-10-18 16:39:23 +00:00
<t t-if= "widget.options.show_attachment_delete and (!attachment.upload or attachment.percent_loaded>=100)" >
2012-10-11 14:38:04 +00:00
<a class= "oe_right oe_mail_attachment_delete" title= "Delete this attachment" t-attf-data-id= "{attachment.id}" > x</a>
2012-10-05 10:46:54 +00:00
</t>
2012-10-09 08:08:58 +00:00
2012-10-05 10:46:54 +00:00
</li>
</t>
</ul>
</t>
<t t-name= "mail.thread.message.private" >
<div >
<span class= "oe_placeholder_checkbox_private" />
2012-10-05 12:27:41 +00:00
<span class= "oe_send_private" > This email is private.</span>
2012-10-05 10:46:54 +00:00
<span class= "oe_send_public" > I wrote for contacts and all my followers.</span>
</div>
</t>
<!--
template to the recipients list
-->
<t t-name= "mail.thread.list_recipients" >
<div class= "oe_mail_list_recipients" >
2012-10-18 13:06:01 +00:00
Post to:
2012-10-15 14:17:31 +00:00
<span t-if= "!widget.datasets.is_private" class= "oe_all_follower" > All Followers</span>
<t t-if= "!widget.datasets.is_private and widget.datasets.partner_ids.length" > and </t>
2012-10-05 10:46:54 +00:00
<t t-set= "inc" t-value= "0" />
2012-10-15 14:17:31 +00:00
<t t-if= "widget.datasets.partner_ids.length" t-foreach= "widget.datasets.partner_ids" t-as= "partner" > <span t-attf-class= "oe_partner_follower #{inc>=3?'oe_hidden':''}" > <t t-if= "inc" t-raw= "', '" /> <a t-attf-href= "#model=res.partner&id=#{partner[0]}" > <t t-raw= "partner[1]" /> </a> </span> <t t-set= "inc" t-value= "inc+1" />
2012-10-05 10:46:54 +00:00
</t>
2012-10-15 14:17:31 +00:00
<t t-if= "widget.datasets.partner_ids.length>=3" >
<span class= "oe_more" > , <a > <t t-raw= "widget.datasets.partner_ids.length-3" /> others...</a> </span>
2012-10-05 10:46:54 +00:00
<a class= "oe_more_hidden" > < < < </a>
</t>
</div>
</t>
2012-06-15 08:36:56 +00:00
<!--
wall main template
2012-07-03 12:20:20 +00:00
Template used to display the communication history in the wall.
2012-06-15 08:36:56 +00:00
-->
2012-10-11 16:16:14 +00:00
<div t-name= "mail.wall" class= "oe_view_manager oe_mail_wall oe_view_manager_current" >
2012-05-11 10:37:17 +00:00
<table class= "oe_view_manager_header" >
2012-06-27 15:44:54 +00:00
<colgroup >
<col width= "33%" />
<col width= "33%" />
<col width= "34%" />
</colgroup>
<tbody >
2012-07-19 14:10:19 +00:00
<tr class= "oe_header_row oe_header_row_top" >
2012-06-27 15:44:54 +00:00
<td colspan= "2" >
<h2 class= "oe_view_title" >
2012-08-14 11:22:04 +00:00
<span class= "oe_view_title_text" >
2012-08-20 19:10:58 +00:00
News Feed
<t t-if= "widget.options.res_model" > / </t>
2012-08-20 13:07:30 +00:00
<t t-if= "widget.options.res_model" t-esc= "widget.options.res_model" />
2012-08-14 11:22:04 +00:00
</span>
2012-06-27 15:44:54 +00:00
</h2>
</td>
2012-05-11 10:37:17 +00:00
<td > <div class= "oe_view_manager_view_search" t-opentag= "true" /> </td>
</tr>
2012-10-05 13:10:13 +00:00
<tr class= "oe_header_row" >
<td colspan= "2" >
<button type= "button" class= "oe_write_full oe_highlight" >
Compose a new message
</button>
<button type= "button" class= "oe_write_onwall" help= "Your followers can read this message" >
2012-10-10 18:16:11 +00:00
Write to your followers
2012-10-05 13:10:13 +00:00
</button>
</td>
</tr>
2012-06-27 15:44:54 +00:00
</tbody>
2012-05-11 10:37:17 +00:00
</table>
2012-10-08 14:26:54 +00:00
<!-- placeholder for the wall threads -->
<div class= "oe_mail_wall_threads" />
2012-06-15 08:36:56 +00:00
<div class= "oe_mail_wall_aside" >
<!-- contains currently nothing -->
</div>
2012-02-23 16:32:36 +00:00
</div>
2012-06-15 08:36:56 +00:00
<!--
2012-10-08 14:26:54 +00:00
display message on the wall when there are no message
2012-06-15 08:36:56 +00:00
-->
2012-10-17 13:37:50 +00:00
<t t-name= "mail.wall_no_message" >
<div class= "oe_wall_no_message" > You have no messages</div>
</t>
2012-02-23 16:32:36 +00:00
2012-06-15 08:36:56 +00:00
<!--
record_thread main template
2012-07-04 12:10:12 +00:00
Template used to display the communication history in documents
2012-06-15 08:36:56 +00:00
form view.
-->
2012-09-27 13:48:23 +00:00
<div t-name= "mail.record_thread" class= "oe_mail_record_wall" >
2012-07-03 12:20:20 +00:00
<!-- <h4>History and Comments</h4> -->
2012-09-27 13:48:23 +00:00
<ul class= "oe_mail_wall_threads" >
2012-06-15 08:36:56 +00:00
<!-- contains the document thread -->
2012-09-27 13:48:23 +00:00
</ul>
2012-02-06 09:06:18 +00:00
</div>
2012-02-22 14:04:03 +00:00
2012-10-17 13:37:50 +00:00
<t t-name= "mail.thread" >
<div t-attf-class= "oe_thread #{widget.root?'oe_root_thread':''}" />
</t>
2012-02-22 14:04:03 +00:00
2012-06-15 13:10:26 +00:00
<!-- default layout -->
2012-10-17 09:43:22 +00:00
<t t-name= "mail.thread.message" >
2012-10-19 13:32:05 +00:00
<div t-attf-class= "oe_msg oe_lvl_#{widget.datasets.thread_level} oe_msg_#{widget.datasets.type} oe_msg_#{widget.datasets.to_read?'unread':'read'}" >
2012-09-27 08:30:56 +00:00
<!-- message actions (read/unread, reply, delete...) -->
2012-10-17 09:43:22 +00:00
<div class= 'oe_msg_right' >
<div class= "oe_msg_icons" >
2012-10-17 15:03:27 +00:00
<t t-call= "mail.thread.message.star" />
2012-10-19 13:32:05 +00:00
<span class= 'oe_read' t-if= "widget.datasets.show_read_unread_button" > <a title= "Read" class= "oe_e" > W</a> </span>
<span class= 'oe_unread' t-if= "widget.datasets.show_read_unread_button" > <a title= "Set back to unread" class= "oe_e" > h</a> </span>
<span class= 'oe_reply' t-if= "widget.datasets.show_reply_button" > <a title= "Reply" class= "oe_e" > )</a> </span>
2012-10-17 09:43:22 +00:00
</div>
</div>
2012-09-27 08:30:56 +00:00
2012-10-17 09:43:22 +00:00
<div class= 'oe_msg_left' >
2012-10-17 11:16:33 +00:00
<a t-attf-href= "#model=res.partner&id=#{widget.datasets.author_id[0]}" t-att-title= "widget.datasets.author_id[1]" >
<img class= "oe_msg_icon" t-att-src= "widget.datasets.avatar" />
2012-10-17 09:43:22 +00:00
</a>
</div>
2012-09-27 08:30:56 +00:00
2012-10-17 09:43:22 +00:00
<div class= "oe_msg_center" >
2012-07-04 12:10:12 +00:00
<!-- message itself -->
2012-10-18 12:53:28 +00:00
<div class= "oe_msg_content" >
2012-10-17 00:13:20 +00:00
<h1 t-if= "widget.datasets.subject" class= "oe_msg_title" >
2012-10-15 14:17:31 +00:00
<t t-raw= "widget.datasets.subject" />
2012-06-22 01:21:02 +00:00
</h1>
2012-10-17 00:13:20 +00:00
<div class= "oe_msg_body" >
2012-10-18 16:39:23 +00:00
<t t-if= "widget.options.show_record_name and widget.datasets.record_name and (!widget.datasets.subject) and !widget.options.thread_level and !widget.options.display_on_thread[0] and widget.datasets.model!='res.partner'" >
2012-10-17 11:16:33 +00:00
<a class= "oe_mail_action_model" t-attf-href= "#model=#{widget.datasets.model}&id=#{widget.datasets.res_id}" > <t t-raw= "widget.datasets.record_name" /> </a>
2012-09-27 16:15:58 +00:00
</t>
2012-10-15 14:17:31 +00:00
<t t-raw= "widget.datasets.body" />
2012-09-27 16:15:58 +00:00
</div>
2012-10-15 14:17:31 +00:00
<t t-if= "widget.datasets.attachment_ids.length > 0" >
2012-09-06 11:14:44 +00:00
<t t-call= "mail.thread.message.attachments" />
2012-06-19 18:28:10 +00:00
</t>
2012-06-21 21:55:27 +00:00
</div>
2012-10-17 09:43:22 +00:00
<div class= "oe_msg_footer" >
2012-10-17 11:16:33 +00:00
<a t-if= "widget.datasets.author_id" t-attf-href= "#model=res.partner&id=#{widget.datasets.author_id[0]}" > <t t-raw= "widget.datasets.author_id[1]" /> </a>
<span t-att-title= "widget.datasets.date" > <t t-raw= "widget.datasets.timerelative" /> </span>
<a t-if= "widget.datasets.attachment_ids.length > 0" class= "oe_mail_msg_view_attachments" >
<t t-if= "widget.datasets.attachment_ids.length == 1" > 1 Attachment</t>
<t t-if= "widget.datasets.attachment_ids.length > 1" > <t t-raw= "widget.datasets.attachment_ids.length" /> Attachments</t>
2012-10-17 09:43:22 +00:00
</a>
<t t-call= "mail.thread.message.vote" />
</div>
2012-06-21 21:55:27 +00:00
</div>
2012-06-15 17:26:47 +00:00
</div>
2012-10-17 09:43:22 +00:00
</t>
2012-10-02 13:48:43 +00:00
<!-- expandable message layout -->
2012-10-17 09:43:22 +00:00
<t t-name= "mail.thread.expandable" >
2012-10-17 11:16:33 +00:00
<div t-attf-class= "oe_msg oe_msg_#{widget.datasets.type} oe_msg_unread" >
2012-10-17 00:13:20 +00:00
<div class= "oe_msg_content oe_msg_more_message" >
2012-10-17 11:16:33 +00:00
<a class= "oe_msg_fetch_more" > Load more messages <span t-if= "widget.datasets.nb_messages>0" > (<t t-raw= "widget.datasets.nb_messages" /> messages not display)</span> ...</a>
2012-10-02 13:48:43 +00:00
</div>
</div>
2012-10-17 09:43:22 +00:00
</t>
2012-10-02 13:48:43 +00:00
2012-10-12 14:53:20 +00:00
<!--
mail.compose_message.button_top_bar
render of the button on the user bar for open wizard compose message
-->
<t t-name= "mail.compose_message.button_top_bar" >
<div class= "oe_topbar_compose_full_email" >
2012-10-18 12:02:53 +00:00
<!-- <button class="oe_button oe_highlight">Write an email</button> -->
2012-10-12 14:53:20 +00:00
</div>
</t>
2012-09-18 12:23:15 +00:00
<!-- mail.thread.message.vote
Template used to display Like/Unlike in a mail.message
-->
2012-10-01 09:36:33 +00:00
<span t-name= "mail.thread.message.vote" >
<span class= "oe_left oe_mail_vote_count" >
2012-10-15 14:17:31 +00:00
<t t-if= 'widget.datasets.has_voted' >
2012-10-01 09:36:33 +00:00
You
</t>
2012-10-19 10:21:17 +00:00
<t t-if= '(widget.datasets.vote_nb - (widget.datasets.has_voted ? 1 : 0)) > 0' >
2012-10-15 14:17:31 +00:00
<t t-if= 'widget.datasets.has_voted' > and </t>
2012-10-19 10:21:17 +00:00
<t t-esc= "widget.datasets.vote_nb" /> people
2012-10-01 09:36:33 +00:00
</t>
2012-10-19 10:21:17 +00:00
<t t-if= '(widget.datasets.vote_nb - (widget.datasets.has_voted ? 1 : 0)) > 0' >
<t t-raw= "(widget.datasets.vote_nb - (widget.datasets.has_voted ? 1 : 0))" />
2012-10-17 09:43:22 +00:00
concur
2012-10-01 09:36:33 +00:00
</t>
</span>
2012-10-17 00:13:20 +00:00
<button t-attf-class= "oe_msg_vote oe_tag" >
2012-10-01 09:36:33 +00:00
<span >
2012-10-17 11:16:33 +00:00
<t t-if= "!widget.datasets.has_voted" > Concur</t>
<t t-if= "widget.datasets.has_voted" > Respectfully disagree</t>
2012-10-01 09:36:33 +00:00
</span>
2012-09-18 12:23:15 +00:00
</button>
2012-10-01 09:36:33 +00:00
</span>
2012-09-18 12:23:15 +00:00
2012-10-12 15:25:05 +00:00
<!-- mail.thread.message.star
Template used to display stared/unstared message in a mail.message
-->
2012-10-18 12:53:28 +00:00
<t t-name= "mail.thread.message.star" >
2012-10-19 13:32:05 +00:00
<span > <a t-attf-class= "oe_mail_starbox #{widget.datasets.has_stared?'oe_stared':''}" > *</a> </span>
2012-10-18 12:53:28 +00:00
</t>
2012-02-16 16:03:02 +00:00
</template>