Sha256: 995b4f30a894176a363cc9e2d3b7e8245465e2800d7b93b2769124541f7a85c5

Contents?: true

Size: 669 Bytes

Versions: 1

Compression:

Stored size: 669 Bytes

Contents

<div class="col-xs-10 col-xs-offset-1">
  <div class="form-group">
    <%= f.label :title, class: 'control-label' %>
    <%= f.text_field :title, class: "form-control input-lg" %>
  </div>
  <div class="form-group">
    <%= f.label :body %>
    <%= f.text_area :body, class: "form-control", rows: 20 %>
  </div>
  <%- if f.object.persisted? %>
    <ul>
      <%- f.object.assets.each do |asset| %>
        <li>![](<%= asset.attachment.url %>)</li>
      <% end %>
    </ul>
    <%= f.fields_for f.object.assets.build do |ff| %>
      <div class="form-group">
        <%= ff.file_field :attachment, class: "form-control" %>
      </div>
    <% end %>
  <% end %>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
miniblog-1.0.2 app/views/miniblog/admin/posts/_form.html.erb