aboutsummaryrefslogtreecommitdiff
path: root/src/views/admin-page.ecr
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2016-05-24 21:14:13 -0400
committerPaul Duncan <pabs@pablotron.org>2016-05-24 21:14:13 -0400
commitc5da1e620c07697c2b7b5d4b51db73ef0fc143e4 (patch)
tree395c5d57bf9025d8ffc544fb2f4c32efc5efc883 /src/views/admin-page.ecr
parentfbff52e48d4591a752d83fbebb49a3a355eef5ae (diff)
downloadguff-c5da1e620c07697c2b7b5d4b51db73ef0fc143e4.tar.bz2
guff-c5da1e620c07697c2b7b5d4b51db73ef0fc143e4.zip
add state filter and dropdown.js
Diffstat (limited to 'src/views/admin-page.ecr')
-rw-r--r--src/views/admin-page.ecr41
1 files changed, 39 insertions, 2 deletions
diff --git a/src/views/admin-page.ecr b/src/views/admin-page.ecr
index eedc41c..ad8d429 100644
--- a/src/views/admin-page.ecr
+++ b/src/views/admin-page.ecr
@@ -87,11 +87,14 @@
<div class='btn-group btn-group-sm'><%=
dropdown(
id: "posts-filter-type",
- name: "Type",
css: "posts-filter-menu",
- text: "Filter by type.",
+
+ name: "Type",
+ text: "Filter posts by type.",
+
icon: "",
default: "all",
+
items: [{
id: "all",
name: "All",
@@ -114,6 +117,39 @@
)
%></div><!-- btn-group -->
+ <div class='btn-group btn-group-sm'><%=
+ dropdown(
+ id: "posts-filter-state",
+ css: "posts-filter-menu",
+
+ name: "State",
+ text: "Filter by post state.",
+
+ icon: "",
+ default: "default",
+
+ items: [{
+ id: "default",
+ name: "Default",
+ text: "Show drafts and posted items.",
+ }, {
+ type: "divider",
+ }, {
+ id: "draft",
+ name: "Draft",
+ text: "Show draft items.",
+ }, {
+ id: "posted",
+ name: "Posted",
+ text: "Show posted items.",
+ }, {
+ id: "deleted",
+ name: "Deleted",
+ text: "Show deleted items.",
+ }],
+ )
+ %></div><!-- btn-group -->
+
<div class='btn-group btn-group-sm pull-right'>
<a
href='#'
@@ -1050,6 +1086,7 @@
assets/bootstrap-3.3.6/js/bootstrap.min.js
assets/ckeditor-4.5.8-custom/ckeditor.js
assets/js/search-field.js
+ assets/js/dropdown.js
assets/js/admin/tabs/users.js
assets/js/admin/tabs/posts.js
assets/js/admin/dialogs/user-add.js