Skip to content

Commit

Permalink
Load widget specific css on quickedit form.
Browse files Browse the repository at this point in the history
We were defining both javascript and css of the addable widgets,
but were only adding the javascript, not the css.

The calendar widget is still not really working there.  But if we are
loading this css when viewing a form, we should load it while
quickediting the form.  On Plone 4.3 it helped.
  • Loading branch information
mauritsvanrees committed Sep 30, 2015
1 parent 37c2148 commit 8375e49
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ Change History
1.8.0b5 (unreleased)
--------------------

- Load widget specific css on quickedit form.
[maurits]

- Fix embedded view by removing deprecated global defines macro.
[buchi]

Expand Down
10 changes: 10 additions & 0 deletions Products/PloneFormGen/browser/quickedit.pt
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,16 @@
<tal:expr replace="structure here/getHeaderInjection | nothing" />
</metal:javascript_head>

<metal:css fill-slot="style_slot">
<tal:css condition="css"
repeat="item css">
<style type="text/css"
media="all"
tal:condition="python:exists('portal/%s' % item)"
tal:content="structure string:&lt;!-- @import url($portal_url/$item); --&gt;">
</style>
</tal:css>
</metal:css>

<body>
<metal:content-core fill-slot="content-core">
Expand Down

0 comments on commit 8375e49

Please sign in to comment.