Commit Graph
147 Commits
Author SHA1 Message Date
Xavier Morel 44af6d1e09 [IMP] significantly improve handling of trying to create a new page which already exists
# Through the menu

Rather than output a generic error (500 due to an IntegrityError),
return a templated 409 letting the user either visit the
page-which-already-exists-with-the-name-he'd-picked or open the page
creation dialog again for a second round.

An alternative would be to promote the website.prompt use to
full-blown dialog as a result of selecting "New Page" and handle the
"page already exists" case without even closing the dialog.

# Through the link dialog

Added an RPC call to check if a page already exists (essentially a
cheaper version of opening /page/whatever and checking whether it's a
200 over JSON-RPC), if the page matching the completion term already
exists, do *not* add the choice of creating the page, only provide
completions from existing pages.

bzr revid: xmo@openerp.com-20131126160148-wrk4zvz9istscwa0
2013-11-26 17:01:48 +01:00
Xavier Morel 3731d33852 [FIX] don't perform page creation when no name was provided
bzr revid: xmo@openerp.com-20131126124739-djk6nbifyo087bmz
2013-11-26 13:47:39 +01:00
Xavier Morel 854e453958 [CHG] remove opacity changes on image hover
bzr revid: xmo@openerp.com-20131126092339-7wqx54t8iuvy8e9a
2013-11-26 10:23:39 +01:00
Xavier Morel b05db3495c [IMP] in crawler testing, indicate at which page the failed url was found
bzr revid: xmo@openerp.com-20131125120548-0s7xnhszd48e1u9v
2013-11-25 13:05:48 +01:00
Xavier Morel 4679bfd283 [IMP] lower completion trigger threshold to 1
could be removed entirely, but not sure users would realize there are plenty more urls to look for...

bzr revid: xmo@openerp.com-20131125102228-igkzfsh50y1ytwef
2013-11-25 11:22:28 +01:00
Xavier Morel 52b8226a83 [FIX] on completion error, tell user there are no results
not sure whether and how an error could/should be reported to the
user. For now, it's automatically logged into the console.

bzr revid: xmo@openerp.com-20131125101819-u2akhr16bd5kcsmf
2013-11-25 11:18:19 +01:00
Xavier Morel 53793703de [ADD] dropdown for link style
bzr revid: xmo@openerp.com-20131122151124-1n7cnwldm3ej6wz7
2013-11-22 16:11:24 +01:00
Xavier Morel 264fe7d98b [ADD] small transparency when hovering editable images, so [Edit] button stands out more
bzr revid: xmo@openerp.com-20131122102322-s776o3f80bku3f4a
2013-11-22 11:23:22 +01:00
Xavier Morel 1f2a40e3f7 [FIX] horizontal centering of edition button on images centered with margin: 0 auto in webkit-based browsers
bzr revid: xmo@openerp.com-20131122101154-fsae9uz33smy2ja9
2013-11-22 11:11:54 +01:00
Xavier Morel 233e460b52 [FIX] forgot to tell ckeditor not to load removed bootstrap combo plugin
bzr revid: xmo@openerp.com-20131121160516-a29x498ode34p1ml
2013-11-21 17:05:16 +01:00
Xavier Morel 32147fbffc [REM] bootstrap link configuration combo, it has served its testing purposes
bzr revid: xmo@openerp.com-20131121154501-vrs26caromm6ebgb
2013-11-21 16:45:01 +01:00
Xavier Morel fee8cb0fff [FIX] reimplement [Edit] button on images
Button implementation turned out to be crap:

* Didn't work at all in Firefox (!)

* Unreliable in webkit, some types of image selection wouldn't
  correctly activate the button

->

* changed RTEImageDialog to take an (optional) image element, used as
  the "source element" if provided. This allows greater reliability
  for events which may leave selection in debatable or variable
  (across browsers) state

* setup and teardown button on hover, using selection triggered issues
  with oe_overlay thing where e.g. the first click on the button would
  work but the second one would not (it'd be intercepted by the
  overlay as far as I can tell).

  This also saves a click for user, they will see the [Edit] button
  immediately when putting the cursor over the image.

