From 865be29b3796a173ca8102f8858352978cd09db1 Mon Sep 17 00:00:00 2001 From: saurabhbhatia Date: Mon, 9 Sep 2013 11:27:18 +0800 Subject: [PATCH] Updated Preference Page --- app/views/admin/sites/preference.html.erb | 26 +++-------------------- 1 file changed, 3 insertions(+), 23 deletions(-) diff --git a/app/views/admin/sites/preference.html.erb b/app/views/admin/sites/preference.html.erb index d016e0a2..4115e2ec 100644 --- a/app/views/admin/sites/preference.html.erb +++ b/app/views/admin/sites/preference.html.erb @@ -182,9 +182,10 @@
- <%= f.file_field :default_image, :id => "input-upload", :class => 'fileupload-new', :onchange => "document.getElementById('fu').innerHTML = this.form.fu.value = this.value;" %>Select Image - <% if @site.default_image.file.present?%> + <% 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 + <%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 @@ -201,27 +202,6 @@ -
- -
- -
-
-
- -
-
    -
  • - - <%= image_tag "orbitbar-theme_A.png", :alt =>""%> -
  • -
  • - - <%= image_tag "orbitbar-theme_B.png", :alt =>""%> -
  • -
-
-