Added search form to comment admin

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@39801 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2007-08-09 22:24:38 +00:00
parent 8c9f5900b5
commit a1cb5387a1
2 changed files with 18 additions and 0 deletions

View File

@ -98,6 +98,21 @@ class CommentTableField extends ComplexTableField {
return $this->mode == 'spam';
}
function SearchForm() {
$searchFields = new FieldGroup(
new TextField('MemberSearch', 'Search'),
new HiddenField("ctf[mode]",'',$this->mode)
);
$actionFields = new LiteralField('CommentFilterButton','<input type="submit" name="CommentFilterButton" value="Filter" id="CommentFilterButton"/>');
$fieldContainer = new FieldGroup(
$searchFields,
$actionFields
);
return $fieldContainer->FieldHolder();
}
}

View File

@ -1,4 +1,7 @@
<div id="$id" class="$Classes">
<div class="CommentFilter">
$SearchForm
</div>
<% include TableListField_PageControls %>
<table class="data">
<thead>