<%= t('cancerpredict.sort_num')+': ' %> <%= f.text_field 'sort_number',{:class=>'sort_num',:value=>((image_form['sort_number'] == nil) ? i+1 : image_form['sort_number'] ),:style=>'float: left;width: 3em;'} %> <%= t('cancerpredict.logo')+': ' %>
<% if image_form.temp_file.file.present? %> <%= image_tag( image_form.temp_file, :size=>"120x120") rescue ''%> <% else %> <%= image_tag "/assets/site-logo.png", :class => "pull-left upload-picture"%> <% end %>
<% if image_form.temp_file.file.present?%> <%= f.file_field :temp_file, {:id => "input-upload", :class => 'fileupload-new', :accept=> 'image/png,image/gif,image/jpeg'} %><%= t('preferences.change') %> <%= f.check_box :remove_image,{:checked=>false} %> <%= t(:remove) %> <%= (I18n.locale.to_s == 'en') ? ' this logo' : '芲logo' %> <%else%> <%= f.file_field :temp_file,{ :id => "input-upload", :class => 'fileupload-new', :accept=> 'image/png,image/gif,image/jpeg'} %><%= t('preferences.select_image') %> <%end%> <%= t(:cancel) %>