fix error

This commit is contained in:
邱博亞 2021-11-15 13:15:57 +08:00
parent 6e169b779d
commit c7610faff4
1 changed files with 2 additions and 2 deletions

View File

@ -46,13 +46,13 @@
<% @site_in_use_locales.each do |locale| %>
<li>
<label class="checkbox">
<%= check_box_tag "bulletin[bulletin_files_attributes][#{( form_qa_file.new_record? ? 'new_bulletin_files' : "#{i}" )}][choose_lang][]", locale, form_qa_file.choose_lang.include?(locale.to_s) %>
<%= check_box_tag "qa[qa_files_attributes][#{( form_qa_file.new_record? ? 'new_bulletin_files' : "#{i}" )}][choose_lang][]", locale, form_qa_file.choose_lang.include?(locale.to_s) %>
<%= t(locale.to_s) %>
</label>
</li>
<% end %>
</ul>
<%= hidden_field_tag "bulletin[bulletin_files_attributes][#{( form_qa_file.new_record? ? 'new_bulletin_files' : "#{i}" )}][choose_lang][]", '' %>
<%= hidden_field_tag "qa[qa_files_attributes][#{( form_qa_file.new_record? ? 'new_bulletin_files' : "#{i}" )}][choose_lang][]", '' %>
</span>
<% if form_qa_file.new_record? %>
<span class="delete_file add-on btn" title="<%= t(:delete_) %>">