Sha256: 9f6aca7cf5eabb4f9e063c38bfd4c8ffacebaa8c7043796ca8826897fca9737d
Contents?: true
Size: 1.41 KB
Versions: 2
Compression:
Stored size: 1.41 KB
Contents
<div 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) -%> <br /> </div> <div id="attachment_add_<%= attachment_num.succ %>"> <%= link_to_remote _('Add Another Attachment'), :url => { :action => "attachment_box_add", :id => attachment_num.succ }, :asynchronus => false -%> </div> <% if @article and @article.id %> <div 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 %> </div> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
typo-5.0.3.98.1 | app/views/admin/content/_attachment.html.erb |
typo-5.0.3.98 | app/views/admin/content/_attachment.html.erb |