From bff93d5b6a46e6c996e43dc4d669a4514da87cc6 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Thu, 28 Jul 2016 02:10:45 -0400 Subject: refactor dialog and pane templates --- src/views/panes/admin/files.ecr | 124 ++++++++++++++++++++++++++++ src/views/panes/admin/home.ecr | 21 +++++ src/views/panes/admin/posts.ecr | 175 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 320 insertions(+) create mode 100644 src/views/panes/admin/files.ecr create mode 100644 src/views/panes/admin/home.ecr create mode 100644 src/views/panes/admin/posts.ecr (limited to 'src/views/panes') diff --git a/src/views/panes/admin/files.ecr b/src/views/panes/admin/files.ecr new file mode 100644 index 0000000..d5c4f0d --- /dev/null +++ b/src/views/panes/admin/files.ecr @@ -0,0 +1,124 @@ +
+
+ + +
+
+
+
+ +
+
+
+
diff --git a/src/views/panes/admin/home.ecr b/src/views/panes/admin/home.ecr new file mode 100644 index 0000000..af19b78 --- /dev/null +++ b/src/views/panes/admin/home.ecr @@ -0,0 +1,21 @@ +
+
+
+
+
<%= + new_post_button + %>
+
+
+ +
+

+ TODO: home +

+
+
+
diff --git a/src/views/panes/admin/posts.ecr b/src/views/panes/admin/posts.ecr new file mode 100644 index 0000000..5e6571d --- /dev/null +++ b/src/views/panes/admin/posts.ecr @@ -0,0 +1,175 @@ +
+
+
+
+
<%= + new_post_button + %>
+ +
+    +
+ +
<%= + dropdown( + id: "posts-filter-type", + css: "posts-filter-menu", + + name: "Type", + text: "Filter posts by type.", + + icon: "", + default: "all", + + items: [{ + :id => "all", + :name => "All", + :text => "Show all types.", + }, { + :type => "divider", + }] + %i{blog page project}.map { |id| + # get post type + post_type = Guff::Views::AdminPageView::POST_TYPES[id] + + { + :id => post_type[:id], + :name => post_type[:name], + :icon => post_type[:icon], + :text => "Show #{post_type[:name]}s.", + } + } + ) + %>
+ +
<%= + 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", + }].concat(states_menu_items), + ) + %>
+ +
<%= + dropdown( + id: "posts-filter-site", + css: "posts-filter-menu", + + name: "Site", + text: "Filter by site.", + + icon: "", + default: "all", + + items: [{ + :id => "all", + :name => "All", + :text => "Show all sites.", + }, { + :type => "divider", + }].concat(sites_menu_items), + ) + %>
+ +
<%= + dropdown( + id: "posts-filter-user", + css: "posts-filter-menu", + + name: "Author", + text: "Filter by author.", + + icon: "", + default: "all", + + items: [{ + :id => "all", + :name => "All", + :text => "Show all authors.", + }, { + :type => "divider", + }].concat(authors_menu_items), + ) + %>
+ +
+ + + +
+ + +
+
+ + + + + + + + + + + + + + + + + + +
 NameSiteSlugAuthorCreatedPosted
+
+
-- cgit v1.2.3