avoid duplicated progress div tls-sprint
authorsylvain.thenault@logilab.fr
Wed, 15 Apr 2009 17:23:48 +0200
branchtls-sprint
changeset 1365 39a3bc7899d5
parent 1364 3acc823121b6
child 1366 fd5bd1a63c3f
avoid duplicated progress div
web/views/eproperties.py
--- a/web/views/eproperties.py	Wed Apr 15 17:23:26 2009 +0200
+++ b/web/views/eproperties.py	Wed Apr 15 17:23:48 2009 +0200
@@ -108,6 +108,8 @@
         req = self.req
         _ = req._
         w(u'<h1>%s</h1>\n' % _(self.title))
+        # we don't want this in each sub-forms
+        w(u'<div id="progress">%s</div>' % self.req._('validating...'))
         for label, group, form in sorted((_(g), g, f)
                                          for g, f in mainopts.iteritems()):
             status = css_class(self._group_status(group)) 
@@ -173,7 +175,7 @@
         form.form_add_hidden('__redirectpath', path)
         for key in keys:            
             self.form_row(form, key, splitlabel)
-        return form.form_render()
+        return form.form_render(display_progress_div=False)
 
     def form_row(self, form, key, splitlabel):
         entity = self.entity_for_key(key)