Sha256: 3fdb9dc660304dda049eba5d8256f40efc64378751ba5e6579c714900858e40d

Contents?: true

Size: 453 Bytes

Versions: 7

Compression:

Stored size: 453 Bytes

Contents

<li class="content">
  <%= f.label :content %>
  <%= f.text_area :content, { rows: 5 }  %>
</li>

<%= f.fields_for :attachments do |attachment_form|  %>
  <li class="attachment">
    <%= attachment_form.file_field :attachment %>
    <%= attachment_form.link_to_remove 'Remove this attachment',
      { class: 'remove_attachment' } %>
  </li>
<% end %>

<li>
  <%= f.link_to_add 'Add an attachment', :attachments,
    { class: :add_attachment } %>
</li>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
thredded-0.0.12 app/views/thredded/posts/_form.html.erb
thredded-0.0.10 app/views/thredded/posts/_form.html.erb
thredded-0.0.9 app/views/thredded/posts/_form.html.erb
thredded-0.0.8 app/views/thredded/posts/_form.html.erb
thredded-0.0.7 app/views/thredded/posts/_form.html.erb
thredded-0.0.6 app/views/thredded/posts/_form.html.erb
thredded-0.0.5 app/views/thredded/posts/_form.html.erb