Orbit/app/views/admin/assets/_edit.html.erb

15 lines
571 B
Plaintext
Raw Permalink Normal View History

<%= flash_messages %>
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h3><%= t('editing.asset') %></h3>
</div>
<%= form_for @asset, :url => admin_asset_path(@asset), :remote => true do |f| %>
<div class="modal-body" id="modal_body">
<%= f.error_messages %>
<%= render :partial => "form", :locals => { :f => f } %>
</div>
<div class="modal-footer">
<a href="#" class="btn" data-dismiss="modal">Close</a>
<%= f.submit t('submit'), class: 'btn btn-primary' %>
</div>
<% end %>