diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
| commit | 3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch) | |
| tree | a44932296ef4a9b71d5f010906253d8c53727726 /addons/website_forum/static/src/xml | |
| parent | 0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff) | |
initial commit 2
Diffstat (limited to 'addons/website_forum/static/src/xml')
| -rw-r--r-- | addons/website_forum/static/src/xml/website_forum_share_templates.xml | 75 | ||||
| -rw-r--r-- | addons/website_forum/static/src/xml/website_forum_templates.xml | 53 |
2 files changed, 128 insertions, 0 deletions
diff --git a/addons/website_forum/static/src/xml/website_forum_share_templates.xml b/addons/website_forum/static/src/xml/website_forum_share_templates.xml new file mode 100644 index 00000000..e1ef8d75 --- /dev/null +++ b/addons/website_forum/static/src/xml/website_forum_share_templates.xml @@ -0,0 +1,75 @@ +<templates id="template" xml:space="preserve"> + <t t-name="website.social_modal"> + <div role="dialog" class="modal fade" id="oe_social_share_modal"> + <div class="modal-dialog" role="document"> + <div class="modal-content"> + <header class="modal-header alert alert-info mb0" role="status"> + <h4 class="modal-title">Thanks for posting!</h4> + <button type="button" class="close" data-dismiss="modal"> + <span role="img" aria-label="Close">x</span> + </button> + </header> + <main class="modal-body"> + <t t-if="target_type == 'question'" t-call="website_forum.social_message_question"/> + <t t-if="target_type == 'answer'" t-call="website_forum.social_message_answer"/> + <t t-if="target_type == 'default'" t-call="website_forum.social_message_default"/> + <div t-if="state != 'pending'" class="share-icons text-center text-primary"> + <t t-foreach="medias" t-as="media"> + <a style="cursor: pointer" t-attf-class="fa-stack fa-lg share #{media}" t-attf-aria-label="Share on #{media}" t-attf-title="Share on #{media}"> + <span class="fa fa-square fa-stack-2x"></span> + <span t-attf-class="oe_social_#{media} fa fa-#{media} fa-stack-1x fa-inverse"></span> + </a> + </t> + </div> + </main> + </div> + </div> + </div> + </t> + <t t-name="website_forum.spam_search_name"> + <t t-foreach="posts" t-as="post"> + <div class="card mb-1 o_spam_character"> + <div class="card-body py-2"> + <div class="custom-control custom-checkbox"> + <input type="checkbox" class="custom-control-input" t-attf-id="post_#{post.id}" t-att-value='post.id' checked='checked'/> + <label class="custom-control-label" t-attf-for="post_#{post.id}"> + <b><t t-esc="post.name" /></b> + <p class='text-muted'><t t-esc="post.content" /></p> + </label> + </div> + </div> + </div> + </t> + </t> + <t t-name="website_forum.social_message_question"> + <p>On average, <b>45% of questions shared</b> on social networks get an answer within + 5 hours. Questions shared on two social networks have <b>65% more chance to get an + answer</b> !</p> + <p t-if="state == 'pending'">You can share your question once it has been validated</p> + </t> + <t t-name="website_forum.social_message_answer"> + <p>By sharing you answer, you will get additional <b>karma points</b> if your + answer is selected as the right one. See what you can do with karma + <a href="/forum/help-1/faq" target="_blank">here</a>.</p> + </t> + <t t-name="website_forum.social_message_default"> + <p>Share this content to increase your chances to be featured on the front page and attract more visitors.</p> + </t> + + <t t-name="website.social_alert"> + <div class="alert alert-info alert-dismissable" role="status"> + <button type="button" class="close" data-dismiss="alert"> + <span role="img" aria-label="Close">×</span> + </button> + <p>Move this question to the top of the list by sharing it on social networks.</p><br/> + <div> + <t t-foreach="medias" t-as="media"> + <a style="cursor: pointer" t-attf-class="fa-stack fa-lg share oe_share_bump #{media}" t-attf-aria-label="Share on #{media}" t-attf-title="Share on #{media}"> + <span class="fa fa-square fa-stack-2x"></span> + <span t-attf-class="oe_social_#{media} fa fa-#{media} fa-stack-1x fa-inverse"></span> + </a> + </t> + </div> + </div> + </t> +</templates> diff --git a/addons/website_forum/static/src/xml/website_forum_templates.xml b/addons/website_forum/static/src/xml/website_forum_templates.xml new file mode 100644 index 00000000..aedc6223 --- /dev/null +++ b/addons/website_forum/static/src/xml/website_forum_templates.xml @@ -0,0 +1,53 @@ +<?xml version="1.0" encoding="UTF-8"?> +<templates xml:space="preserve"> + <t t-name="website_forum.add_new_forum"> + <form id="editor_new_forum"> + <div class="form-group row"> + <label for="page-name" class="col-md-4 col-form-label">Forum Name</label> + <div class="col-md-8"> + <input type="text" name="forum_name" class="form-control" required="required"/> + <div class="custom-control custom-checkbox mt-2"> + <input type="checkbox" class="custom-control-input" id="add_to_menu" required="required"/> + <label class="custom-control-label" for="add_to_menu">Add to menu</label> + </div> + </div> + </div> + <div class="form-group row mt-2"> + <label class="col-md-4 col-form-label" data-toggle="tooltip" data-placement="bottom" + title="Questions and Answers mode: only one answer allowed\n Discussions mode: multiple answers allowed">Forum Mode</label> + <div class="col-md-8"> + <div class="custom-control custom-radio"> + <input type="radio" id="questions" name="mode" class="custom-control-input" value="questions" checked="checked"/> + <label class="custom-control-label" for="questions">Questions and Answers</label> + </div> + <div class="custom-control custom-radio"> + <input type="radio" id="discussions" name="mode" class="custom-control-input" value="discussions"/> + <label class="custom-control-label" for="discussions">Discussions</label> + </div> + </div> + </div> + <div class="form-group row mt-2"> + <label class="col-md-4 col-form-label" data-toggle="tooltip" data-placement="bottom" + title="Public: Forum is public\nSigned In: Forum is visible for signed in users\nSome users: Forum and their content are hidden for non members of selected group">Privacy</label> + <div class="col-md-8"> + <div class="custom-control custom-radio"> + <input type="radio" id="public" name="privacy" class="custom-control-input" value="public" checked="checked"/> + <label class="custom-control-label" for="public">Public</label> + </div> + <div class="custom-control custom-radio"> + <input type="radio" id="connected" name="privacy" class="custom-control-input" value="connected"/> + <label class="custom-control-label" for="connected">Signed In</label> + </div> + <div class="custom-control custom-radio"> + <input type="radio" id="private" name="privacy" class="custom-control-input" value="private"/> + <label class="custom-control-label" for="private">Some Users</label> + </div> + <div class="form-group show_visibility_group d-none"> + <input type="text" class="form-control" name="group_id" id="group_id" placeholder="Select Authorized Group"/> + <p id="group-required" class="text-danger mt-1 mb-0 d-none">Please fill in this field</p> + </div> + </div> + </div> + </form> + </t> +</templates> |
