In the middle of adding custom theme supports. Skin_pictures table added to store...
[selectricity-live] / app / views / election / _themeupload.rhtml
diff --git a/app/views/election/_themeupload.rhtml b/app/views/election/_themeupload.rhtml
new file mode 100644 (file)
index 0000000..20d7e29
--- /dev/null
@@ -0,0 +1,25 @@
+<%= error_messages_for("skin_picture") %>
+
+<p>If you want a custom theme upload it if here!<br />
+
+<span><label for="skin_picture_topbar">Top Bar</span><br />
+       <%=file_field :skin_picture, :uploaded_data %><br />
+<span><label for="skin_picture_default_image">Corner Image</span><br />
+       <%=file_field :skin_picture, :uploaded_data %><br />
+<span><label for="skin_picture_vote_bg1">Background One</span><br />
+       <%=file_field :skin_picture, :uploaded_data %><br />
+<span><label for="skin_picture_vote_bg2">Background Two</span><br />
+       <%=file_field :skin_picture, :uploaded_data %><br />
+<span><label for="skin_picture_bottombar">Bottom Bar</span><br />
+       <%=file_field :skin_picture, :uploaded_data %><br />
+</p>
+       
+<p>Detailed Information:
+       Every embeddable widget uses five different picture files to create 
+               it's color scheme and default image. If you have images you'd like to
+               use in your widget. Please make sure they fit the
+               specified dimensions.<br />
+               Top Bar/ Bottom Bar/ Alternating Backgrounds: 330px wide 53px tall
+               <br />
+               Default Image: 70px wide 53px tall
+</p>
\ No newline at end of file

Benjamin Mako Hill || Want to submit a patch?