announcement edit to view file
This commit is contained in:
parent
3280ff8311
commit
b76918d9d0
|
@ -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>
|
||||||
|
|
Reference in New Issue