Revert change in main-form and change class name of form_file

This commit is contained in:
chris 2013-07-22 17:24:58 +08:00
parent 5284571300
commit 92faeccdb6
2 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@
.main-forms fieldset .input-area .controls .exist .input-prepend,
.main-forms fieldset .input-area .controls .add-target .input-prepend {
margin-bottom: 10px;
display: block;
display: inline-block;
}
.main-forms fieldset .input-area .controls .exist .fileupload-new {
display: block;

View File

@ -1,7 +1,7 @@
<% if form_file.new_record? %>
<div class="fileupload fileupload-new start-line" data-provides="fileupload">
<% else %>
<div class="fileupload-new start-line">
<div class="fileupload-exist start-line">
<%= 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 %>
<div class="input-prepend input-append">