[IMP] website, website_blog: use better naming for block options

task-2144335
This commit is contained in:
Romain Derie
2020-02-03 15:25:20 +00:00
committed by Jeremy Kersten
parent d64eb2981f
commit 27e4f8a3e1
3 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -393,7 +393,7 @@
data-drop-near=".o_mega_menu .nav-link"/>
<div data-js="CoverProperties" data-selector=".o_record_cover_container" data-no-check="true">
<we-imagepicker string="Cover" data-background="" data-first-filters="cover"/>
<we-imagepicker string="Image" data-background="" data-first-filters="cover"/>
<we-select string="Size" data-cover-opt-name="size">
<we-button data-select-class="o_record_has_cover o_full_screen_height">Full Screen</we-button>
<we-button class="o_record_cover_opt_size_default" data-select-class="o_record_has_cover o_half_screen_height">Half Screen</we-button>
@@ -327,7 +327,9 @@
<template id="record_cover">
<t t-set="_cp" t-value="_cp or json.loads(_record.cover_properties)"/>
<t t-set="default_cover_name">Cover</t>
<div t-att-data-use_size="use_size"
t-att-data-name="display_opt_name or default_cover_name"
t-att-data-use_filters="use_filters"
t-att-data-use_text_align="use_text_align"
t-att-data-res-model="request.env.user.has_group('website.group_website_publisher') and _record._name"
@@ -233,8 +233,10 @@ list of filtered posts (by date or tag).
<t t-set="_record" t-value="blog_post"/>
<t t-set="use_filters" t-value="True"/>
<t t-set="use_size" t-value="True"/>
<t t-set="display_opt_name">Blog Post Cover</t>
<t t-set="additionnal_classes" t-value="'o_wblog_post_page_cover'"/>
<div class="container text-center position-relative h-100 d-flex flex-column flex-grow-1 justify-content-around">
<div t-attf-class="o_wblog_post_title #{opt_blog_post_select_to_tweet and 'js_tweet'} #{opt_blog_post_select_to_comment and 'js_comment'}">
<div t-field="blog_post.name" id="o_wblog_post_name" data-oe-expression="blog_post.name" t-att-data-blog-id="blog_post.id" placeholder="Blog Post Title"/>