summaryrefslogtreecommitdiff
path: root/addons/pad/static/src
AgeCommit message (Collapse)Author
2019-03-06[REF] pad: adapt code after jQuery updateVincent Schippefilt
Part of task 1896658 Co-authored-by: Aaron Bohy <aab@odoo.com> Co-authored-by: Christophe Matthieu <chm@odoo.com> Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com> Co-authored-by: David Monjoie <dmo@odoo.com> Co-authored-by: Martin Geubelle <mge@odoo.com> Co-authored-by: svs-odoo <svs@odoo.com> Co-authored-by: Vincent Schippefilt <vsc@odoo.com>
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.
2018-06-22[IMP] Improve compatibility with screen readers (accessibility) (#24574)kujiu
Today, Odoo is really tricky to use without seeing the screen, it must be improved to be usable. This PR forbid to use labels without a "for" attribute, add some title, rule and aria attributes in HTML. With that, Odoo will be fully usable with a screen reader. * [IMP] Labels must have a for attribute. Improve accessibility. * [IMP] Better error message when trying to read a missing cached value * [FIX] Add some aria-label and title attributes for screen readers. * [FIX] Template name is not included in the error message in case of SyntaxError in QWeb * [FIX] Improve the Tour failed at step error message to be more explicit. * [IMP] Add aria-labels * [FIX] Add missing aria-label on failing test * [IMP] aria-hidden means hidden. Fix all bad aria-hidden and hide aria-hidden for all. * [IMP] Color names on kanban views and many2many tags * [IMP] Add some checks on views for accessibility. * [IMP] Add `alt` attribute on `img` tags. * [IMP] Add aria-label and title on non-described icons * [IMP] Add button role to widgets with btn class * [IMP] Translate aria and formatted attributes. * [IMP] Remove wrong aria-labelledby * [IMP] Add menu role on dropdowns * [IMP] Buttons must be focusable * [IMP] Add aria attributes on progress bars * [IMP] Improve accessibility of basic widgets * [IMP] Change main layout to more semantic tags * [IMP] Add menuitem role when missing * [IMP] Remove wrong role='presentation' * [IMP] Improve accessibility of tab panels * [IMP] Add aria-invalid on invalid fields * [IMP] Add aria-sort on ordered columns * [IMP] Add role on alerts * [IMP] Use dialog role, header, main and footer tags for modals * [IMP] Add labels on o_status * [IMP] Improve accessibility of kanban view with feeds and articles * [IMP] Add alerts in case of new messages * [IMP] Add widget, navigation or img role to aria-labelled items
2018-05-11[IMP] pad: add mobile support for pad widgetViral Thakar
In mobile devices, the pad widget did not behave in a satisfactory manner. Also, once it was in fullscreen mode, it was not possible to come back to normal mode. Task: #31545 PR: #15817
2017-08-10[FIX] pad: don't consider record as dirtyAdrien Dieudonne
Before this rev., when the user opened a form view containing a pad widget, with a pad url already configured, a dialog directly popped asking "The record has been modified, your changes will be discarded. Are you sure you want to ?". This is because of an unconventional behavior of this widget: the field actually encodes an url, the one of the pad to display. When the user saves, a write is forced so that the server can retrieve the pad's content and store it in DB. To force the write, the widget always notifies a fake change on the url. However, we don't want this change to trigger the confirm dialog. With this rev., this fake change doesn't make the record 'dirty'.
2017-07-27[FIX] pad: force writing url, even if it did not changeGéry Debongnie
Before this commit, the pad widget did not force the view to save the current value, since it did not change (pad values are just the url for the pad). However, this is a problem for the server, since it uses the fact that the web client forces a save to update the description field in the model (get the data from the pad server and add it to the database). This was not a big deal when looking at the pad (the pad widget fetches its data each time), but it is a problem that the database is not synchronized with the current data.
2017-07-27[FIX] web,pad: record is not considered dirty when pad is loadedGéry Debongnie
The pad widget does something unconventional: it creates the pad url only when rendering in edit mode. This was done to prevent creating pad by default for record in readonly mode. Because of that, if the user clicks on create, then discard, the record was considered dirty, so a confirmation modal popped up. In this commit, we just make sure that the initial setValue from the rendering does not 'dirty' the record.
2017-06-20[FIX] pad: not able to set pad widgetAdrien Dieudonne
Before this fix, it was possible to set the widget 'pad' on char fields but it only worked if the current model inherited from 'pad.common'. In the other cases, it crashed on closing Studio. As there is two models only (project.task and note.note), we decided to remove the possibility to set this widget in Studio. opw-745997
2017-05-11[FIX] pad: make it work with the new viewsGéry Debongnie
The pad widget was partially updated to the new views, but was no longer working. In this commit, we rewrite the widget to make it work. Note that we did some functional changes: - we do only one rpc to check if the server is configured. the result is stored on the prototype, so we do not need to do it again - we do some rpcs with shadow: true, so we will not stop the rest of the ui if the server is slow to respond - we display a loading message in readonly, when the content is not loaded yet.
2017-04-11[REF] web, *: redesign all JS viewsGéry Debongnie
This commit introduce a full redesign of all JS views. We started basically from scratch. The goal was to unify all the various views under a common framework, to make them testable, to make then usable in different conditions (in studio, or in the frontend), and to make our lives easier. Some important points are: - we introduced new coding guidelines (camelCase, 80 chars width, ...) - we have a brand new testing framework (still QUnit based) - kanban view moved to the web addon - calendar view (formerly web_calender) moved to web as well - the tree view was removed - all new code should be documented We hope that this code is the start of a new era for the Odoo web client, we want to have a high quality codebase, well documented, well tested, well designed. Work done by the framework team: mostly aab, ged, chm, dmo, qsm
2017-01-04[IMP] pad: Change the pad settings info labelMansi Gandhi
Because the configuration of pad is moved in general settings.
2016-09-16[IMP] pad: Use standard full screen icon and add tooltipsRohan Patel
replace the icon for fullscreen by the same one used on YouTube (or a similar one) + add tooltip 'Full Screen' and 'Exit Full Screen'
2016-09-02[IMP] pad: Display an user friendly message on pad configuration viewYannick Tivisse
2016-07-05[MIG] pad: Migrate into new apiJigar Patel
2016-04-21[FIX] pad: display oe_pad field even if emptyAaron Bohy
as it prints the helper saying that the pad will be initialized on first edit.
2015-06-25[MERGE] forward port of branch saas-6 up to 81b5c60Christophe Simonis
2015-06-11[FIX] pad: correct pad.jsChristophe Simonis
- better use of deferred - avoid useless re-render of widget by using `internal_set_value` - encode username in pad url
2015-03-18[IMP] web+addons: improvement to module systemGéry Debongnie
The module system needs to know the dependencies of a given module before executing the function. This is why the dependencies were defined once in an array, and then were described one more times in the call to require. But a trick can simplify this: the boot function can parse the string representation of the module and extract the calls to require from it. It is more work for the processor, but it leads to simpler module definitions.
2015-03-18[REF] various addons: update to the new module systemGéry Debongnie
2015-01-08[REM] modelines: Gotta catch 'em allRichard Mathot
2014-10-31[FIX] pad: hide navbar when passing in fullscreen modeChristophe Simonis
2014-09-03[FIX] pad: fullscreen pad behind the top nav barDenis Ledoux
2014-05-27[MERGE] Forward-port of latest 7.0 bugfixes, up to aeaa826Olivier Dony
2014-05-23Restore missed images during bzr to git transitionMartin Trigaux
2014-04-09[MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9969 ↵Denis Ledoux
revid:dle@openerp.com-20140409162932-y5fxd5wbojing2t2 bzr revid: dle@openerp.com-20140409163132-n3apqh6nvfg2qof9
2014-04-09[FIX] pad: render_value binded on change effective_readonly event, so render ↵Denis Ledoux
value calls wait for each others Proper fix than 9968 revid:dle@openerp.com-20140409160214-1anxi8z07xj49vsp bzr revid: dle@openerp.com-20140409162932-y5fxd5wbojing2t2
2014-04-09[FIX] pad: render_value binded on change effective_readonly event, so render ↵Denis Ledoux
value calls wait for each others bzr revid: dle@openerp.com-20140409160214-1anxi8z07xj49vsp
2014-04-09[FIX] pad: pad in readonly when opening form view in edit mode - opw 606208Anael Closson
bzr revid: acl@openerp.com-20140409114825-t10ps6o7qn7qbd7y
2014-03-14[MERGE] Forward port of saas-2 fixes up to rev 9152 rev-id ↵Olivier Dony
odo@openerp.com-20140314143519-x6rzcfkkqxwc0e1g bzr revid: odo@openerp.com-20140314143911-c2mxesg31xezeyr9
2014-03-14[FIX] pad: improve pad bootstrap, prevent creating useless empty pads, avoid ↵Olivier Dony
edition warning in read-only mode for new pads, translate messages Added a small method to detect the proper server configuration, and make it degrade gracefully if the method is not present. This avoids having to force a pad URL generation in order to test the config (possibly creating useless pads). Add a user-friendly message when the pad has not yet been initialized for a given record, in read-only mode. bzr revid: odo@openerp.com-20140314131849-rnjvk1pqpiyvtc1c
2014-03-13[MERGE] forward port of branch saas-2 up to revid 9149 ↵Christophe Simonis
chs@openerp.com-20140313163420-ifa4hyixj722d6jo bzr revid: mat@openerp.com-20140313091920-bahej198pu339e28 bzr revid: chs@openerp.com-20140313170940-yoqg6izfw74s2i3a
2014-03-13[FIX] pad: use server to get pad contentChristophe Simonis
bzr revid: chs@openerp.com-20140313153535-ogyip9tfm2hkwn1f
2014-02-13[MERGE] Forward-port of latest saas-2 bugfixes, up to rev. 9129 ↵Denis Ledoux
dle@openerp.com-20140213115951-h7c2o65lgg26aosv bzr revid: chs@openerp.com-20140212182315-clifgy95ug2rd6d8 bzr revid: dle@openerp.com-20140213120325-zq9bnl035i1s6xd4
2014-02-12[FIX] pad: font-awesomeize iconChristophe Simonis
bzr revid: chs@openerp.com-20140212181014-rk1qh1pcovtmjhqu
2014-02-12[FIX] pad: hide chatter in fullscreen modeChristophe Simonis
lp bug: https://launchpad.net/bugs/1267108 fixed bzr revid: chs@openerp.com-20140212134747-moiyebzdti4ieyc4
2013-11-27[FIX] pad: add break-word css to avoid going out of the field in case of too ↵Martin Trigaux
long words (eg: urls) (opw 593426) bzr revid: mat@openerp.com-20131127160300-yx42uee1xqx79ljl
2013-07-01[FIX] line should break if url link is too long for readonly etherpadRGA(OpenERP)
bzr revid: rgaopenerp-20130701095502-c6pgr2dz7i7zmdop
2013-04-24[FIX] pad: display problem due to wrong css selectorsniv-openerp
bzr revid: nicolas.vanhoren@openerp.com-20130424075406-eemkxc7eyyvgiywi
2013-04-24[FIX] pad: regression that caused a stack traceniv-openerp
bzr revid: nicolas.vanhoren@openerp.com-20130424074638-aq3o08v7z9j1asz0
2013-04-19[FIX] pad: problem about pad title not being updated correctly, was solved ↵niv-openerp
by solving another, more serious, bug that didn't updated correctly the database backup of the pad lp bug: https://launchpad.net/bugs/1155039 fixed bzr revid: nicolas.vanhoren@openerp.com-20130419143529-jku5titoacaajft0
2013-01-08[IMP] css: made the styling of the note's content constistant with the ↵Frédéric van der Essen
styling of the etherpad editor bzr revid: fva@openerp.com-20130108172057-8xmwdhfg3izkqbdf
2012-12-21[MERGE] FIX etherpad:When: a user access to the edit mode from a kanban view ↵Christophe Matthieu
or list view, etherpad is dipslay on readonly mode but with the oe_editing class. bzr revid: chm@openerp.com-20121221134227-1nbb922oz37ibjw5
2012-12-15[IMP] small css fixesFabien Pinckaers
bzr revid: fp@tinyerp.com-20121215125849-0gtgfjpmnnwdkjrb
2012-12-15[IMP] CSS of etherpadFabien Pinckaers
bzr revid: fp@tinyerp.com-20121215110758-3ahwmk20uh5kt6g7
2012-12-13[IMP] pad: remove attributes for superChristophe Matthieu
bzr revid: chm@openerp.com-20121213145855-0aq9wqtovyrxzxkw
2012-12-13[IMP] pad: add abord for $.get requestChristophe Matthieu
bzr revid: chm@openerp.com-20121213145714-b9d4f2u8iqdg8r1m
2012-12-13[MERGE] from trunkChristophe Matthieu
bzr revid: chm@openerp.com-20121213141115-cxfplrgbo7dyhuf9
2012-12-03[FIX] etherpad: When a user access to the edit mode from a kanban view or ↵Christophe Matthieu
list view, etherpad is dipslay on readonly mode but with the oe_editing class. Why: The deferer for read only arrive after the display of edit mode. Fix: check in the deferer if the etherpad is already in readonly mode. bzr revid: chm@openerp.com-20121203085116-jn83em3pd5le28rp
2012-11-29[IMP] improve the codeRandhir Mayatra (OpenERP)
bzr revid: rma@tinyerp.com-20121129053112-fiq8k4w56crv3q4x
2012-11-20[FIX] pad: very bad conception that produced html injection that produced a ↵niv-openerp
lot of incorrect css bzr revid: nicolas.vanhoren@openerp.com-20121120155155-y1wd0px4trljf453