diff options
| author | Patrick Hoste <pko@odoo.com> | 2019-12-04 09:10:35 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2020-06-08 10:43:53 +0000 |
| commit | 786374399ef970e4499a73cef9b48a48be88704e (patch) | |
| tree | 5890af2524a6a1dda9ce1ccbba68c530fb81a240 /addons/website_slides/static/src/xml/activity.xml | |
| parent | ad8c53ac2c5bc25ea94d5cddf8d1aa48efad5928 (diff) | |
[IMP] website_slides: add possibility to request access to private course
PURPOSE
Before this commit, a user could not contact a course responsible to ask him
to join. With this commit he is be able to do it.
SPECIFICATIONS
Change the message 'Contact website administrator' to 'Contact Responsible'.
Add the name of the course responsible in the course description panel. When
clicking on its name it opens a modal to request access to the course. It
creates an activity linked to the customer and assigned to the responsible.
When hovering the 'You're enrolled' button the fa-check icon changes to a
fa-times icon to show that you can unsubscribe when clicking.
LINKS
Task ID : 2127364
PR : #40708
Diffstat (limited to 'addons/website_slides/static/src/xml/activity.xml')
| -rw-r--r-- | addons/website_slides/static/src/xml/activity.xml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/addons/website_slides/static/src/xml/activity.xml b/addons/website_slides/static/src/xml/activity.xml new file mode 100644 index 00000000000..20c683ab3c4 --- /dev/null +++ b/addons/website_slides/static/src/xml/activity.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<templates xml:space="preserve"> + <t t-extend="mail.activity_items"> + <t t-jquery=".o_thread_message .o_thread_message_core .o_thread_message_tools" t-operation="replace"> + <t t-if="activity.activity_type_id[1] == 'Access Request'"> + <t t-if="activity.user_id[0] === uid"> + <a role="button" class="btn btn-link btn-success text-muted text-success o_activity_link o_activity_action_grant_access" t-att-data-partner-id="activity.request_partner_id[0]"> + <i class="fa fa-check"/> Grant Access + </a> + <a role="button" class="btn btn-link btn-danger text-muted text-danger o_activity_link o_activity_action_refuse_access" t-att-data-partner-id="activity.request_partner_id[0]"> + <i class="fa fa-times"/> Refuse Access + </a> + </t> + </t> + <t t-else=""> + <div class="o_thread_message_tools btn-group"> + <t t-call="mail.activity_thread_message_tools"/> + </div> + </t> + </t> + </t> +</templates>
\ No newline at end of file |
