announcement edit to view file

This commit is contained in:
unknown 2012-04-24 15:18:29 +08:00
parent 3280ff8311
commit b76918d9d0
1 changed files with 2 additions and 0 deletions

View File

@ -1,9 +1,11 @@
<% # encoding: utf-8 %>
<tr id="<%= "bulletin_file_#{form_bulletin_file.id}" if !form_bulletin_file.new_record? %>" class='list_item'> <tr id="<%= "bulletin_file_#{form_bulletin_file.id}" if !form_bulletin_file.new_record? %>" class='list_item'>
<td> <td>
<div class="control-group"> <div class="control-group">
<div class="controls"> <div class="controls">
<%= f.file_field :file %> <%= f.file_field :file %>
<%= form_bulletin_file.file.file ? ( link_to 'View', form_bulletin_file.file.url, {:target => '_blank', :title => 'View'} ) : '' %>
</div> </div>
</div> </div>
</td> </td>