Sha256: 71f4d28ac4cba3f530164a424e24a2782a2e82cd1674c4e9a696f57ca3d95275
Contents?: true
Size: 1.4 KB
Versions: 14
Compression:
Stored size: 1.4 KB
Contents
<li id="attachment_<%= attachment_num -%>"<% if hidden %> style="display: none;"<% end %>> <%= file_field 'attachments', "filename_#{attachment_num}" -%> <%= link_to_function(_("Remove"), update_page do |page| page << "if (confirm(_('Really delete attachment') +' #{attachment_num}?')){" page.visual_effect(:toggle_appear, "attachment_#{attachment_num}", :afterFinish => "function(obj){Element.remove(obj.element);}") page << "}" end) -%> </li> <li id="attachment_add_<%= attachment_num.succ %>"> <%= link_to_remote _('Add Another Attachment'), :url => { :action => "attachment_box_add", :id => attachment_num.succ }, :asynchronus => false -%> </li> <% if @article and @article.id %> <li id="resources"> <% if @article.resources.count > 0 %> <h3><%= _("Currently this article has the following resources")%></h3> <% for resource in @article.resources %> <%= link_to_remote "- #{resource.filename}", :url => { :action => "resource_remove", :id => @article.id, :resource_id => resource.id}, :update => 'resources' %><br/> <% end %> <% end %> <h3><%= _("You can associate the following resources")%></h3> <% for resource in @resources - @article.resources %> <%= link_to_remote "+ #{resource.filename}", :url => { :action => "resource_add", :id => @article.id, :resource_id => resource.id}, :update => 'resources' %><br /> <% end %> </li> <% end %>
Version data entries
14 entries across 14 versions & 1 rubygems