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-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" >
<div class= "oe_mail_compose_textarea" >
<img class= "oe_mail_icon oe_mail_frame oe_left" alt= "User img" />
<div class= "oe_mail_msg_content" >
<!-- contains the composition form -->
<!-- default content: old basic textarea -->
<div class= "oe_mail_post_header" >
<t t-call= "mail.thread.list_recipients" />
2012-10-05 12:27:41 +00:00
<a class= "oe_cancel oe_e" > X</a>
2012-10-05 10:46:54 +00:00
</div>
<textarea class= "field_text" placeholder= "Add your comment here..." />
<div class= "oe_mail_post_footer" >
2012-10-05 12:27:41 +00:00
<div class= "oe_mail_compose_attachment_list" />
<button class= "oe_full" > Full mail message</button>
<button class= "oe_post" > Post message</button>
2012-10-05 10:46:54 +00:00
<t t-call= "mail.compose_message.add_attachment" />
</div>
</div>
<div class= "oe_clear" />
</div>
</t>
<!--
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>
<input type= "hidden" name= "model" value= "" />
<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-09 08:08:58 +00:00
<ul t-attf-class= "oe_mail_msg_attachments #{widget.attachment_ids[0] and widget.options.thread.show_attachment_link?'':'oe_hidden'}" >
2012-10-05 10:46:54 +00:00
<t t-foreach= "widget.attachment_ids" t-as= "attachment" >
<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" >
<span > ...wait upload...</span>
<div t-attf-style= "{attachment.percent_loaded>0?'':'display:none;'}" />
<div t-attf-style= "{attachment.percent_loaded>20?'':'display:none;'}" />
<div t-attf-style= "{attachment.percent_loaded>40?'':'display:none;'}" />
<div t-attf-style= "{attachment.percent_loaded>60?'':'display:none;'}" />
<div t-attf-style= "{attachment.percent_loaded>80?'':'display:none;'}" />
</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>
<t t-if= "widget.options.thread.show_attachment_delete and (!attachment.upload or attachment.percent_loaded>=100)" >
2012-10-05 10:46:54 +00:00
<a class= "oe_right oe_mail_attachment_delete" title= "Delete this attachmentt" t-attf-data-id= "{attachment.id}" > x</a>
</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" >
Post to:
<span t-if= "!widget.is_private" class= "oe_all_follower" > All Followers</span>
<t t-if= "!widget.is_private and widget.partner_ids.length" > and </t>
<t t-set= "inc" t-value= "0" />
<t t-if= "widget.partner_ids.length" t-foreach= "widget.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" />
</t>
<t t-if= "widget.partner_ids.length>=3" >
<span class= "oe_more" > , <a > <t t-raw= "widget.partner_ids.length-3" /> others...</a> </span>
<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-08 14:26:54 +00:00
<div t-name= "mail.wall" class= "oe_view_manager o e _ m a i l _ w a l l o e _ v i e w _ m a n a g
er_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-08 14:26:54 +00:00
<li t-name= "mail.wall_no_message" class= "oe_wall_no_message" >
You have no messages
2012-09-11 16:24:15 +00:00
</li>
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-07-04 12:10:12 +00:00
<!--
thread template
This template holds a thread of comments. It begins with an actions
container, holding the composition form. Then come the various
messages. Then comes the 'more' button.
-->
2012-09-27 08:30:56 +00:00
<div t-name= "mail.thread" class= "oe_mail oe_mail_thread oe_semantic_html_override" >
2012-07-04 12:10:12 +00:00
<div class= "oe_mail_thread_action" >
<!-- contains the composition box (form + image) -->
2012-06-21 15:24:28 +00:00
</div>
2012-09-27 08:30:56 +00:00
<ul class= "oe_mail_thread_display" >
2012-06-21 15:24:28 +00:00
<!-- contains the threads -->
2012-09-27 08:30:56 +00:00
</ul>
</div>
2012-02-22 14:04:03 +00:00
2012-06-15 13:10:26 +00:00
<!-- default layout -->
2012-10-03 08:40:29 +00:00
<li t-name= "mail.thread.message" t-attf-class= "oe_mail oe_mail_thread_msg #{widget.unread?'oe_mail_unread':'oe_mail_read'}" >
2012-09-29 21:19:24 +00:00
<div t-attf-class= "oe_mail_msg_#{widget.type} oe_semantic_html_override" >
2012-09-27 08:30:56 +00:00
<!-- message actions (read/unread, reply, delete...) -->
<ul class= "oe_header" >
2012-10-01 09:36:33 +00:00
<li class= "placeholder-mail-vote" > <t t-call= "mail.thread.message.vote" /> </li>
2012-10-08 14:26:54 +00:00
<li t-if= "!widget.options.thread.display_on_flat" title= "Read" class= "oe_read" > <a class= "oe_read oe_e" > W</a> </li>
<li t-if= "!widget.options.thread.display_on_flat" title= "Set back to unread" class= "oe_unread" > <a class= "oe_unread oe_e" > h</a> </li>
2012-10-03 10:09:52 +00:00
<li title= "Quick reply" > <a class= "oe_reply oe_e" > )</a> </li>
2012-10-09 14:36:45 +00:00
<t t-if= "(widget.is_author and widget.options.message.show_dd_delete) or widget.type == 'email'" >
2012-10-01 16:44:14 +00:00
<li >
<span class= "oe_dropdown_toggle" >
<a class= "oe_e" title= "More options" > í</a>
<ul class= "oe_dropdown_menu" >
<li t-if= "widget.is_author and widget.options.message.show_dd_delete" > <a class= "oe_mail_msg_delete" > Delete</a> </li>
<!-- Uncomment when adding subtype hiding
<li t-if= "display['show_hide']" >
<a href= "#" class= "oe_mail_msg_hide_type" t-attf-data-subtype= '{widget.subtype}' > Hide '<t t-esc= "widget.subtype" /> ' for this document</a>
</li> -->
<li t-if= "widget.type == 'email'" > <a class= "oe_mail_msg_details" t-attf-href= "#model=mail.message&id=#{widget.id}" > Details</a> </li>
</ul>
</span>
</li>
</t>
2012-09-27 08:30:56 +00:00
</ul>
2012-09-29 21:19:24 +00:00
<a t-attf-href= "#model=res.partner&id=#{widget.author_id[0]}" t-att-title= "widget.author_id[1]" >
<img class= "oe_mail_icon oe_mail_frame oe_left" t-att-src= "widget.avatar" />
2012-09-27 16:15:58 +00:00
</a>
2012-09-27 08:30:56 +00:00
2012-04-05 21:42:41 +00:00
<div class= "oe_mail_msg_content" >
2012-07-04 12:10:12 +00:00
<!-- message itself -->
2012-06-21 21:55:27 +00:00
<div class= "oe_mail_msg" >
2012-09-29 21:19:24 +00:00
<h1 t-if= "widget.subject" class= "oe_mail_msg_title" >
<t t-raw= "widget.subject" />
2012-06-22 01:21:02 +00:00
</h1>
2012-06-21 21:55:27 +00:00
<ul class= "oe_mail_msg_footer" >
2012-09-29 21:19:24 +00:00
<li t-if= "widget.author_id" > <a t-attf-href= "#model=res.partner&id=#{widget.author_id[0]}" > <t t-raw= "widget.author_id[1]" /> </a> </li>
<li > <span t-att-title= "widget.date" > <t t-raw= "widget.timerelative" /> </span> </li>
<li t-if= "widget.attachment_ids.length > 0" >
2012-09-12 10:22:17 +00:00
<a class= "oe_mail_msg_view_attachments" >
2012-09-29 21:19:24 +00:00
<t t-if= "widget.attachment_ids.length == 1" > 1 Attachment</t>
<t t-if= "widget.attachment_ids.length > 1" > <t t-raw= "widget.attachment_ids.length" /> Attachments</t>
2012-09-12 10:22:17 +00:00
</a>
</li>
2012-06-21 21:55:27 +00:00
</ul>
2012-09-27 16:15:58 +00:00
<div class= "oe_clear" />
<div class= "oe_mail_msg_body" >
2012-10-10 18:16:11 +00:00
<t t-if= "widget.options.message.show_record_name and widget.record_name and (!widget.subject) and !widget.options.thread.thread_level and !widget.options.thread.display_on_flat and widget.model!='res.partner'" >
2012-10-01 16:44:14 +00:00
<a class= "oe_mail_action_model" t-attf-href= "#model=#{widget.model}&id=#{widget.res_id}" > <t t-raw= "widget.record_name" /> </a>
2012-09-27 16:15:58 +00:00
</t>
2012-09-29 21:19:24 +00:00
<t t-raw= "widget.body" />
2012-09-27 16:15:58 +00:00
</div>
2012-09-29 21:19:24 +00:00
<t t-if= "widget.attachment_ids.length > 0" >
2012-06-21 21:55:27 +00:00
<div class= "oe_clear" > </div>
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>
</div>
2012-06-15 17:26:47 +00:00
</div>
2012-09-29 21:19:24 +00:00
<div class= "oe_thread_placeholder" > </div>
2012-07-04 12:10:12 +00:00
</li>
2012-10-02 13:48:43 +00:00
<!-- expandable message layout -->
2012-10-03 08:40:29 +00:00
<li t-name= "mail.thread.expandable" class= "oe_mail oe_mail_thread_msg oe_mail_unread" >
2012-10-02 13:48:43 +00:00
<div t-attf-class= "oe_mail_msg_#{widget.type} oe_semantic_html_override" >
<div class= "oe_mail_msg_content oe_mail_msg_more_message" >
2012-10-02 15:12:45 +00:00
<a class= "oe_mail_fetch_more" > Load more messages <span t-if= "widget.nb_messages>0" > (<t t-raw= "widget.nb_messages" /> messages not display)</span> ...</a>
2012-10-02 13:48:43 +00:00
</div>
</div>
</li>
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" >
<t t-if= 'widget.has_voted' >
You
</t>
<t t-if= '(widget.vote_user_ids.length-(widget.has_voted?1:0)) > 0' >
<t t-if= 'widget.has_voted' > and </t>
<t t-esc= "widget.vote_user_ids.length" /> people
</t>
<t t-if= 'widget.vote_user_ids.length > 0' >
agree
</t>
</span>
<button t-attf-class= "oe_mail_msg_vote oe_tag" >
<span >
<t t-if= "!widget.has_voted" > Agree</t>
<t t-if= "widget.has_voted" > Unagree</t>
</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-02-16 16:03:02 +00:00
</template>