some bugs

This commit is contained in:
Rueshyna 2012-11-19 16:28:05 +08:00
parent db3797694b
commit 398432d0fc
3 changed files with 6 additions and 4 deletions

View File

@ -138,7 +138,8 @@
<li class="s_grid_row"> <li class="s_grid_row">
<%= label_tag("", "Date of Publication", class: "s_grid_2 s_grid") %><%= f.text_field :publication_date, size: "20", value: "2012 / 05 / 01", class: "s_grid_4 s_grid"%> <%= label_tag("", "Date of Publication", class: "s_grid_2 s_grid") %><%= f.text_field :publication_date, size: "20", value: "2012 / 05 / 01", class: "s_grid_4 s_grid"%>
</li> <!--<%= f.date_select :publication_date, {:use_month_numbers => true, :start_year => Time.now.year, :end_year => 1930, :order => [:year, :month, :day] }, {:class => 's_grid_4 s_grid'} %>
</li>-->
<li class="s_grid_row"> <li class="s_grid_row">
<%= f.text_field :keyword, size: "20", value: "Keywords", class: "s_grid_6 s_grid"%> <%= f.text_field :keyword, size: "20", value: "Keywords", class: "s_grid_6 s_grid"%>
@ -151,8 +152,6 @@
<li class="s_grid_row"> <li class="s_grid_row">
<%= label_tag("", "Full Text", class: "s_grid_2 s_grid") %> <%= label_tag("", "Full Text", class: "s_grid_2 s_grid") %>
</li>
<li class="s_grid_row">
<%= f.file_field :writing_journal_files, size: "20", class: "s_grid_4 s_grid"%> <%= f.file_field :writing_journal_files, size: "20", class: "s_grid_4 s_grid"%>
</li> </li>
<li class="s_grid_row"> <li class="s_grid_row">

View File

@ -1,3 +1,3 @@
<%= form_for @writing_journal, html: { multipart: true } , url: desktop_journal_pages_path do |f| %> <%= form_for @writing_journal, html: { multipart: true ,:type=>"ajax_form"} , url: desktop_journal_pages_path do |f| %>
<%= render partial: 'desktop/journal_pages/form', locals: {:f => f} %> <%= render partial: 'desktop/journal_pages/form', locals: {:f => f} %>
<%end%> <%end%>

View File

@ -85,6 +85,9 @@ class WritingJournal
title.join(', ') title.join(', ')
end end
def new_writing_journal_files=(var)
self.writing_journal_files.new(:file=>var[0])
end
protected protected
def add_http def add_http