mirror of https://github.com/OCA/social.git
Merge pull request #46 from Yajo/website_mail_snippet_vertical_resize_base
[8.0][website_mail_snippet_vertical_resize_base] Resize any elementpull/51/head
commit
524c0e5d2e
|
@ -4,7 +4,7 @@
|
||||||
{
|
{
|
||||||
"name": "Responsive Layout Snippets for Writing Emails",
|
"name": "Responsive Layout Snippets for Writing Emails",
|
||||||
"summary": "Well... pseudo-responsive (see description)",
|
"summary": "Well... pseudo-responsive (see description)",
|
||||||
"version": "8.0.1.1.0",
|
"version": "8.0.2.1.0",
|
||||||
"category": "Marketing",
|
"category": "Marketing",
|
||||||
"website": "http://www.antiun.com",
|
"website": "http://www.antiun.com",
|
||||||
"author": "Antiun Ingeniería S.L., Odoo Community Association (OCA)",
|
"author": "Antiun Ingeniería S.L., Odoo Community Association (OCA)",
|
||||||
|
@ -15,10 +15,9 @@
|
||||||
"images/snippets.png",
|
"images/snippets.png",
|
||||||
],
|
],
|
||||||
"depends": [
|
"depends": [
|
||||||
"website_mail",
|
"website_mail_snippet_vertical_resize_base",
|
||||||
],
|
],
|
||||||
"data": [
|
"data": [
|
||||||
"views/assets.xml",
|
|
||||||
"views/res_config_view.xml",
|
"views/res_config_view.xml",
|
||||||
"views/templates.xml",
|
"views/templates.xml",
|
||||||
"views/snippet_1_col.xml",
|
"views/snippet_1_col.xml",
|
||||||
|
|
|
@ -7,18 +7,6 @@
|
||||||
|
|
||||||
<template id="snippet_hr"
|
<template id="snippet_hr"
|
||||||
inherit_id="website_mail.email_designer_snippets">
|
inherit_id="website_mail.email_designer_snippets">
|
||||||
<xpath expr="//div[@id='snippet_options']">
|
|
||||||
<div
|
|
||||||
data-snippet-option-id='vertical_resize'
|
|
||||||
data-selector=".vertical_resizable">
|
|
||||||
<li>
|
|
||||||
<a href="#" class="button js_vertical_resize">
|
|
||||||
Change Height
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
</div>
|
|
||||||
</xpath>
|
|
||||||
|
|
||||||
<xpath expr="//div[@id='snippet_email_structure']">
|
<xpath expr="//div[@id='snippet_email_structure']">
|
||||||
<t t-call="website_mail_snippet_responsive.snippet">
|
<t t-call="website_mail_snippet_responsive.snippet">
|
||||||
<t t-set="image" t-value="'snippet_hr'"/>
|
<t t-set="image" t-value="'snippet_hr'"/>
|
||||||
|
|
|
@ -0,0 +1,72 @@
|
||||||
|
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
|
||||||
|
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
||||||
|
:alt: License: AGPL-3
|
||||||
|
|
||||||
|
======================================
|
||||||
|
Base for Vertical Resizing of Snippets
|
||||||
|
======================================
|
||||||
|
|
||||||
|
This module extends the functionality of the website mail designer to support
|
||||||
|
setting a fixed height in pixels to some elements.
|
||||||
|
|
||||||
|
Installation
|
||||||
|
============
|
||||||
|
|
||||||
|
This module is a technical dependency for other modules that want to inherit
|
||||||
|
its features, so you don't need to install this manually unless you want to use
|
||||||
|
its features directly (maybe by putting the class in a template element).
|
||||||
|
|
||||||
|
When installed, any HTML element in the website mail designer that has the
|
||||||
|
``vertical_resizable`` will have a new option to ask the user to input its
|
||||||
|
desired height in pixels.
|
||||||
|
|
||||||
|
Usage
|
||||||
|
=====
|
||||||
|
|
||||||
|
When any module installs this one, just click on the desired element and choose
|
||||||
|
the *Change Height* option to use it.
|
||||||
|
|
||||||
|
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
|
||||||
|
:alt: Try me on Runbot
|
||||||
|
:target: https://runbot.odoo-community.org/runbot/205/8.0
|
||||||
|
|
||||||
|
Bug Tracker
|
||||||
|
===========
|
||||||
|
|
||||||
|
Bugs are tracked on `GitHub Issues
|
||||||
|
<https://github.com/OCA/social/issues>`_. In case of trouble, please
|
||||||
|
check there if your issue has already been reported. If you spotted it first,
|
||||||
|
help us smashing it by providing a detailed and welcomed `feedback
|
||||||
|
<https://github.com/OCA/
|
||||||
|
social/issues/new?body=module:%20
|
||||||
|
website_mail_snippet_vertical_resize_base%0Aversion:%20
|
||||||
|
8.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||||
|
|
||||||
|
Credits
|
||||||
|
=======
|
||||||
|
|
||||||
|
Images
|
||||||
|
------
|
||||||
|
|
||||||
|
* FontAwesome: `Icon <http://fontawesome.io/icon/arrows-v/>`_.
|
||||||
|
|
||||||
|
Contributors
|
||||||
|
------------
|
||||||
|
|
||||||
|
* Rafael Blasco <rafabn@antiun.com>
|
||||||
|
* Jairo Llopis <yajo.sk8@gmail.com>
|
||||||
|
|
||||||
|
Maintainer
|
||||||
|
----------
|
||||||
|
|
||||||
|
.. image:: https://odoo-community.org/logo.png
|
||||||
|
:alt: Odoo Community Association
|
||||||
|
:target: https://odoo-community.org
|
||||||
|
|
||||||
|
This module is maintained by the OCA.
|
||||||
|
|
||||||
|
OCA, or the Odoo Community Association, is a nonprofit organization whose
|
||||||
|
mission is to support the collaborative development of Odoo features and
|
||||||
|
promote its widespread use.
|
||||||
|
|
||||||
|
To contribute to this module, please visit https://odoo-community.org.
|
|
@ -0,0 +1,21 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# © 2016 Antiun Ingeniería S.L. - Jairo Llopis
|
||||||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||||
|
{
|
||||||
|
"name": "Base for Vertical Resizing of Snippets",
|
||||||
|
"summary": "Allow input of height in pixels with just a class",
|
||||||
|
"version": "8.0.1.0.0",
|
||||||
|
"category": "Website",
|
||||||
|
"website": "http://www.antiun.com",
|
||||||
|
"author": "Antiun Ingeniería S.L., Odoo Community Association (OCA)",
|
||||||
|
"license": "AGPL-3",
|
||||||
|
"application": False,
|
||||||
|
"installable": True,
|
||||||
|
"depends": [
|
||||||
|
"website_mail",
|
||||||
|
],
|
||||||
|
"data": [
|
||||||
|
"views/assets.xml",
|
||||||
|
"views/snippets.xml",
|
||||||
|
],
|
||||||
|
}
|
Binary file not shown.
After Width: | Height: | Size: 1.0 KiB |
|
@ -0,0 +1,40 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
version="1.1"
|
||||||
|
id="svg2"
|
||||||
|
viewBox="0 0 100 100"
|
||||||
|
height="100"
|
||||||
|
width="100">
|
||||||
|
<defs
|
||||||
|
id="defs4" />
|
||||||
|
<metadata
|
||||||
|
id="metadata7">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
<dc:title></dc:title>
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<g
|
||||||
|
transform="translate(0,-952.36216)"
|
||||||
|
id="layer1">
|
||||||
|
<text
|
||||||
|
id="text3340"
|
||||||
|
y="1037.1029"
|
||||||
|
x="49.95929"
|
||||||
|
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:97.27411652px;line-height:87.99999952%;font-family:FontAwesome;-inkscape-font-specification:FontAwesome;text-align:center;writing-mode:lr-tb;text-anchor:middle;opacity:1;fill:#333333;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||||
|
xml:space="preserve"><tspan
|
||||||
|
y="1037.1029"
|
||||||
|
x="49.95929"
|
||||||
|
id="tspan3342"></tspan></text>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 1.4 KiB |
|
@ -8,7 +8,7 @@
|
||||||
<template id="assets_editor" inherit_id="website.assets_editor">
|
<template id="assets_editor" inherit_id="website.assets_editor">
|
||||||
<xpath expr=".">
|
<xpath expr=".">
|
||||||
<script type="text/javascript"
|
<script type="text/javascript"
|
||||||
src="/website_mail_snippet_responsive/static/src/js/vertical_resize.js"/>
|
src="/website_mail_snippet_vertical_resize_base/static/src/js/vertical_resize.js"/>
|
||||||
</xpath>
|
</xpath>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -0,0 +1,24 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- © 2016 Antiun Ingeniería S.L. - Jairo Llopis
|
||||||
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -->
|
||||||
|
|
||||||
|
<openerp>
|
||||||
|
<data>
|
||||||
|
|
||||||
|
<template id="snippet_hr"
|
||||||
|
inherit_id="website_mail.email_designer_snippets">
|
||||||
|
<xpath expr="//div[@id='snippet_options']">
|
||||||
|
<div
|
||||||
|
data-snippet-option-id='vertical_resize'
|
||||||
|
data-selector=".vertical_resizable">
|
||||||
|
<li>
|
||||||
|
<a href="#" class="button js_vertical_resize">
|
||||||
|
Change Height
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</div>
|
||||||
|
</xpath>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
</data>
|
||||||
|
</openerp>
|
Loading…
Reference in New Issue