From 254a81fa5d4b089f56ce1ecaad9bcea4ae96fd39 Mon Sep 17 00:00:00 2001 From: Rueshyna Date: Wed, 28 Nov 2012 18:12:21 +0800 Subject: [PATCH] add templete --- .../desktop/journal_pages/_form.html.erb | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/app/views/desktop/journal_pages/_form.html.erb b/app/views/desktop/journal_pages/_form.html.erb index af7b97bf..e72db279 100644 --- a/app/views/desktop/journal_pages/_form.html.erb +++ b/app/views/desktop/journal_pages/_form.html.erb @@ -191,7 +191,35 @@ <%= wjf.file_field :file %> <% end %> --> + + + + + + + + + + + + + + + <% @writing_journal.writing_journal_files.each_with_index do |writing_journal_file, i| %> + <%= f.fields_for :writing_journal_files, writing_journal_file do |f| %> + <%= render :partial => 'form_file', :object => writing_journal_file, :locals => {:f => f, :i => i} %> + <% end %> + <% end %> + +
FileFile Name
+
+ <%= hidden_field_tag 'plugin_file_field_count', @writing_journal.writing_journal_files.count %> + add +
+
+ +
  • <%= f.text_area :note, size: "20x2", plcaeholder: "Note", class: "s_grid_6 s_grid"%>
  • @@ -213,5 +241,22 @@ +<%= javascript_include_tag "archive_plugin_form" %> +