aboutsummaryrefslogtreecommitdiff
path: root/src/views/dropdown/menu.ecr
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2016-05-24 20:42:20 -0400
committerPaul Duncan <pabs@pablotron.org>2016-05-24 20:42:20 -0400
commitfbff52e48d4591a752d83fbebb49a3a355eef5ae (patch)
tree9549990f151888c98d2b5a2ad338a41f48c3e91e /src/views/dropdown/menu.ecr
parent83242fd94df0280e7793caef912d7a12b240fcec (diff)
downloadguff-fbff52e48d4591a752d83fbebb49a3a355eef5ae.tar.bz2
guff-fbff52e48d4591a752d83fbebb49a3a355eef5ae.zip
add dropdown class and post type dropdown
Diffstat (limited to 'src/views/dropdown/menu.ecr')
-rw-r--r--src/views/dropdown/menu.ecr19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/views/dropdown/menu.ecr b/src/views/dropdown/menu.ecr
new file mode 100644
index 0000000..ca39c1e
--- /dev/null
+++ b/src/views/dropdown/menu.ecr
@@ -0,0 +1,19 @@
+<a
+ href='#'
+ class='btn btn-default'
+ title='<%= h(@text) %>'
+ data-toggle='dropdown'
+>
+ <%= Icon.icon(@icon) %>
+ <%= h(@name) %>:
+ <span><%= h(@default_name) %></span>
+ <i class='fa fa-caret-down'></i>
+</a>
+
+<ul
+ id='<%= h(@id) %>'
+ class='dropdown-menu <%= h(@css) %>'
+ data-default='<%= h(@default) %>'
+><%=
+ items
+%></ul><!-- dropdown-menu -->