Update _form_file.html.erb
avoid the file to being deleted by js
This commit is contained in:
parent
02e4df8b1f
commit
2a51723b3f
|
@ -1,7 +1,7 @@
|
|||
<% if form_file.new_record? %>
|
||||
<div class="fileupload fileupload-new start-line" data-provides="fileupload">
|
||||
<% else %>
|
||||
<div class="fileupload fileupload-exist start-line" data-provides="fileupload">
|
||||
<div class="fileupload fileupload-exists start-line" data-provides="fileupload">
|
||||
<% if form_file.file.blank? %>
|
||||
<%= t(:no_file) %>
|
||||
<% else %>
|
||||
|
|
Loading…
Reference in New Issue