Fix deform widget resource inclusion for master/create template
This commit is contained in:
parent
52747ea6bd
commit
e283288a26
|
@ -7,14 +7,12 @@
|
|||
${parent.extra_javascript()}
|
||||
${self.disable_button_js()}
|
||||
% if dform is not Undefined:
|
||||
% for field in dform:
|
||||
<% resources = field.get_widget_resources() %>
|
||||
% for path in resources['js']:
|
||||
${h.javascript_link(request.static_url(path))}
|
||||
% endfor
|
||||
% for path in resources['css']:
|
||||
${h.stylesheet_link(request.static_url(path))}
|
||||
% endfor
|
||||
<% resources = dform.get_widget_resources() %>
|
||||
% for path in resources['js']:
|
||||
${h.javascript_link(request.static_url(path))}
|
||||
% endfor
|
||||
% for path in resources['css']:
|
||||
${h.stylesheet_link(request.static_url(path))}
|
||||
% endfor
|
||||
% endif
|
||||
</%def>
|
||||
|
|
Loading…
Reference in a new issue