fix announcement
This commit is contained in:
parent
7765f0d2e1
commit
e8d1352890
|
@ -1,11 +1,9 @@
|
|||
$('.bulletin_links_block a.delete').live('click', function(){
|
||||
//$(this).parents('.list_item').remove();
|
||||
$(this).parents('tr.list_item').remove();
|
||||
$(this).parents('.list_item').remove();
|
||||
});
|
||||
|
||||
$('.bulletin_files_block a.delete').live('click', function(){
|
||||
//$(this).parents('.list_item').remove();
|
||||
$(this).parents('tr.list_item').remove();
|
||||
$(this).parents('.list_item').remove();
|
||||
});
|
||||
|
||||
$('.action a.remove_existing_record').live('click', function(){
|
||||
|
|
|
@ -164,6 +164,9 @@
|
|||
</div>
|
||||
<h3 class="widget-title"><i class="icons-link icons-white"></i>Link</h3>
|
||||
<div class="widget-content">
|
||||
|
||||
<div id='bulletin_links' class="bulletin_links_block">
|
||||
|
||||
<table class="table table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -187,8 +190,6 @@
|
|||
</tfoot>
|
||||
<tbody>
|
||||
|
||||
<div id='bulletin_links' class="bulletin_links_block">
|
||||
|
||||
<% @bulletin.bulletin_links.each_with_index do |bulletin_link, i| %>
|
||||
<%#= fields_for "bulletin[bulletin_links][]", bulletin_link do |f| %>
|
||||
<%= f.fields_for :bulletin_links, bulletin_link do |f| %>
|
||||
|
@ -196,10 +197,12 @@
|
|||
<% end %>
|
||||
<% end %>
|
||||
|
||||
</div>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -212,6 +215,9 @@
|
|||
</div>
|
||||
<h3 class="widget-title"><i class="icons-paperclip icons-white"></i>File</h3>
|
||||
<div class="widget-content">
|
||||
|
||||
<div id='bulletin_files' class="bulletin_files_block">
|
||||
|
||||
<table class="table table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -233,8 +239,6 @@
|
|||
</tfoot>
|
||||
<tbody>
|
||||
|
||||
<div id='bulletin_files' class="bulletin_files_block">
|
||||
|
||||
<% @bulletin.bulletin_files.each_with_index do |bulletin_file, i| %>
|
||||
<%#= fields_for "bulletin[bulletin_files][]", bulletin_file do |f| %>
|
||||
<%= f.fields_for :bulletin_files, bulletin_file do |f| %>
|
||||
|
@ -242,10 +246,11 @@
|
|||
<% end %>
|
||||
<% end %>
|
||||
|
||||
</div>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1,7 +1,3 @@
|
|||
<% content_for :secondary do %>
|
||||
<%= render :partial => '/panel/announcement/back_end/announcement_secondary' %>
|
||||
<% end -%>
|
||||
|
||||
<%= flash_messages %>
|
||||
|
||||
<br />
|
||||
|
|
Loading…
Reference in New Issue