<%= f.input :activities, label: @methodology_translation, input_html: { class: 'col col-sm-12 summernote-field', data: { disabled: action_name.eql?('show') }} %>
<%= f.input :resources, label: @resources_translation, input_html: { class: 'col col-sm-12 summernote-field', data: { disabled: action_name.eql?('show') }} %>
<%= f.input :evaluation, label: @evaluation_translation, input_html: { class: 'col col-sm-12 summernote-field', data: { disabled: action_name.eql?('show') }} %>
<%= f.input :bibliography, label: @references_translation, input_html: { class: 'col col-sm-12 summernote-field', data: { disabled: action_name.eql?('show') }} %>
<%= f.input :curriculum_adaptation, label: @curriculum_adaptation, input_html: { class: 'col col-sm-12 summernote-field', data: { disabled: action_name.eql?('show') }} %>
Somente arquivos nos formatos jpeg, jpg, png, gif, pdf, odt, doc, docx, ods, xls, xlsx, odp, ppt, pptx, odg, xml, csv. Tamanho máximo por arquivo: 3MB
<% if f.object.errors[:lesson_plan_attachments].present? %>
<%= f.object.errors[:lesson_plan_attachments].join "
" %>
<% end %>
| Anexo |
<% if action_name != 'show' %>
|
<% end %>
<% if action_name == 'show' && f.object.lesson_plan_attachments.blank? %>
| Nenhum documento anexado |
<% else %>
<%= f.simple_fields_for :lesson_plan_attachments, f.object.lesson_plan_attachments do |attachment| %>
<% if attachment.object.persisted? %>
<%= render 'lesson_plan_attachment_show', f: attachment %>
<% else %>
<%= render 'lesson_plan_attachment_fields', f: attachment %>
<% end %>
<% end %>
<% end %>
<% if action_name != 'show'%>
|
<%= link_to_add_association t('.add_attachment'), f, :lesson_plan_attachments,
class: 'btn btn-success btn-sm',
:"data-association-insertion-method" => "append",
:"data-association-insertion-node" => "#lesson-plan-attachments" %>
|
<% end %>