diff options
author | Andrew Dolgov <[email protected]> | 2011-12-27 12:52:33 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2011-12-27 12:57:38 +0400 |
commit | ba975b2ec7d20d1e841b1f9fdc1a571317aca3eb (patch) | |
tree | 4c80af67216087197bc077b4564ada5b327626c4 /classes/dlg.php | |
parent | b69a09ea07041c23e7a7add2fed6c03cb989174b (diff) |
implement filtering by category (closes #386)
Diffstat (limited to 'classes/dlg.php')
-rw-r--r-- | classes/dlg.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/classes/dlg.php b/classes/dlg.php index 33295b904..9565dff87 100644 --- a/classes/dlg.php +++ b/classes/dlg.php @@ -462,8 +462,16 @@ class Dlg extends Protected_Handler { print "<hr/>"; print __("in") . " "; + + print "<span id='filterDlg_feeds'>"; print_feed_select($this->link, "feed_id", $active_feed_id, 'dojoType="dijit.form.FilteringSelect"'); + print "</span>"; + + print "<span id='filterDlg_cats' style='display : none'>"; + print_feed_cat_select($this->link, "cat_id", $active_cat_id, + 'dojoType="dijit.form.FilteringSelect"'); + print "</span>"; print "</div>"; @@ -505,7 +513,11 @@ class Dlg extends Protected_Handler { <label for=\"enabled\">".__('Enabled')."</label><hr/>"; print "<input dojoType=\"dijit.form.CheckBox\" type=\"checkbox\" name=\"inverse\" id=\"inverse\"> - <label for=\"inverse\">".__('Inverse match')."</label>"; + <label for=\"inverse\">".__('Inverse match')."</label><hr/>"; + + print "<input dojoType=\"dijit.form.CheckBox\" type=\"checkbox\" name=\"cat_filter\" id=\"cat_filter\" onchange=\"filterDlgCheckCat(this)\"> + <label for=\"cat_filter\">".__('Apply to category')."</label><hr/>"; + print "</div>"; |