web/views/tableview.py
branchstable
changeset 9166 e47e192ea0d9
parent 8871 7d1ccaac5ae3
child 9328 6a355522438c
equal deleted inserted replaced
9165:7ebf3b1cdb4c 9166:e47e192ea0d9
   199         if facetsform and self.display_filter == 'top':
   199         if facetsform and self.display_filter == 'top':
   200             cssclass = u'hidden' if self.hide_filter else u''
   200             cssclass = u'hidden' if self.hide_filter else u''
   201             facetsform.render(w, vid=self.view.__regid__, cssclass=cssclass,
   201             facetsform.render(w, vid=self.view.__regid__, cssclass=cssclass,
   202                               divid=self.view.domid)
   202                               divid=self.view.domid)
   203         actions = []
   203         actions = []
   204         if self.add_view_actions:
   204         if self.display_actions:
   205             actions = self.view.table_actions()
   205             if self.add_view_actions:
   206         if self.display_filter and self.hide_filter and (facetsform or not generate_form):
   206                 actions = self.view.table_actions()
   207             actions += self.show_hide_filter_actions(not generate_form)
   207             if self.display_filter and self.hide_filter and (facetsform or not generate_form):
       
   208                 actions += self.show_hide_filter_actions(not generate_form)
   208         self.render_table(w, actions, self.view.paginable)
   209         self.render_table(w, actions, self.view.paginable)
   209         if facetsform and self.display_filter == 'bottom':
   210         if facetsform and self.display_filter == 'bottom':
   210             cssclass = u'hidden' if self.hide_filter else u''
   211             cssclass = u'hidden' if self.hide_filter else u''
   211             facetsform.render(w, vid=self.view.__regid__, cssclass=cssclass,
   212             facetsform.render(w, vid=self.view.__regid__, cssclass=cssclass,
   212                               divid=self.view.domid)
   213                               divid=self.view.domid)