aboutsummaryrefslogtreecommitdiff
path: root/src/views/dropdown/menu.ecr
diff options
context:
space:
mode:
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 -->