web/facet.py
branchstable
changeset 9139 5ca6e0ab0227
parent 9135 d42540bacff4
child 9373 d5d9acadb975
equal deleted inserted replaced
9138:bc6e25dbfd04 9139:5ca6e0ab0227
  1515         cssclass = 'facetTitle'
  1515         cssclass = 'facetTitle'
  1516         if self.facet.allow_hide:
  1516         if self.facet.allow_hide:
  1517             cssclass += ' hideFacetBody'
  1517             cssclass += ' hideFacetBody'
  1518         w(u'<div class="%s" cubicweb:facetName="%s">%s</div>\n' %
  1518         w(u'<div class="%s" cubicweb:facetName="%s">%s</div>\n' %
  1519                (cssclass, xml_escape(self.facet.__regid__), title))
  1519                (cssclass, xml_escape(self.facet.__regid__), title))
  1520         w(u'<input name="%s" type="text" value="%s" />\n' % (facetid, self.value or u''))
  1520         w(u'<input name="%s" type="text" value="%s" />\n' % (
       
  1521                 xml_escape(self.facet.__regid__), self.value or u''))
  1521         w(u'</div>\n')
  1522         w(u'</div>\n')
  1522 
  1523 
  1523 
  1524 
  1524 class FacetRangeWidget(htmlwidgets.HTMLWidget):
  1525 class FacetRangeWidget(htmlwidgets.HTMLWidget):
  1525     formatter = 'function (value) {return value;}'
  1526     formatter = 'function (value) {return value;}'