Major integration of Courtland's design into the QuickVotes.
[selectricity-live] / app / views / quickvote / _create_sidebar.rhtml
diff --git a/app/views/quickvote/_create_sidebar.rhtml b/app/views/quickvote/_create_sidebar.rhtml
new file mode 100644 (file)
index 0000000..6d1bca5
--- /dev/null
@@ -0,0 +1,12 @@
+<%= error_messages_for 'quickvote' %>
+
+<script type="text/javascript">
+function show_advanced() {
+  Element.toggle($("advanced"));
+  Element.toggle($("advanced_toggle"));
+}
+<%= "Event.observe(window, 'load', show_advanced, false);" if show_advanced %>
+</script>
+
+<p id="advanced_toggle"><a href="#" onClick='show_advanced(); false;'>Show advanced options</a></p>
+

Benjamin Mako Hill || Want to submit a patch?