summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/ribbon.xml
AgeCommit message (Collapse)Author
2020-01-30[IMP] web: web_ribbon: handle longer labelsAaron Bohy
This commit implements a simple heuristic to display longer texts inside the web_ribbon widget: we adapt the font size according to the text length, and we tolerate to display it on several lines. This commit also allows to specify a tooltip in the xml (with tooltip attribute). Task 2185023 closes odoo/odoo#44279 Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
2019-08-13[REF] web: make ribbon widget great and user friendlyPatrick Hoste
PURPOSE Have a nice ribbon widget to display state of records: part II SPECIFICATIONS A POC for a new ribbon widget has been recently introduced at 02fbb737b96ab8e35123219db5cdcc008729953b. It adds a ribbon on the top right of a form to make some status more visible and more user friendly. This commit greatly improves the design of this ribbon in order to have a real ribbon. You have to specify the text attribute to show the text on the ribbon. You can also specify a bg_color attribute to color the background with a bootstrap background color class according to the business meaning of the flag displayed in the ribbon. LINKS Task ID : 2032621 PR : #34662
2019-07-12[ADD] web: add a new ribbon widget (POC)Patrick Hoste
Purpose ======= The ribbon widget adds a ribbon on the top right of a form to make some status more visible. You have to specify the text attribute to show the text on the ribbon. You can also specify a bg_color attribute to color the background with a bootstrap background color class. Note: This is an ugly draft of the final widget, that is supposed to land in master in a few days. As this PR brings a lot of functional changes in several files, it has become quite difficult to maintain it over the days. The final responsive version will come with: https://www.odoo.com/web#id=2032621&action=333&active_id=965&model=project.task&view_type=form&menu_id=4720