bzr revid: xmo@openerp.com-20131121110748-s5e2ne3etpzwi2a6
2013-11-21 12:07:48 +01:00
Christophe Matthieu 6b10be15b2 [IMP] website snippet: add group for styles snippets, add custom picture with style snippet, mouseover and mouseout preview, fix dark css class in demo data
bzr revid: chm@openerp.com-20131120115250-etqv5ofqguze0zsj
2013-11-20 12:52:50 +01:00
Xavier Morel fd02a389e9 [REM] apparently unnecessary icons
bzr revid: xmo@openerp.com-20131120091147-4vshzojq6mwhvice
2013-11-20 10:11:47 +01:00
Christophe Matthieu 5e7a8a957c [IMP] website editor: better rendering of the popover when failure write raise by except_osv.
bzr revid: chm@openerp.com-20131119143259-vm7o3vq79358h56w
2013-11-19 15:32:59 +01:00
Christophe Matthieu 8054696a43 [FIX] website editor for IE
bzr revid: chm@openerp.com-20131119135704-rnva3skoh55h3eti
2013-11-19 14:57:04 +01:00
Xavier Morel b6be7b87c6 [IMP] add img-responsive to images generated via dialog
avoids having the image end up larger than its container

bzr revid: xmo@openerp.com-20131119131113-9010p4tubk1yz10s
2013-11-19 14:11:13 +01:00
Xavier Morel ba2ee4e287 [FIX] cleanup image edition button on editor save
bzr revid: xmo@openerp.com-20131119125520-qpts34qbx1oofdc1
2013-11-19 13:55:20 +01:00
Fabien Meghazi bb0badbf40 [IMP] Simplify js_link2post event
bzr revid: fme@openerp.com-20131119110612-uc4j1l6xexrt9fyt
2013-11-19 12:06:12 +01:00
Xavier Morel 5723b1588e [MERGE] from trunk
bzr revid: xmo@openerp.com-20131119102552-f8d03meddylwseyr
2013-11-19 11:25:52 +01:00
Fabien Meghazi 1b77b76460 [ADD] breadcrumb return_url to Website
bzr revid: fme@openerp.com-20131118124958-j1t85mywopoawtk7
2013-11-18 13:49:58 +01:00
Xavier Morel 780c35598d [MERGE] from trunk
bzr revid: xmo@openerp.com-20131115132903-epi3321e4uxjqtn2
2013-11-15 14:29:03 +01:00
Fabien Pinckaers 85265aefb9 [IMP] layout of website.prompt
bzr revid: fp@openerp.com-20131114212856-ff42xtka5dlv8c8c
2013-11-14 22:28:56 +01:00
Fabien Meghazi 95f63af992 [IMP] Improved openerp.website.prompt() and write documentation
Yeah ! You read me ! I (fme) wrote documentation !

Yeaaaaaaaaaaaaah !!!

bzr revid: fme@openerp.com-20131114093214-isjmwwbzsj3ahr61
2013-11-14 10:32:14 +01:00
Fabien Meghazi 7598bcdb98 [ADD] Content menu links splitted per modules
TODO: website.prompt() should be finished for Add a blog post link

Added @id=editable_scripts_hook in layout template so modules can easly add *.editor.js files

bzr revid: fme@openerp.com-20131113171438-3l0wo08ta5vsulq3
2013-11-13 18:14:38 +01:00
Xavier Morel ca0537ad4a [FIX] menu entry dialog to work correctly with select2 page picker
bzr revid: xmo@openerp.com-20131113155704-7l0d87va0860h7dx
2013-11-13 16:57:04 +01:00
Xavier Morel 837aa436e5 [IMP] abort FAYT requests when the next one comes in
bzr revid: xmo@openerp.com-20131113151832-ym4hvpyhn5t7ocxs
2013-11-13 16:18:32 +01:00
Xavier Morel d15a6f426d [IMP] replace selection list of existing CMS pages by FAYT via select2
bzr revid: xmo@openerp.com-20131113143934-je7dusgzj15f7li0
2013-11-13 15:39:34 +01:00
Xavier Morel 122ddb8e31 [IMP] rename list_pages to enumerate_pages, add a search method and a basic non-contiguous substring match
bzr revid: xmo@openerp.com-20131113101824-uqatvqokkzhvi0ei
2013-11-13 11:18:24 +01:00
Fabien Pinckaers 854916ce54 [IMP] Reorder menu
bzr revid: fp@openerp.com-20131109150613-scepw4gdw7my4s76
2013-11-09 16:06:13 +01:00
Fabien Pinckaers bc62ae21b6 [IMP] Remove Bounce effet
bzr revid: fp@openerp.com-20131109142751-cj9334s8avd4rzve
2013-11-09 15:27:51 +01:00
Fabien Pinckaers 14146a7b6c [IMP] Show Sign In as an option
bzr revid: fp@openerp.com-20131109083550-pa2u3dqvynz0qrb1
2013-11-09 09:35:50 +01:00
Xavier Morel ea65573b48 [ADD] image edition button v0
bzr revid: xmo@openerp.com-20131107092018-66tae9nu1kcft21g
2013-11-07 10:20:18 +01:00
Xavier Morel 20899155c5 [IMP] during image upload, disable save button
hide it and replace it with a button telling the user what we're
currently doing (uploading the image).

