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-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-07-19 14:34:02 +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-06-27 15:44:54 +00:00
|
|
|
</tbody>
|
2012-05-11 10:37:17 +00:00
|
|
|
</table>
|
2012-08-27 08:51:45 +00:00
|
|
|
<ul class="oe_mail_wall_threads">
|
|
|
|
<!-- contains threads -->
|
|
|
|
</ul>
|
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-07-03 12:20:20 +00:00
|
|
|
wall_thread_container template for the wall
|
|
|
|
Each discussion thread is contained inside this template
|
2012-06-15 08:36:56 +00:00
|
|
|
-->
|
2012-09-11 16:24:15 +00:00
|
|
|
<li t-name="mail.wall_thread_container" class="oe_mail_wall_thread">
|
|
|
|
</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-06-15 08:36:56 +00:00
|
|
|
<!--
|
2012-07-04 12:10:12 +00:00
|
|
|
mail.compose_message template
|
2012-06-15 08:36:56 +00:00
|
|
|
This template holds the composition form to write a note or send
|
2012-07-04 12:10:12 +00:00
|
|
|
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-06-15 08:36:56 +00:00
|
|
|
-->
|
2012-06-14 08:40:33 +00:00
|
|
|
<t t-name="mail.compose_message">
|
2012-06-18 15:06:08 +00:00
|
|
|
<div>
|
2012-07-04 12:10:12 +00:00
|
|
|
<img class="oe_mail_icon oe_mail_frame oe_left" alt="User img"/>
|
2012-06-18 15:06:08 +00:00
|
|
|
<div class="oe_mail_msg_content">
|
|
|
|
<!-- contains the composition form -->
|
2012-07-04 12:10:12 +00:00
|
|
|
<!-- default content: old basic textarea -->
|
2012-09-26 07:17:09 +00:00
|
|
|
<textarea class="oe_mail_compose_textarea" placeholder="Add your comment here..."/>
|
2012-06-18 15:06:08 +00:00
|
|
|
</div>
|
|
|
|
<div class="oe_clear"/>
|
2012-06-14 08:40:33 +00:00
|
|
|
</div>
|
|
|
|
</t>
|
|
|
|
|
2012-09-06 11:14:44 +00:00
|
|
|
<!--
|
|
|
|
mail.compose_message.add_attachment template
|
|
|
|
Small template to be inserted in the composition form to add attachments
|
|
|
|
-->
|
|
|
|
<t t-name="mail.compose_message.add_attachment">
|
|
|
|
<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-09-06 13:42:01 +00:00
|
|
|
<input type="hidden" name="model" t-att-value="widget.form_view.model"/>
|
|
|
|
<input type="hidden" name="id" t-att-value="widget.form_view.datarecord.id || 0"/>
|
2012-09-06 11:14:44 +00:00
|
|
|
<input type="hidden" name="session_id" t-att-value="widget.session.session_id"/>
|
|
|
|
</t>
|
|
|
|
</t>
|
|
|
|
|
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) -->
|
|
|
|
<t t-call="mail.compose_message"/>
|
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 class="oe_mail_thread_more">
|
2012-03-02 17:07:49 +00:00
|
|
|
<button class="oe_mail_button_more" type="button">Load more messages</button>
|
2012-09-27 08:30:56 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2012-02-22 14:04:03 +00:00
|
|
|
|
2012-06-15 13:10:26 +00:00
|
|
|
<!-- default layout -->
|
2012-09-27 13:48:23 +00:00
|
|
|
<li t-name="mail.thread.message" t-attf-class="oe_mail oe_mail_thread_msg #{record.unread?'oe_mail_unread':'oe_mail_read'}" t-attf-data-msg_model="{record.model}" t-attf-data-msg_id="{record.id}" t-attf-data-msg_timestamp="{record.timestamp}">
|
2012-09-04 16:37:25 +00:00
|
|
|
<div t-attf-class="oe_mail_msg_#{record.type} oe_semantic_html_override">
|
2012-09-27 08:30:56 +00:00
|
|
|
|
|
|
|
<!-- message actions (read/unread, reply, delete...) -->
|
|
|
|
<ul class="oe_header">
|
|
|
|
<li t-if="options.thread_level>0"><a class="oe_read oe_e">W<!-- Read/Unread --></a></li>
|
|
|
|
<li t-if="options.show_reply"><a class="oe_mail_msg_reply oe_e">)</a></li>
|
|
|
|
<li t-if="options.show_reply_by_email"><a class="oe_mail_msg_reply_by_email oe_e">)</a></li>
|
|
|
|
<li>
|
|
|
|
<span class="oe_dropdown_toggle">
|
|
|
|
<a class="oe_e">é</a>
|
|
|
|
<ul class="oe_dropdown_menu">
|
|
|
|
<li t-if="record.is_author and options.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='{record.subtype}'>Hide '<t t-esc="record.subtype"/>' for this document</a>
|
|
|
|
</li> -->
|
|
|
|
<li t-if="options.show_dd_reply_by_email"><a class="oe_mail_msg_reply_by_email">Quote and reply</a></li>
|
|
|
|
<li t-if="record.type == 'email'"><a class="oe_mail_msg_details" t-attf-href="#model=mail.message&id=#{record.id}" >Details</a></li>
|
|
|
|
</ul>
|
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
2012-08-21 15:09:36 +00:00
|
|
|
<img class="oe_mail_icon oe_mail_frame oe_left" t-att-src="record.avatar"/>
|
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
|
|
|
<!-- dropdown menu with message options and actions -->
|
2012-09-26 07:17:09 +00:00
|
|
|
<span class="placeholder-mail-thread-message-vote"/>
|
2012-09-27 08:30:56 +00:00
|
|
|
|
2012-07-04 12:10:12 +00:00
|
|
|
<!-- message itself -->
|
2012-06-21 21:55:27 +00:00
|
|
|
<div class="oe_mail_msg">
|
2012-07-04 12:10:12 +00:00
|
|
|
<h1 t-if="record.subject" class="oe_mail_msg_title">
|
2012-06-22 01:21:02 +00:00
|
|
|
<t t-raw="record.subject"/>
|
|
|
|
</h1>
|
|
|
|
<div class="oe_mail_msg_body">
|
2012-09-13 16:11:21 +00:00
|
|
|
<t t-if="options.show_record_name and record.record_name and (!record.subject) and (options.thread_level > 0)">
|
2012-09-12 10:22:17 +00:00
|
|
|
<a t-attf-href="#model=#{record.model}&id=#{record.res_id}"><t t-raw="record.record_name"/></a>
|
2012-09-12 09:21:43 +00:00
|
|
|
</t>
|
|
|
|
<t t-raw="record.body"/>
|
2012-06-22 01:21:02 +00:00
|
|
|
</div>
|
2012-07-20 13:01:27 +00:00
|
|
|
<div class="oe_clear"/>
|
2012-06-21 21:55:27 +00:00
|
|
|
<ul class="oe_mail_msg_footer">
|
2012-09-13 16:11:21 +00:00
|
|
|
<li t-if="options.show_record_name and record.record_name and record.subject and options.thread_level > 0">
|
2012-09-12 10:22:17 +00:00
|
|
|
<a t-attf-href="#model=#{record.model}&id=#{record.res_id}"><t t-raw="record.record_name"/></a>
|
|
|
|
</li>
|
2012-09-19 10:13:39 +00:00
|
|
|
<li t-if="record.author_id"><a t-attf-href="#model=res.partner&id=#{record.author_id[0]}"><t t-raw="record.author_id[1]"/></a></li>
|
2012-09-12 10:22:17 +00:00
|
|
|
<li><span t-att-title="record.date"><t t-raw="record.timerelative"/></span></li>
|
2012-09-18 12:23:15 +00:00
|
|
|
<t t-call="mail.thread.message.vote"/>
|
2012-09-12 10:22:17 +00:00
|
|
|
<li t-if="record.attachment_ids.length > 0">
|
|
|
|
<a class="oe_mail_msg_view_attachments">
|
|
|
|
<t t-if="record.attachment_ids.length == 1">1 Attachment</t>
|
|
|
|
<t t-if="record.attachment_ids.length > 1"><t t-raw="record.attachment_ids.length"/> Attachments</t>
|
|
|
|
</a>
|
|
|
|
</li>
|
2012-06-21 21:55:27 +00:00
|
|
|
</ul>
|
|
|
|
<t t-if="record.attachment_ids.length > 0">
|
|
|
|
<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-07-04 12:10:12 +00:00
|
|
|
</li>
|
2012-05-10 12:10:58 +00:00
|
|
|
|
2012-09-20 14:46:45 +00:00
|
|
|
<!-- expandable message layout -->
|
2012-09-26 07:17:09 +00:00
|
|
|
<li t-name="mail.thread.message.expandable" class="oe_mail oe_mail_thread_msg" t-attf-data-msg_id="{record.id}">
|
2012-09-20 14:46:45 +00:00
|
|
|
<div t-attf-class="oe_mail_msg_expandable oe_semantic_html_override">
|
|
|
|
<div class="oe_mail_msg_content">
|
|
|
|
<!-- message itself -->
|
|
|
|
<div class="oe_mail_msg">
|
|
|
|
<div class="oe_mail_msg_body">
|
|
|
|
<a class="oe_mail_fetch_more">Load more messages ...</a>
|
|
|
|
</div>
|
|
|
|
<div class="oe_clear"/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
|
2012-09-06 11:14:44 +00:00
|
|
|
<!--
|
|
|
|
mail.thread.message.attachments template
|
|
|
|
Template used to display attachments in a mail.message
|
|
|
|
-->
|
|
|
|
<t t-name="mail.thread.message.attachments">
|
|
|
|
<ul class="oe_mail_msg_attachments">
|
|
|
|
<t t-foreach="record.attachment_ids" t-as="attachment">
|
2012-09-11 16:17:00 +00:00
|
|
|
<li>
|
|
|
|
<a t-att-href="attachment.url"><t t-raw="attachment.name || attachment.filename"/></a>
|
|
|
|
<t t-if="record.show_attachment_delete">
|
|
|
|
<a class="oe_right oe_mail_attachment_delete" title="Delete this attachmentt" t-attf-data-id="{attachment.id}">x</a>
|
|
|
|
</t>
|
|
|
|
</li>
|
2012-09-06 11:14:44 +00:00
|
|
|
</t>
|
|
|
|
</ul>
|
|
|
|
</t>
|
|
|
|
|
2012-09-18 12:23:15 +00:00
|
|
|
<!-- mail.thread.message.vote
|
|
|
|
Template used to display Like/Unlike in a mail.message
|
|
|
|
-->
|
|
|
|
<li t-name="mail.thread.message.vote">
|
|
|
|
<t t-if='record.vote_user_ids.length > 0'>
|
2012-09-26 07:17:09 +00:00
|
|
|
<span class="oe_left oe_mail_vote_count"><t t-esc="record.vote_user_ids.length"/> people agree</span>
|
2012-09-18 12:23:15 +00:00
|
|
|
</t>
|
2012-09-19 10:13:39 +00:00
|
|
|
<button t-attf-class="oe_mail_msg_vote oe_tag" t-attf-data-msg_id="{record.id}">
|
2012-09-26 07:17:09 +00:00
|
|
|
<t t-if="! record.has_voted"><span>Agree</span></t>
|
|
|
|
<t t-if="record.has_voted"><span>Unagree</span></t>
|
2012-09-18 12:23:15 +00:00
|
|
|
</button>
|
|
|
|
</li>
|
|
|
|
|
2012-02-16 16:03:02 +00:00
|
|
|
</template>
|