Sha256: d4760563e3b6d11dadad30d973898923bd86d87e626906a9e38a52bd072e12de

Contents?: true

Size: 710 Bytes

Versions: 5

Compression:

Stored size: 710 Bytes

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>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
typo-4.1.1 app/views/admin/content/_attachment.rhtml
typo-4.1 app/views/admin/content/_attachment.rhtml
typo-5.0.1 app/views/admin/content/_attachment.html.erb
typo-5.0.2 app/views/admin/content/_attachment.html.erb
typo-5.0 app/views/admin/content/_attachment.html.erb