<%= model.class.human_attribute_name(:contents) %> * <% if f.object.errors[:contents].any? %>
<%= f.object.errors[:contents].first %>
<% end %> <% if action_name != 'show' %> Copiar de <%= Translator.t('navigation.teaching_plans_menu').downcase %> <% end %>
<% if action_name != 'show' %>
<% translation = Translator.t("activerecord.attributes.#{model.class.to_s.underscore}.contents") %> <%= f.input :contents_tags, as: :string, label: "Adicionar #{translation}", input_html: { 'data-content-type': 'conteúdo', class: 'select2-tags', value: '' } %>
<% end %>
<% unless f.object.decorator.removed_objectives? %>
<%= model.class.human_attribute_name(:objectives) %> <% if f.object.errors[:objectives].any? %>
<%= f.object.errors[:objectives].first %>
<% end %> <% if action_name != 'show' %> Copiar de <%= Translator.t('navigation.teaching_plans_menu').downcase %> | Copiar objetivos/habilidades por área <% if @allows_copy_experience_fields_in_lesson_plans %> | Copiar objetivos por campos de experiência <% end %> <% end %>
<% if action_name != 'show' %>
<% translation = Translator.t("activerecord.attributes.#{model.class.to_s.underscore}.objectives") %> <%= f.input :objectives_tags, as: :string, label: "Adicionar #{translation}", input_html: { class: 'select2-content-tags-ajax', value: '', data: { url: contents_path, data: [] } } %>
<% end %>
<% end %>
<% key_prefix = @discipline_lesson_plan.present? ? 'discipline' : 'knowledge_area' %> <% @methodology_translation = Translation.find_by(key: "navigation.actives_methodology_by_#{key_prefix}", group: 'lesson_plans')&.translation %> <% @resources_translation = Translation.find_by(key: "navigation.resources_by_#{key_prefix}", group: 'lesson_plans')&.translation %> <% @evaluation_translation = Translation.find_by(key: "navigation.avaliation_by_#{key_prefix}", group: 'lesson_plans')&.translation %> <% @references_translation = Translation.find_by(key: "navigation.references_by_#{key_prefix}", group: 'lesson_plans')&.translation %> <% @curriculum_adaptation = Translation.find_by(key: "navigation.curriculum_adaptation_by_#{key_prefix}", group: 'lesson_plans')&.translation %>
<%= 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') }} %>
Anexos
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 %> <% if action_name != 'show' %> <% end %> <% if action_name == 'show' && f.object.lesson_plan_attachments.blank? %> <% 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'%> <% end %>
Anexo
Nenhum documento anexado
<%= 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" %>