From a3edebce6a051dc2f0743ae574623914edcdd816 Mon Sep 17 00:00:00 2001 From: Rueshyna Date: Sun, 18 Nov 2012 14:15:00 +0800 Subject: [PATCH] midify checkbox value --- app/views/desktop/journal_pages/_form.html.erb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/views/desktop/journal_pages/_form.html.erb b/app/views/desktop/journal_pages/_form.html.erb index 9eecab85..febb501d 100644 --- a/app/views/desktop/journal_pages/_form.html.erb +++ b/app/views/desktop/journal_pages/_form.html.erb @@ -62,9 +62,9 @@
  • <%= check_box_tag "writing_journal[journal_level_type_ids][]", level_type.id, - @writing_journal.journal_level_type_ids.include?(level_type.id) + @writing_journal.journal_level_type_ids.include?(level_type.id), + id: "field-#{i}" %><%= label_tag("field-#{i}", level_type.title) %> - <%= hidden_field_tag "field-#{i}", '' %>
  • <% end %> @@ -153,9 +153,8 @@ <%= label_tag("", "Full Text", class: "s_grid_2 s_grid") %>
  • - <%= f.file_field :file, size: "20", class: "s_grid_4 s_grid"%> + <%= f.file_field :writing_journal_files, size: "20", class: "s_grid_4 s_grid"%>
  • -
  • <%= f.text_area :note, size: "20x2", value: "Note", class: "s_grid_6 s_grid"%>