diff --git a/tailbone/templates/master/create.mako b/tailbone/templates/master/create.mako index 1c8ecae3..da86cb0b 100644 --- a/tailbone/templates/master/create.mako +++ b/tailbone/templates/master/create.mako @@ -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