Sha256: 169a2754905f40e189eb88795b204bedd9eb01313968f97d56efc3b47052683f

Contents?: true

Size: 722 Bytes

Versions: 9

Compression:

Stored size: 722 Bytes

Contents

<% str = update_element_function('attachments', :position => :bottom) do -%>
  <div id="attachment_<%= attachment_num -%>">
    <%= file_field 'attachments', "filename_#{attachment_num}" -%>
    <%= link_to_remote 'Remove',
	:url => { :action => "attachment_box_remove", :id => attachment_num },
	:update => "attachment_#{attachment_num}",
	:confirm => "Really delete attachment #{attachment_num}?" -%>
    <br />
  </div>
  <div id="attachment_<%= attachment_num.succ -%>">
    <%= link_to_remote 'Add Another Attachment',
	:url => { :action => "attachment_box_add", :id => attachment_num.succ },
	:update => "attachment_#{attachment_num.succ}",
	:asynchronus => false -%>
  </div>
<% end -%>
<%= javascript_tag(str) -%>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
typo-3.99.0 app/views/admin/content/_attachment.rhtml
typo-3.99.2 app/views/admin/content/_attachment.rhtml
typo-3.99.3 app/views/admin/content/_attachment.rhtml
typo-3.99.1 app/views/admin/content/_attachment.rhtml
typo-4.0.0 app/views/admin/content/_attachment.rhtml
typo-4.0.1 app/views/admin/content/_attachment.rhtml
typo-3.99.4 app/views/admin/content/_attachment.rhtml
typo-4.0.2 app/views/admin/content/_attachment.rhtml
typo-4.0.3 app/views/admin/content/_attachment.rhtml