some bugs
This commit is contained in:
parent
db3797694b
commit
398432d0fc
|
@ -138,7 +138,8 @@
|
|||
|
||||
<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"%>
|
||||
</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">
|
||||
<%= f.text_field :keyword, size: "20", value: "Keywords", class: "s_grid_6 s_grid"%>
|
||||
|
@ -151,8 +152,6 @@
|
|||
|
||||
<li class="s_grid_row">
|
||||
<%= 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"%>
|
||||
</li>
|
||||
<li class="s_grid_row">
|
||||
|
|
|
@ -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} %>
|
||||
<%end%>
|
||||
|
|
|
@ -85,6 +85,9 @@ class WritingJournal
|
|||
title.join(', ')
|
||||
end
|
||||
|
||||
def new_writing_journal_files=(var)
|
||||
self.writing_journal_files.new(:file=>var[0])
|
||||
end
|
||||
protected
|
||||
|
||||
def add_http
|
||||
|
|
Reference in New Issue