mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
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:
parent
8c9f5900b5
commit
a1cb5387a1
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,4 +1,7 @@
|
||||
<div id="$id" class="$Classes">
|
||||
<div class="CommentFilter">
|
||||
$SearchForm
|
||||
</div>
|
||||
<% include TableListField_PageControls %>
|
||||
<table class="data">
|
||||
<thead>
|
||||
|
Loading…
Reference in New Issue
Block a user