Fix no file in bulletin form
This commit is contained in:
parent
6cf249ccfb
commit
2265b0b404
|
@ -31,6 +31,7 @@ en:
|
|||
no_app: No module
|
||||
no_category: No Available Category
|
||||
no_date: No date
|
||||
no_file: No file
|
||||
previous: Previous
|
||||
remove: Remove
|
||||
remove_default: Remove default
|
||||
|
|
|
@ -2,7 +2,11 @@
|
|||
<div class="fileupload fileupload-new start-line" data-provides="fileupload">
|
||||
<% else %>
|
||||
<div class="fileupload-exist start-line">
|
||||
<% if form_file.file.blank? %>
|
||||
<%= t(:no_file) %>
|
||||
<% else %>
|
||||
<%= link_to form_file.file_identifier, form_file.file.url, {:class => 'file-link for_preview', :target => '_blank', :title => t(:view), "data-trigger" => :hover}.merge(file_picture_preview_setting(form_file.file.url)) %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<div class="input-prepend input-append">
|
||||
<% if form_file.new_record? %>
|
||||
|
|
Reference in New Issue