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-11-02 13:54:26 +00:00
<!--
mail.Widget template used to namespace the css -->
<t t-name= "mail.Root" >
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.
2012-10-26 10:58:35 +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
2012-10-05 10:46:54 +00:00
-->
<t t-name= "mail.compose_message" >
2012-12-17 08:41:16 +00:00
<div t-if= "widget.show_composer and !widget.options.readonly" t-attf-class= "oe_msg oe_msg_composer #{widget.thread_level and widget.options.display_indented_thread > -1 ? 'oe_msg_indented' : ''}" >
2012-10-17 09:43:22 +00:00
<div class= "oe_msg_left" >
2012-10-22 08:10:48 +00:00
<img class= "oe_msg_icon" alt= "User img" t-attf-src= "#{widget.avatar}" />
2012-10-17 09:43:22 +00:00
</div>
<div class= "oe_msg_center" >
<div class= "oe_msg_content" >
2013-02-14 11:19:25 +00:00
<button class= "oe_full" title= "Open the full mail composer" > <span class= 'oe_e' > & ograve</span> </button>
2012-10-23 15:58:27 +00:00
<t t-call= "mail.thread.list_recipients" />
2012-10-25 12:43:20 +00:00
<textarea class= "field_text" > </textarea>
</div>
<div class= "oe_msg_footer" >
<div class= "oe_msg_attachment_list" > </div>
2013-02-22 14:39:53 +00:00
<button class= "oe_post" >
2013-02-28 16:42:04 +00:00
<t t-if= "!widget.is_log" > Send</t>
2013-02-22 14:39:53 +00:00
<t t-if= "widget.is_log" > Log a note</t>
</button>
2012-10-05 10:46:54 +00:00
<t t-call= "mail.compose_message.add_attachment" />
</div>
</div>
</div>
2012-12-17 08:41:16 +00:00
<div t-if= "widget.show_compact_message and !widget.show_composer and !widget.options.readonly" t-attf-class= "oe_msg oe_msg_composer_compact #{widget.thread_level and widget.options.display_indented_thread > -1 ? 'oe_msg_indented' : ''}" >
2013-02-26 10:01:55 +00:00
<t t-if= "widget.options.view_mailbox" >
<div class= "field_text oe_compact oe_compact_inbox" >
2013-02-22 14:39:53 +00:00
<t t-if= "widget.options.compose_placeholder" t-raw= "widget.options.compose_placeholder" />
2013-02-26 10:01:55 +00:00
<t t-if= "!widget.options.compose_placeholder and widget.options.view_mailbox" > Share with my followers...</t>
</div>
</t>
<t t-if= "!widget.options.view_mailbox" >
<div class= "field_text oe_compact oe_compact_record" >
<a class= "oe_compose_post" >
<t t-if= "widget.options.compose_placeholder" t-raw= "widget.options.compose_placeholder" />
2013-02-28 16:42:04 +00:00
<t t-if= "!widget.options.compose_placeholder and !widget.options.view_mailbox" > Send a message</t>
2013-02-26 10:01:55 +00:00
</a>
<span class= "oe_grey" > or</span>
<a class= "oe_compose_log" > Log a note</a>
</div>
</t>
2012-10-18 08:04:11 +00:00
</div>
2012-10-29 11:22:54 +00:00
<span t-if= "!(widget.show_compact_message and !widget.show_composer) and !widget.show_composer" class= "oe_placeholder_compose" > </span>
2012-10-18 08:04:11 +00:00
</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" >
2012-10-23 15:58:27 +00:00
<span class= "oe_attachment_file" >
<span class= "oe_add" >
2012-10-08 14:26:54 +00:00
<!-- uploader of file -->
2012-10-25 12:43:20 +00:00
<button class= "oe_attach" > <span class= "oe_e" > '</span> </button>
2013-02-14 09:39:23 +00:00
<span class= 'oe_attach_label' > Attach a File</span>
2012-10-08 14:26:54 +00:00
<t t-call= "HiddenInputFile" >
<t t-set= "fileupload_id" t-value= "widget.fileupload_id" />
2013-02-21 13:09:22 +00:00
<t t-set= "fileupload_action" t-translation= "off" > /web/binary/upload_attachment</t>
2012-10-24 12:28:03 +00:00
<input type= "hidden" name= "model" value= "mail.compose.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-23 15:58:27 +00:00
</span>
</span>
2012-10-05 10:46:54 +00:00
</t>
<!--
mail.thread.message.attachments template
Template used to display attachments in a mail.message
-->
<t t-name= "mail.thread.message.attachments" >
2012-11-05 18:03:55 +00:00
<t t-foreach= 'widget.attachment_ids' t-as= 'attachment' >
2012-11-09 10:16:28 +00:00
<t t-if= "attachment.filetype !== 'webimage'" >
2012-11-09 14:21:01 +00:00
<div t-attf-class= "oe_attachment #{attachment.upload ? 'oe_uploading' : ''}" >
2012-12-10 11:28:30 +00:00
<a t-att-href= 'attachment.url' target= "_blank" >
2012-11-22 14:03:49 +00:00
<img t-att-src= "'/mail/static/src/img/mimetypes/' + attachment.filetype + '.png'" > </img>
<div class= 'oe_name' > <t t-raw= 'attachment.name' /> </div>
</a>
2012-12-20 12:31:22 +00:00
<div class= 'oe_delete oe_e' title= "Delete this attachment" t-att-data-id= "attachment.id" > [</div>
2012-11-05 18:03:55 +00:00
<div class= 'oe_progress_bar' >
uploading
</div>
2012-10-23 15:58:27 +00:00
</div>
2012-10-05 10:46:54 +00:00
</t>
2012-11-09 10:16:28 +00:00
<t t-if= "attachment.filetype === 'webimage'" >
2012-11-09 14:21:01 +00:00
<div t-attf-class= "oe_attachment oe_preview #{attachment.upload ? 'oe_uploading' : ''}" >
2012-12-10 11:28:30 +00:00
<a t-att-href= 'attachment.url' target= "_blank" >
2012-11-22 14:03:49 +00:00
<img t-att-src= "widget.attachments_resize_image(attachment.id, [100,80])" > </img>
<div class= 'oe_name' > <t t-raw= 'attachment.name' /> </div>
</a>
2012-12-20 12:31:22 +00:00
<div class= 'oe_delete oe_e' title= "Delete this attachment" t-att-data-id= "attachment.id" > [</div>
2012-11-05 18:03:55 +00:00
<div class= 'oe_progress_bar' >
uploading
</div>
</div>
2012-10-24 13:48:19 +00:00
</t>
2012-11-05 18:03:55 +00:00
</t>
2012-10-05 10:46:54 +00:00
</t>
<!--
template to the recipients list
-->
<t t-name= "mail.thread.list_recipients" >
2013-02-26 14:29:08 +00:00
<div class= "oe_mail_list_recipients" t-if= "!widget.is_log" >
2012-10-23 15:58:27 +00:00
To:
2012-11-15 10:05:42 +00:00
<t t-if= "!widget.is_private" >
<span class= "oe_all_follower" >
Followers of
<t t-if= "widget.parent_thread.parent_message.record_name" t-raw= "'"' + widget.parent_thread.parent_message.record_name + '"'" />
<t t-if= "!widget.parent_thread.parent_message.record_name" > this document</t>
</span>
</t>
2012-12-21 11:14:00 +00:00
<t t-if= "!widget.is_private and (widget.partner_ids.length or (widget.author_id and widget.author_id[0]))" > and </t>
2012-12-21 15:30:07 +00:00
<t t-set= "inc" t-value= "0" />
2012-12-21 14:40:14 +00:00
<t t-foreach= "widget.partner_ids" t-as= "partner" >
2012-11-22 15:47:12 +00:00
<span t-attf-class= "oe_partner_follower #{inc>=3?'oe_hidden':''}" > <t t-if= "inc" t-raw= "', '" />
2012-11-30 16:01:57 +00:00
<a t-if= "widget.options.show_link" t-attf-href= "#model=res.partner&id=#{partner[0]}" > <t t-raw= "partner[1]" /> </a>
<t t-if= "!widget.options.show_link" t-raw= "partner[1]" />
2012-12-21 15:30:07 +00:00
</span>
<t t-set= "inc" t-value= "inc+1" />
2012-10-05 10:46:54 +00:00
</t>
2012-12-21 14:40:14 +00:00
<t t-if= "widget.partner_ids.length > 3" >
<span class= "oe_more" > , <a > <t t-raw= "widget.partner_ids.length - 3" /> others...</a> </span>
2012-10-05 10:46:54 +00:00
<a class= "oe_more_hidden" > < < < </a>
</t>
</div>
2013-02-22 14:39:53 +00:00
<div class= "oe_recipients" t-if= "!widget.is_log" >
2013-02-20 12:49:23 +00:00
<t t-foreach= 'widget.recipients' t-as= 'recipient' >
2013-02-28 17:23:20 +00:00
<label t-attf-title= "Add as recipient and follower (reason: #{recipient.reason})" >
2013-02-20 12:49:23 +00:00
<input type= "checkbox" t-att-checked= "recipient.checked ? 'checked' : undefined" t-att-data= "recipient.email_address" />
<t t-raw= "recipient.name" /> (<t t-raw= "recipient.email_address" /> )
2012-12-21 14:40:14 +00:00
</label>
2012-12-21 08:54:58 +00:00
</t>
</div>
2013-03-04 08:05:59 +00:00
<div t-if= "widget.is_log" >
2013-03-04 13:57:01 +00:00
<span > Attach a note that will not be send to the followers</span>
2013-03-04 08:05:59 +00:00
</div>
2012-10-05 10:46:54 +00:00
</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-11-14 12:20:33 +00:00
<t t-raw= "widget.action.name" />
2012-08-14 11:22:04 +00:00
</span>
2012-06-27 15:44:54 +00:00
</h2>
2012-11-14 12:20:33 +00:00
<t t-if= "widget.action.params.header_description" >
<br />
<span class= "oe_view_subtitle_text" >
<t t-raw= "widget.action.params.header_description" />
</span>
</t>
2012-06-27 15:44:54 +00:00
</td>
2012-05-11 10:37:17 +00:00
<td > <div class= "oe_view_manager_view_search" t-opentag= "true" /> </td>
</tr>
2012-11-22 14:30:07 +00:00
<tr class= "oe_header_row" t-if= "widget.action.params.view_inbox and widget.action.params.show_compose_message" >
2012-10-05 13:10:13 +00:00
<td colspan= "2" >
<button type= "button" class= "oe_write_full oe_highlight" >
Compose a new message
</button>
2012-10-25 12:43:20 +00:00
<span class= 'oe_alternative' >
or
2012-11-08 12:30:14 +00:00
<a href= '#' class= 'oe_write_onwall oe_bold' help= 'Your followers can read this message' > Write to my followers</a>
2012-10-25 12:43:20 +00:00
</span>
2012-10-05 13:10:13 +00:00
</td>
</tr>
2012-06-27 15:44:54 +00:00
</tbody>
2012-05-11 10:37:17 +00:00
</table>
2012-10-24 15:20:43 +00:00
<div class= "oe_mail-placeholder" > </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" >
2012-11-12 18:39:19 +00:00
<div class= "oe_view_nocontent" > No messages.</div>
2012-10-17 13:37:50 +00:00
</t>
2012-02-23 16:32:36 +00:00
2012-12-07 09:09:41 +00:00
<!--
error message for uploading
-->
<t t-name= "mail.error_upload" > Uploading error</t>
2012-12-07 09:28:06 +00:00
<t t-name= "mail.error_upload_please_wait" > Please, wait while the file is uploading.</t>
2012-12-07 09:09:41 +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-10-26 09:58:21 +00:00
<div t-name= "mail.record_thread" class= "oe_record_thread" >
2012-10-24 15:20:43 +00:00
<div class= "oe_mail-placeholder" >
2012-10-19 11:39:51 +00:00
</div>
2012-10-26 09:58:21 +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" >
2013-02-14 11:47:55 +00:00
<div t-attf-class= "oe_msg #{widget.thread_level and widget.options.display_indented_thread > -1 ? 'oe_msg_indented' : ''} #{widget.partner_ids.length == 0 ? 'oe_msg_nobody' : ''} oe_msg_#{widget.type}" >
2012-09-27 08:30:56 +00:00
2012-10-17 09:43:22 +00:00
<div class= 'oe_msg_left' >
2012-11-30 16:01:57 +00:00
<a t-if= "widget.options.show_link" t-attf-href= "#model=res.partner&id=#{widget.author_id[0]}" t-att-title= "widget.author_id[1]" >
2012-10-22 08:10:48 +00:00
<img class= "oe_msg_icon" t-att-src= "widget.avatar" />
2012-10-17 09:43:22 +00:00
</a>
2012-11-30 16:01:57 +00:00
<img t-if= "!widget.options.show_link" class= "oe_msg_icon" t-att-src= "widget.avatar" />
2012-10-17 09:43:22 +00:00
</div>
2012-09-27 08:30:56 +00:00
2012-10-17 09:43:22 +00:00
<div class= "oe_msg_center" >
2012-12-17 08:41:16 +00:00
<div class= 'oe_msg_icons' t-if= "!widget.options.readonly" >
2012-11-22 08:38:37 +00:00
<span class= 'oe_read' t-if= "widget.options.show_read" > <a title= "Done" class= "oe_e" > W</a> </span>
2012-11-05 13:04:54 +00:00
<span class= 'oe_unread' t-if= "widget.is_favorite and widget.options.show_unread" > <a title= "Set back to Todo" class= "oe_e" > v</a> </span>
2012-12-19 09:55:00 +00:00
<span class= 'oe_unread' t-if= "!widget.is_favorite and widget.options.show_unread" > <a title= "Move to Inbox" class= "oe_e" > v</a> </span>
2012-10-30 11:33:56 +00:00
<span class= 'oe_reply' t-if= "widget.options.show_reply_button" > <a title= "Reply" class= "oe_e" > (</a> </span>
2012-11-05 13:04:54 +00:00
<span t-attf-class= "oe_star #{widget.is_favorite?'oe_starred':''}" > <a title= "Mark as Todo" class= "oe_e" > 7</a> </span>
2012-10-22 12:58:42 +00:00
</div>
2012-07-04 12:10:12 +00:00
<!-- message itself -->
2012-10-18 12:53:28 +00:00
<div class= "oe_msg_content" >
2012-11-14 13:42:59 +00:00
<h1 t-if= "(widget.show_record_name or widget.subject) and !widget.thread_level" class= "oe_msg_title" >
2012-11-30 16:01:57 +00:00
<a t-if= "widget.options.show_link and widget.show_record_name" class= "oe_mail_action_model" t-attf-href= "#model=#{widget.model}&id=#{widget.res_id}" > <t t-raw= "widget.record_name" /> </a> <span t-if= "!widget.options.show_link and widget.show_record_name" > <t t-raw= "widget.record_name" /> </span> <t t-if= "widget.show_record_name" > : </t>
2012-11-14 13:42:59 +00:00
<t t-if= "widget.subject" t-raw= "widget.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-22 08:10:48 +00:00
<t t-raw= "widget.body" />
2012-09-27 16:15:58 +00:00
</div>
2012-06-21 21:55:27 +00:00
</div>
2012-10-17 09:43:22 +00:00
<div class= "oe_msg_footer" >
2012-11-05 18:03:55 +00:00
<t t-if= "widget.attachment_ids.length > 0" >
2012-11-08 10:05:44 +00:00
<div class= "oe_msg_attachment_list" > </div>
2012-11-05 18:03:55 +00:00
</t>
2013-02-28 16:37:03 +00:00
<a t-if= "widget.author_id and widget.options.show_link and widget.author_id[0]" t-attf-href= "#model=res.partner&id=#{widget.author_id[0]}" > <t t-raw= "widget.author_id[2]" /> </a>
2013-02-14 16:19:50 +00:00
<span t-if= "widget.author_id and (!widget.options.show_link or !widget.author_id[0])" > <t t-raw= "widget.author_id[2]" /> </span>
2013-02-14 08:55:06 +00:00
<t t-if= "widget.partner_ids.length == 0" >
2013-02-28 16:37:03 +00:00
logged a note
</t>
<t t-if= "widget.partner_ids.length > 0" >
to
2013-02-14 08:55:06 +00:00
</t>
<t t-foreach= "widget.partner_ids.slice(0, 3)" t-as= "partner" >
<span t-attf-class= "oe_partner_follower" >
<a t-if= "widget.options.show_link" t-attf-href= "#model=res.partner&id=#{partner[0]}" > <t t-raw= "partner[1]" /> </a>
<t t-if= "!widget.options.show_link" t-raw= "partner[1]" />
</span>
<t t-if= "!partner_last" > ,</t>
</t>
<t t-if= "widget.partner_ids.length > 3" >
<span t-att-title= "widget.extra_partners_str" > and <t t-raw= "widget.extra_partners_nbr" /> more</span>
</t>
2012-10-25 12:43:20 +00:00
<span class= 'oe_subtle' > •</span>
2013-01-29 15:35:28 +00:00
<span t-att-title= "widget.date" > <t t-if= "widget.timerelative" t-raw= "widget.timerelative" /> <t t-if= "!widget.timerelative" t-raw= "widget.date" /> </span>
2012-12-17 08:41:16 +00:00
<span t-if= "!widget.options.readonly" class= 'oe_subtle' > •</span>
<t t-if= "!widget.options.readonly" t-call= "mail.thread.message.vote" />
2012-10-17 09:43:22 +00:00
</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-11-02 13:54:26 +00:00
<div t-attf-class= "oe_msg oe_msg_#{widget.type} #{widget.max_limit ? 'oe_max_limit' : ''} #{widget.thread_level and widget.options.display_indented_thread > -1 ? 'oe_msg_indented' : ''}" >
2012-10-17 00:13:20 +00:00
<div class= "oe_msg_content oe_msg_more_message" >
2012-10-26 16:46:53 +00:00
<div class= 'oe_separator' > </div>
2012-10-30 10:03:18 +00:00
<a t-if= "widget.nb_messages <= 0" class= "oe_msg_fetch_more" > show more message</a>
2012-10-26 16:46:53 +00:00
<a t-if= "widget.nb_messages === 1" class= "oe_msg_fetch_more" > show one more message</a>
2012-10-30 10:03:18 +00:00
<a t-if= "widget.nb_messages > 1" class= "oe_msg_fetch_more" > show <t t-raw= "widget.nb_messages" /> more messages</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
-->
2012-10-30 10:03:18 +00:00
<t t-name= "mail.ComposeMessageTopButton" >
2012-10-29 16:52:11 +00:00
<div title= 'Compose new Message' class= "oe_topbar_item oe_topbar_compose_full_email" >
<button class= "oe_e" > %</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" >
2012-10-29 14:45:03 +00:00
<span class= "oe_mail_vote_count" t-if= 'widget.vote_nb > 0' >
<t t-raw= 'widget.vote_nb' />
<span class= 'oe_e' > 8</span>
2012-10-01 09:36:33 +00:00
</span>
2012-10-29 15:13:27 +00:00
<a href= '#' class= "oe_msg_vote" >
2012-10-25 12:43:20 +00:00
<t t-if= "!widget.has_voted" > like</t>
<t t-if= "widget.has_voted" > unlike</t>
</a>
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-02-16 16:03:02 +00:00
</template>