Fix deform widget resource inclusion for master/create template

This commit is contained in:
Lance Edgar 2017-09-23 16:26:22 -05:00
parent 52747ea6bd
commit e283288a26

View file

@ -7,14 +7,12 @@
${parent.extra_javascript()} ${parent.extra_javascript()}
${self.disable_button_js()} ${self.disable_button_js()}
% if dform is not Undefined: % if dform is not Undefined:
% for field in dform: <% resources = dform.get_widget_resources() %>
<% resources = field.get_widget_resources() %> % for path in resources['js']:
% for path in resources['js']: ${h.javascript_link(request.static_url(path))}
${h.javascript_link(request.static_url(path))} % endfor
% endfor % for path in resources['css']:
% for path in resources['css']: ${h.stylesheet_link(request.static_url(path))}
${h.stylesheet_link(request.static_url(path))}
% endfor
% endfor % endfor
% endif % endif
</%def> </%def>