equal
deleted
inserted
replaced
58 self.w(u'<form method="post" cubicweb:facetargs="%s" action="">' % |
58 self.w(u'<form method="post" cubicweb:facetargs="%s" action="">' % |
59 xml_escape(dumps([divid, 'table', False, vidargs]))) |
59 xml_escape(dumps([divid, 'table', False, vidargs]))) |
60 self.w(u'<fieldset id="%sForm" class="%s">' % (divid, hidden and 'hidden' or '')) |
60 self.w(u'<fieldset id="%sForm" class="%s">' % (divid, hidden and 'hidden' or '')) |
61 self.w(u'<input type="hidden" name="divid" value="%s" />' % divid) |
61 self.w(u'<input type="hidden" name="divid" value="%s" />' % divid) |
62 self.w(u'<input type="hidden" name="fromformfilter" value="1" />') |
62 self.w(u'<input type="hidden" name="fromformfilter" value="1" />') |
63 filter_hiddens(self.w, facets=','.join(wdg.facet.id for wdg in fwidgets), |
63 filter_hiddens(self.w, facets=','.join(wdg.facet.__regid__ for wdg in fwidgets), |
64 baserql=baserql) |
64 baserql=baserql) |
65 self.w(u'<table class="filter">\n') |
65 self.w(u'<table class="filter">\n') |
66 self.w(u'<tr>\n') |
66 self.w(u'<tr>\n') |
67 for wdg in fwidgets: |
67 for wdg in fwidgets: |
68 self.w(u'<td>') |
68 self.w(u'<td>') |
163 table.render(self.w) |
163 table.render(self.w) |
164 self.w(u'</div>\n') |
164 self.w(u'</div>\n') |
165 if not fromformfilter: |
165 if not fromformfilter: |
166 self.w(u'</div>\n') |
166 self.w(u'</div>\n') |
167 |
167 |
168 |
|
169 def show_hide_actions(self, divid, currentlydisplayed=False): |
168 def show_hide_actions(self, divid, currentlydisplayed=False): |
170 showhide = u';'.join(toggle_action('%s%s' % (divid, what))[11:] |
169 showhide = u';'.join(toggle_action('%s%s' % (divid, what))[11:] |
171 for what in ('Form', 'Show', 'Hide', 'Actions')) |
170 for what in ('Form', 'Show', 'Hide', 'Actions')) |
172 showhide = 'javascript:' + showhide |
171 showhide = 'javascript:' + showhide |
173 showlabel = self._cw._('show filter form') |
172 showlabel = self._cw._('show filter form') |