summaryrefslogtreecommitdiff
path: root/addons/website/static/src/xml/website.editor.xml
AgeCommit message (Collapse)Author
2019-08-09[IMP] website: make the menu/link dialog clearerAndrea Ulliana
Part of https://github.com/odoo/odoo/pull/34422 task-2026299
2019-07-30[IMP] website: allow adding fonts from Google FontsAndrea Ulliana
It is now possible to add very easily a font from Google Fonts under Customize Theme > Fonts > Add Google Font. Part of https://github.com/odoo/odoo/pull/33442 task-1974659 Co-authored-by: qsm-odoo <qsm@odoo.com>
2019-07-30[IMP] website: introduce "auto" widget for theme modalAndrea Ulliana
The theme customize dialog implements its own system of widgets. For example: data-widget="color" and data-widget="input". Now, a new type of widget data-widget="auto" exists. The goal is the same as the data-widget="input" but with a predefined value that the user cannot choose. Also, as "data-value" was badly chosen during its implementation, it is now renamed to "data-variable" and "data-value" is now used with the new widget. Example of the new widget "auto": <opt data-widget="auto" data-variable="logo-height" data-value="3rem" string="Logo Height"/> -> Allows to create a button forcing the logo height to 3rem. Part of https://github.com/odoo/odoo/pull/33442 task-1974659
2019-06-04[IMP] website, web_editor: make minor text modificationsAndrea Ulliana
- End of list in image library - Title add menu item - Warning message in html/css/js editor - Wording building block sections Part of https://github.com/odoo/odoo/pull/30986 task-1939869
2019-04-30[IMP] website: improve customize dialog UI for font selectionKaushalya Mandaliya
Replace the font selection UI by a dropdown. Make the system generic so that a dropdown can be used for any set of options. task-1942241 closes odoo/odoo#32437 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com> Co-authored-by: qsm-odoo <qsm@odoo.com>
2019-04-16[IMP] website: improve UX for logo/font size changingjpr-odoo
This removes the 'V' box and it now validates the entered value when the user clicks outside the box. task-1952964 closes odoo/odoo#32291 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-02-08[IMP] website, *: add new logo sizing optionqsm-odoo
* portal, web This commit introduces the first of many-to-come non-color website user values: the logo height. Now, the user can choose it in the customize dialog. PR https://github.com/odoo/odoo/pull/29624 task-1904244
2019-02-08[REF] website: unify the theme customize dialog color optionsqsm-odoo
Before this commit, color options in the theme customize were treated as big exception in the system. The whole color panel XML was defined client-side and used custom design. Now, all colors are defined as options in the "server-side" template, allowing for more customizations and better maintenance. This commit also makes the color saving system generic to allow for more new options in the future (like customizing the logo height or the font size, which is the next task). PR https://github.com/odoo/odoo/pull/29624 task-1904244
2019-02-08[IMP] website: improve theme customize dialogqsm-odoo
- Make the controller part more readable and more efficient (O(1) ORM operations instead of O(n)) and remove deprecated code. - Add the possibility to have a toggle standalone option. This is used as soon as an `<opt/>` is alone in its container (note that now, the container can be any tag and will be ignored during rendering). - If an option has no specified 'string' to attach to it, the name of the first view it toggles will be used. PR https://github.com/odoo/odoo/pull/29624 task-1904244
2019-01-31[FIX] website: prevent animation of anchor links with invalid fragmentqsm-odoo
Also secure the anchor creation to only allow valid names, that is letters, digits, underscores and hyphens. task-1913458 closes odoo/odoo#30701
2019-01-28[MERGE] forward port branch saas-12.1 up to d3b8422c9c4Christophe Simonis
closes odoo/odoo#30614
2019-01-18[MERGE] forward port branch 12.0 up to f854e01a983Christophe Simonis
2019-01-16[FIX] website: solve alignment bugs in onboardingAnshuman Sharma
- Fix the position of 'Add to menu' toggle button in new page dialog - Properly align tip icon in the welcome message task-1895287 closes odoo/odoo#29403
2019-01-18[FIX] web_editor, website: restore anchor link featureqsm-odoo
Following the new editor's merge at https://github.com/odoo/odoo/commit/22efdfbecc1e8c688000be98903a5a355d1ece8a, the anchor link feature was not working anymore. This commit also fixes a feature behavior: when editing a link which already contained an URL, the anchor field was not shown directly. closes odoo/odoo#30346
2019-01-17[IMP] web_editor,*: Refactoring the wysiwyg editor and 'html' fieldChristophe Matthieu
* Creating a new structure by transforming all the plugins in the library using the odoo inheritance system. Plugins are easier to implement with the AbstractPlugin to add Odoo behaviors. * From now on, the methods of the library (in this case Summernote) can no longer be called by other modules or files. Only the wysiwyg widgets can access it, to simplify the updating process. The wysiwyg object serves as an interface. * Depending on the options the snippets will be loaded or not, the editor will be in an iframe or not... all of this is transparent from the outside. * Regarding iframes, all controllers related to editing have been removed: the new API no longer needs them. This speeds up loading, eases testing and removes complexity for the same features. PUBLIC FEATURES There are several public methods on the Wysiwyg class: * Wysiwyg.prepare (WidgetParent): returns a deferred resolved when the library (xml, lazy, assets...) is loaded. * Wysiwyg.getRange (DOM): returns the range (selection in the dom) * Wysiwyg.setRange (startNode, startOffset, endNode, endOffset): creates a range (selection in the dom) * Wysiwyg.setRangeFromNode (DOM, options) that creates a range from an element (option available to select all, start or end) A jQuery selector was added: :o_editable, which indicates whether the current element is editable. That is, if it is contained in a tag with the attribute 'contentEditable = "true"' or in a tag with the class o_editable. Several methods are also present: * focusIn: makes a focus and places the cursor at the beginning of the element * focusInEnd: makes a focus and places the cursor at the end of the element * selectContent: makes a focus and selects the content HTML FIELD The HTML field can receive different options: * style-inline: {boolean} transforms a class into an inline style when saving and vice versa when reading. * no-attachment: {boolean} prevents the use of attachments (in media dialog) * cssEdit: {xml_id} to use a template containing the css to loaded in an iframe when editing * cssReadonly: {xml_id} to use a template containing the css to load into an iframe when viewing in readonly * snippets: {xml_id} snippets template (can be used with or without cssEdit) * wrapper: {template} qweb static template (containing a tag: id = "wrapper") that will include the content during editing (removed on save) MASS MAILING A widget was created for mass mailing. There are now two fields: body_html and body_arch. body_arch contains the code with the class without conversion into inline style, useful when editing and one with the inline style that is visible in readonly mode and sent by email. Advantage: no spreading errors, able to update css/theme, able to do more changes when converting to inline style so that a maximum of mail clients have an impeccable rendering. Co-authored-by: Antoine Guenet <age@odoo.com>
2019-01-09[IMP] website, *: allow creating anchor linksAndrea Ulliana
* portal, web_editor Anchor Link: - Some visual improvements of the link dialog. - New 'Page Anchor' field. - System by default: top and bottom. - Shows existing anchors. Creation of the anchor: - New option 'Anchor Name' to be able to create an anchor. task-1913458 closes odoo/odoo#29150
2018-10-26[REF] website: review theme dialog engineqsm-odoo
Refactor the code to remove useless parts, simplify behaviors and allow more customizations in future tasks. closes odoo/odoo#28167
2018-09-26[FIX] website: better allow color extensions in the futureqsm-odoo
2018-09-19[FIX] website, *: review navbar color systemqsm-odoo
* web_editor, website_slides Current system is styling all navbars with the user color. This was not the expected behavior but it is in fact quite nice, so we decided to keep it. There was however a problem: choosing the menu text color only applied to the main navbar (as it was an xpath toggling the navbar-dark class). This commit solves the problem by forcing navbar-light to behave as navbar-dark automatically if the menu background is dark, and this without any JS or extra CSS rules. This allows to get rid of the menu text color option. This commit also reviews the light and dark colors which are used when website is not installed.
2018-09-13[FIX] website: only show 'Follow tooltip' when possibleJeremy Kersten
Before this commit, the message was always displayed. Now we only show into the default homepage the message "Follow all the tooltip" when there at least 1 tooltip in the current page. task-1878245
2018-09-03[FIX] website: review website customize dialogqsm-odoo
Make some changes which are needed for theme migration. - Theme colors as user colors fallback only (not hard choice) - Review option dependency system
2018-08-30[REF] web_editor, *: review color theming systemqsm-odoo
* web, website - Introduce gray color palettes (needed for themes migration) - Synchronize BS4 color maps with individual variables (see comments about this in the code). - Review alpha/primary, beta/secondary matching: Before this commit, we decided that the common way to define a color palette was defining primary, secondary, gamma, delta and epsilon. alpha and beta were then forced to primary and secondary without other possibility. The new system makes more sense: 1) define alpha, beta, gamma, delta and epsilon 2) primary and secondary will automatically be set to your alpha and beta (allowing to style the default UI with BS4-independant variables) 3) if you are not happy with (2), you can define primary / secondary in your color palette so that they are not automatically set to alpha / beta This commit also changes what classes the editor uses. Background colors and text colors will now use alpha/beta/gamma/delta/epsilon (not primary and secondary anymore). For buttons, all the possibilities are suggested but color duplicates are hidden (so if your primary and alpha are equal, only one button color is suggested).
2018-08-30[REF] website: simplify color preview system in theme dialogqsm-odoo
Only one color palette is shown at a time, so no need for the extra css rules.
2018-08-10[IMP] *: make customize dialog generic and improve optionsqsm-odoo
* web, web_editor, website, website_theme_install, portal, theme_default, theme_bootswatch The purpose of this task is to make the customize dialog as generic as possible, that is theme-independant: 1) The design is now totally generic (Odoo visuals) 2) The XML definition is form-view like. This allows themes to extend the dialog without any risk of breaking the style and also allows to not care about lots of technical details. 3) New options have been included. Those were themes options that are now generic and which themes can simply adapt without touching the customize modal (navbar colors, footer color, navbar layout, fonts, body background, ...). The color palette can now also be customized with user colors. Using sass functionnalities, color palettes and fonts integration is now a lot better. Thanks to @qha-odoo for the original design. task-31677
2018-07-27[REF] *: BS4, adapt display classesqsm-odoo
The system completely changed. I also had to adapt classes to new screen breakpoints. hidden/hide -> d-none show -> d-block hidden-xs -> d-none d-md-(block/inline/...) hidden-sm -> d-md-none d-lg-(block/inline/...) hidden-md -> d-lg-none d-xl-(block/inline/...) hidden-lg -> d-xl-none visible-xs-* -> d-* d-md-none visible-sm-* -> d-none d-md-* d-lg-none visible-md-* -> d-none d-lg-* d-xl-none visible-lg-* -> d-none d-xl-* hidden-print -> d-print-none visible-print-* -> d-none d-print-* ... and all possible combination of those had to be handled too.
2017-06-02[IMP] website: hide homepage editor tooltip in mobileDharmraj Jhala
As edition is not allowed in mobile mode, only show "Welcome to your homepage" instead of indicating what to do to edit the page.
2017-02-10[IMP] web_editor: improve `LinkDialog` widget design and usabilityParth Gajjar
Specification ============= - no boxes around fields - use regular form style for input fields - don't split page/URL into two fields, just do one URL field, with autocomplete - Add alpha, beta, gamma, delta and epsilon color in color selection because they are used in mass mailing and themes also. - Add a selection option with label "L" inside circle for link. - Add Color selector for choosing button color - Remov select2 page selector and used jquery autocomplete on same input - Fix issue of page search in ir.http
2016-09-08[IMP] website: data: improve empty homepage messageDenis Vermylen (dve)
2016-08-19[IMP] mrp: App MRP --> Manufacturing (consistency between app and menu)Fabien Pinckaers
[IMP] website: better dialog when clicking on a menu in edit mode (less options is easier)
2016-08-19[IMP] website: allow to navigate through menus in edit modeqsm-odoo
Now, when clicking on a menu item while being in edit mode, a modal opens asking if we want to go to that page, edit that page, edit the menu or do nothing (it only allowed to edit the menu item before).
2016-07-25[FIX] website: correct design of welcome messageqsm-odoo
The welcome message was using the mt/mb classes to add some space on top and bottom of it. This is fine when the background-color of the website is white, but this is not the case with every theme. To fix the problem, add padding in LESS instead. Also move the inline style in LESS to prevent theme extension problems.
2016-07-04[IMP] website(_*): adaptation of tours to new systemqsm-odoo
+ Adapt website welcome message (Note: temporary duplicate tour: use old version for tests and new version for onboarding)
2016-07-04[IMP] website: homepage welcome message when emptyqsm-odoo
2015-07-10[IMP] web_editor: split website into web_editor (to use editor in backend ↵Christophe Matthieu
for html field) and website
2015-06-08[IMP] updated icon classes which are renamed in font-awesome v4.2 and ↵Pankaj Joshi
removed useless icon-* classes of old font-awesome
2015-02-11[IMP] website: menu editor open a modal to select the menu to edit if more ↵Christophe Matthieu
of one menu in the page (like event)
2015-01-26[IMP] website editor: display snippet block on the left side and open it on ↵Christophe Matthieu
mouse enter
2015-01-23[IMP] website editor: remove font size from media editor (font size is ↵Christophe Matthieu
available in image edition bar)
2015-01-16[IMP] website editor: designer can add new font like font-awsome (add folder ↵Christophe Matthieu
and need to push the new parser in website.editor.fontIcons javascript object)
2015-01-08[FIX] website editor: change button potitionChristophe Matthieu
2015-01-05[IMP] website: use the new summernote editorChristophe Matthieu
2014-10-16[MERGE] forward port of branch 8.0 up to 2b192beChristophe Simonis
2014-10-06[ADD] qweb: call directive's bodyXavier Morel
* __content__ can't be used in Python implementation because safe_eval, so use ``0`` from Python implementation instead * remove postfix from t-call tests because due to implementation details all whitespace crap following a t-name is added to rendered template in Python impl, and don't want to normalize whitespace.
2014-10-01[MERGE] forward port of branch 8.0 up to e883193Christophe Simonis
2014-09-16[ADD] Compress uploaded image by defaultFabien Meghazi
Added an opt-out option available from the button's dropdown
2014-08-21[IMP] website snippet new option, galleryChristophe Matthieu
website.snippet: The methods described in javascript will be called automatically from the data-method_name = value on li snippets options. The methods are called in the order relative to children of xml (eg: <li data-method1=value1> ... <li data-method2=value2> ... </ li>, the method1 is then called method2). Methods receive two arguments: type (over, click, reset) and value. data-snippet-id-option becomes data-snippet-id. Several xml options can use the same data-snippet-id. add a new gallery snippet convert website_sale to the new option system
2014-07-30[IMP] website: disable translations for example URLsOlivier Dony
2014-07-11[FIX] website: add forgotten button type (btn-success) for link editorChristophe Matthieu
2014-07-11[IMP] website: replace the select box into dropdown for link editor to have ↵Christophe Matthieu
a preview
2014-07-10[IMP] website editor: change link editor modal layoutChristophe Matthieu