diff --git a/app/views/admin/sites/preference.html.erb b/app/views/admin/sites/preference.html.erb index a05c2f50e..0b65d171a 100644 --- a/app/views/admin/sites/preference.html.erb +++ b/app/views/admin/sites/preference.html.erb @@ -186,13 +186,17 @@ <% end %>
- <% if @site.default_image.file.present?%> + <%= f.file_field :default_image, :id => "input-upload", :class => 'fileupload-new', :onchange => "document.getElementById('fu').innerHTML = this.form.fu.value = this.value;" %>Change + + <%= f.check_box :remove_default_image %> + Remove Favicon <%else%> + <%= f.file_field :default_image, :id => "input-upload", :class => 'fileupload-new', :onchange => "document.getElementById('fu').innerHTML = this.form.fu.value = this.value;" %>Select Image + <%end%> - Cancel @@ -211,13 +215,18 @@ <% end %> - <% if @site.favicon.file.present?%> + <%= f.file_field :favicon, :id => "input-upload", :class => 'fileupload-new', :onchange => "document.getElementById('fu').innerHTML = this.form.fu.value = this.value;" %>Change - <%else%> - <%= f.file_field :favicon, :id => "input-upload", :class => 'fileupload-new', :onchange => "document.getElementById('fu').innerHTML = this.form.fu.value = this.value;" %>Select Image - <%end%> + <%= f.check_box :remove_favicon %> + Remove Favicon + <%else%> + + <%= f.file_field :favicon, :id => "input-upload", :class => 'fileupload-new', :onchange => "document.getElementById('fu').innerHTML = this.form.fu.value = this.value;" %>Select Image + + <%end%> + Cancel