def display(self, value: FilterHTTPVariables) -> None: html.text_input(self._varprefix + "name") html.br() display_filter_radiobuttons( varname=self._varprefix + "match", options=[ ("exact", _("exact match")), ("regex", _("regular expression, substring match")), ], default="exact", value=value, ) html.br() html.open_span(class_="min_max_row") html.write_text(_("Min. Version: ")) html.text_input( self._varprefix + "version_from", default_value=value.get(self._varprefix + "version_from", ""), size=9, ) html.write_text(" ") html.write_text(_("Max. Vers.: ")) html.text_input( self._varprefix + "version_to", default_value=value.get(self._varprefix + "version_from", ""), size=9, ) html.close_span() html.br() html.checkbox( self._varprefix + "negate", False, label=_("Negate: find hosts <b>not</b> having this package"), )
def display(self, value: FilterHTTPVariables) -> None: display_filter_radiobuttons(varname=self.ident, options=[ ("no", _("used")), ("yes", _("free")), ("", _("(ignore)")), ], default="", value=value)
def display(self, value: FilterHTTPVariables) -> None: display_filter_radiobuttons(varname=self.ident, options=[ ("1", _("up")), ("2", _("down")), ("-1", _("(ignore)")), ], default="-1", value=value)