Leave the possibility of discarding the whole thing and going away
though.

bzr revid: xmo@openerp.com-20131106152412-eb283vghb18aafyr
2013-11-06 16:24:12 +01:00
Fabien Meghazi 2d81712e2c [FIX] Prevent dropdown closing when a contenteditable children is focused
bzr revid: fme@openerp.com-20131106115754-lyt6hd8pnrfv7vfi
2013-11-06 12:57:54 +01:00
Fabien Pinckaers 5a425dda78 [IMP] More explicit; where is the Edit button
[IMP] remove "Create a free website if logged", see usertesting
[IMP] Advanced view editor -> "HTML Editor"
[IMP] Footer: editable zone grouped in a <div> for efficient distribute branding

bzr revid: fp@tinyerp.com-20131106083833-cz4xc2ast5d9ao19
2013-11-06 09:38:33 +01:00
Fabien Meghazi f880400e43 [IMP] Improved menu link dialog
bzr revid: fme@openerp.com-20131104113412-q5d8263741pq9wna
2013-11-04 12:34:12 +01:00
Fabien Meghazi 35d469d51f [FIX] Reuse website.editor.LinkDialog#bind_data()
bzr revid: fme@openerp.com-20131031165117-13yo8nrfg1ru4cp8
2013-10-31 17:51:17 +01:00
Fabien Meghazi a87196eece [REM] Removed useless feature
bzr revid: fme@openerp.com-20131030151201-liz3qyn4mkv2ukc2
2013-10-30 16:12:01 +01:00
Fabien Meghazi 12801a8cbc [MERGE] upstream
bzr revid: fme@openerp.com-20131030082046-13kxszts8g0ky4wr
2013-10-30 09:20:46 +01:00
Fabien Meghazi 4ae5425fb8 [FIX] Buggy qweb template loading
bzr revid: fme@openerp.com-20131029161128-ko0ocpa0h6kziooh
2013-10-29 17:11:28 +01:00
Fabien Meghazi 82c749c91d [IMP] Refactor LinkDialog -> RTELinkDialog
bzr revid: fme@openerp.com-20131028162623-i2a4cixspm8q1crx
2013-10-28 17:26:23 +01:00
Xavier Morel 0db0f20bda [ADD] WIP link combo
bzr revid: xmo@openerp.com-20131028152342-5clhbwwwfcdxxxq0
2013-10-28 16:23:42 +01:00
Fabien Meghazi 26e62b0e0e [IMP] Menu tree from client side
bzr revid: fme@openerp.com-20131028112350-9or1z3e3ndgk4mfg
2013-10-28 12:23:50 +01:00
Fabien Meghazi 321bf56b99 [MERGE] upstream
bzr revid: fme@openerp.com-20131028091527-hbki8epj0oh4s821
2013-10-28 10:15:27 +01:00
Fabien Meghazi eb7b1362cd [WIP] Menu working from database (not yet multi-website)
bzr revid: fme@openerp.com-20131025152446-si9gsjujzcn40hip
2013-10-25 17:24:46 +02:00
Xavier Morel 4c88701f3d [FIX] change access rights for customize_template_*
bzr revid: xmo@openerp.com-20131025095952-9ditm4q3fwr9auto
2013-10-25 11:59:52 +02:00
Xavier Morel 1ce3230d13 [IMP] don't completely wedge the RTE in case save fails. This may well break snippets entirely in case of save failure.
bzr revid: xmo@openerp.com-20131023130918-j5s81t0j60gitr1t
2013-10-23 15:09:18 +02:00
Fabien Meghazi 7dd1934585 [FIX] option typo: unable_editor -> enable_editor
bzr revid: fme@openerp.com-20131023091152-h0hxw47hzfor2al8
2013-10-23 11:11:52 +02:00
Xavier Morel 3655f43e42 [IMP] warnings and shit
bzr revid: xmo@openerp.com-20131022151144-tblwba9rf77iuidl
2013-10-22 17:11:44 +02:00