Sha256: 6c302ed6dbcc72ab22e8844e364bc3a734e500b8f78bbb323d0465d0467d0ff4

Contents?: true

Size: 739 Bytes

Versions: 2

Compression:

Stored size: 739 Bytes

Contents

<%= form_for [:admin, @document], :html => { :multipart => true } do |f| %>
  <%= render "shared/error_messages", :target => @document %>
  <div>
    <%= f.label :title, t('documents.title'), :class => "desc required" %>
    <%= f.text_field :title, :size => "80" %>
  </div>
  <div>
    <%= f.label :doc, t('documents.doc_field') %>
    <%= f.file_field :doc %>
  </div>
  <div>
    <%= f.submit t('documents.submit') %>
    <%= link_to t('cancel'), admin_documents_path %>
  </div>
<% end %>

<% if @document.id %>
  <%= form_for [:admin, @document], :html => { :method => "delete" } do |f| %>
    <input type="hidden" name="_method" value="delete" />
    <button type="submit"><%= t('documents.delete') %></button>
  <% end %>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
merrycms-0.1.7 app/views/admin/documents/_form.erb
merrycms-0.1.4 app/views/admin/documents/_form.erb