equal
deleted
inserted
replaced
169 or field.name in form.internal_fields |
169 or field.name in form.internal_fields |
170 or (field.name, field.role) in self.display_fields |
170 or (field.name, field.role) in self.display_fields |
171 or (field.name, field.role) in form.internal_fields) |
171 or (field.name, field.role) in form.internal_fields) |
172 |
172 |
173 def render_fields(self, w, form, values): |
173 def render_fields(self, w, form, values): |
174 form.form_build_context(values) |
|
175 fields = self._render_hidden_fields(w, form) |
174 fields = self._render_hidden_fields(w, form) |
176 if fields: |
175 if fields: |
177 self._render_fields(fields, w, form) |
176 self._render_fields(fields, w, form) |
178 self.render_child_forms(w, form, values) |
177 self.render_child_forms(w, form, values) |
179 |
178 |
554 self.render_fields(w, form, values) |
553 self.render_fields(w, form, values) |
555 w(u'</div></div>') |
554 w(u'</div></div>') |
556 return '\n'.join(data) |
555 return '\n'.join(data) |
557 |
556 |
558 def render_fields(self, w, form, values): |
557 def render_fields(self, w, form, values): |
559 form.form_build_context(values) |
|
560 w(u'<fieldset id="fs-%(divid)s">' % values) |
558 w(u'<fieldset id="fs-%(divid)s">' % values) |
561 fields = self._render_hidden_fields(w, form) |
559 fields = self._render_hidden_fields(w, form) |
562 w(u'</fieldset>') |
560 w(u'</fieldset>') |
563 w(u'<fieldset class="subentity">') |
561 w(u'<fieldset class="subentity">') |
564 if fields: |
562 if fields: |