def text_filter_formstyle(form, fields, *args, **kwargs):
 def render_row(row_id, label, widget, comment, hidden=False):
  controls = DIV(DIV(LABEL('Search:', _class='prefix'), _class='large-4 columns', _for=widget[1].attributes['_name']), DIV(widget, _class='large-8 columns'), _class='row collapse prefix-radius', _id=row_id)
  return controls
 if args:
  row_id = form
  label = fields
  (widget, comment) = args
  hidden = kwargs.get('hidden', False)
  return render_row(row_id, label, widget, comment, hidden)
 else:
  parent = TAG['']()
  for (row_id, label, widget, comment) in fields:
   parent.append(render_row(row_id, label, widget, comment))
  return parent

def text_filter_formstyle ( form , fields , * args , ** kwargs ) : def render_row ( row_id , label , widget , comment , hidden = False ) : controls = DIV ( DIV ( LABEL ( 'Search:' , _class = 'prefix' ) , _class = 'large-4 columns' , _for = widget [ 1 ] . attributes [ '_name' ] ) , DIV ( widget , _class = 'large-8 columns' ) , _class = 'row collapse prefix-radius' , _id = row_id ) return controls if args : row_id = form label = fields ( widget , comment ) = args hidden = kwargs . get ( 'hidden' , False ) return render_row ( row_id , label , widget , comment , hidden ) else : parent = TAG [ '' ] ( ) for ( row_id , label , widget , comment ) in fields : parent . append ( render_row ( row_id , label , widget , comment ) ) return parent
custom formstyle for s3textfilter .