From e283288a26e55666398023f3456f5d85cb0c2d5a Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sat, 23 Sep 2017 16:26:22 -0500 Subject: [PATCH] Fix deform widget resource inclusion for master/create template --- tailbone/templates/master/create.mako | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) 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