Sha256: 5637cdd96af638e4f207ea230eb19c2f5230475c58844ec8e1048f1abe813501

Contents?: true

Size: 605 Bytes

Versions: 2

Compression:

Stored size: 605 Bytes

Contents

<% if @draft_conf.draft? && @object.is_draft? %>
  <div class="alert alert-dark">
    <b><%= I18n.t('admin.form.draft_header') %></b>
    <% if @object.draft_source_id.present? %>
      <%= I18n.t('admin.form.of' )%> <%= link_to "#{@object.class.name} ID:1", edit_path(@abstract_model, @object.draft_source_id) %>
    <% end %>
  </div>
<% end %>

<%= rails_admin_form_for @object, url: edit_path(@abstract_model, @object.id), as: @abstract_model.param_key, html: { method: "put", multipart: true, class: "main", data: { title: @page_name } } do |form| %>
  <%= form.generate action: :update %>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails_admin_draft-0.1.3 app/views/rails_admin/main/edit.html.erb
rails_admin_draft-0.1.2 app/views/rails_admin/main/edit.html.erb