new themes added to desktop plus theme uploader created

This commit is contained in:
harrybomrah authored and saurabhbhatia committed 2013-07-30 16:43:32 +08:00
1 parent 6d89eab98a
commit f7dbbf1bca
238 files changed
+299 -545

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
<div>
<%= @dw.name %>
<h4>Upload Widget image </h4>
<div class="main2">
<%= form_for @dw, :url => desktop_widget_path(@dw) do |f| %>
<p>
<%= f.file_field :image %>
</p>
<%= submit_tag %>
<% end %>
</div>
</div>
+9
View File
@@ -0,0 +1,9 @@
<div>
<ul>
<% @desktopThemes.each do |dw| %>
<li> <%= dw.name %>
<%= link_to "Delete", desktop_theme_path(dw), :method=>"delete", :confirm=>"Are you sure?" %>
</li>
<% end %>
</ul>
</div>
+12
View File
@@ -0,0 +1,12 @@
<h4>Upload Theme Package </h4>
<div class="main2">
<%= form_tag '',:multipart => true,:action=>"post" do |f| %>
<p>
<%= file_field :desktop_theme,:package_file %>
</p>
<%= submit_tag %>
<% end %>
</div>