Commit 18b7b947 authored by Nivaldo Neto's avatar Nivaldo Neto

modify activity duration

parent e5913ec3
class ActivityGalleryPlugin::Activity
attr_accessor :id, :type, :title, :description, :caption, :motivation, :powerful_ideas, :products, :requirements, :published, :version_history, :copyright, :license_type, :space_organization, :implementation_steps, :implementation_tips, :inspirations, :references, :reflection_assessment, :remixed, :liked, :favorited, :implemented, :duration, :scopes, :audiences, :space_types, :authors, :specific_materials, :general_materials, :image, :images, :image_builder, :comments, :likes, :implementations, :total_implementations, :total_likes, :total_comments, :total_favorites, :total_remixes, :remixes, :created_at, :updated_at, :is_abac_author, :inserted_by, :external_authors, :external_link, :activity_type, :license
attr_accessor :id, :type, :title, :description, :caption, :motivation, :powerful_ideas, :products, :requirements, :published, :version_history, :copyright, :license_type, :space_organization, :implementation_steps, :implementation_tips, :inspirations, :references, :reflection_assessment, :remixed, :liked, :favorited, :implemented, :duration, :scopes, :audiences, :space_types, :authors, :specific_materials, :general_materials, :image, :images, :image_builder, :comments, :likes, :implementations, :total_implementations, :total_likes, :total_comments, :total_favorites, :total_remixes, :remixes, :created_at, :updated_at, :is_abac_author, :inserted_by, :external_authors, :external_link, :activity_type, :license, :class_duration, :class_quantity
attr_accessor :language
def initialize(data={attributes: {license: {}}})
......@@ -67,7 +67,8 @@ class ActivityGalleryPlugin::Activity
"inspirations_ids" => inspirations.try(:split, ',') || [],
"references" => references,
"reflection_assessment" => reflection_assessment,
"duration" => duration,
"class_quantity" => class_quantity,
"class_duration" => class_duration,
"scope_ids" => scopes || [],
"audience_ids" => audiences|| [],
"space_type_ids" => space_types|| [],
......
......@@ -8,6 +8,16 @@
margin: 10px;
}
.duration-fields{
display: flex;
}
.duration-input{
display: block;
width: 50%;
margin: 5px;
}
.btn-save-activity{
background: #25ac3d !important;
color: #FFF;
......
......@@ -61,7 +61,15 @@
<%= labelled_form_field(_('Materiais específicos'), text_area_tag('data[specific_materials]', @activity.specific_materials, placeholder: 'Você utiliza materiais criados especificamente para esta atividade? (ex.: templates, kits, fichas, apostilas etc) Liste-os, incluindo o link de acesso, e indicando a licença apropriada.')) %>
<%= labelled_form_field(_('Dicas sobre a implementação'), text_area_tag('data[implementation_tips]', @activity.implementation_tips, class: 'text-editor-summernote', placeholder: 'Que dica(s) valiosa(s) você tem para outros educadores que queiram implementar a atividade?')) %>
<%= labelled_form_field(_('Reflexão e avaliação'), text_area_tag('data[reflection_assessment]', @activity.reflection_assessment, class: 'text-editor-summernote', placeholder: 'Como você avalia a atividade? Especifique instrumentos e critérios de avaliação e métodos de reflexão e em qual etapa da atividade se encaixa.')) %>
<%= labelled_form_field(_('Duração'), text_area_tag('data[duration]', @activity.duration, placeholder: 'Em quanto tempo você realizou a atividade? Quanto tempo você recomendaria para o processo inteiro de implementação (desde a chegada do público até o encerramento)?')) %>
<label class="formlabel">Duração da Atividade - Essa atividade foi planejada para ser implementada em:</label>
<div class="duration-fields">
<div class="duration-input">
<%= labelled_form_field(_('Quantidade de aulas'), number_field_tag('data[class_quantity]', @activity.class_quantity, placeholder: '1 Aula')) %>
</div>
<div class="duration-input">
<%= labelled_form_field(_('Duração de cada aula'), number_field_tag('data[class_duration]', @activity.class_duration, placeholder: '50 Minutos')) %>
</div>
</div>
<div class="activity-subtitle">Inspiração</div>
<%= labelled_form_field(_('Atividades Inspiradoras: Indicação de atividades que foram inspiradoras para a criação desta atividade')+' ', token_input_field_tag('data[inspirations]', 'search-inspirations', {:controller => 'activity_gallery_plugin_activity', :action => 'search_inspirations'}, {:focus => false, :hint_text => _('Digite o nome da atividade'), :pre_populate => @activity.tokenized_inspirations})
......
......@@ -184,9 +184,9 @@
<%= @activity.reflection_assessment.html_safe %>
</p>
<div class="activity-subtitle">Duração</div>
<div class="activity-subtitle">Esta atividade tem uma duração de:</div>
<p class="activity-text">
<%= @activity.duration %>
<%= @activity.class_quantity %> Aula(s) e <%= @activity.class_quantity %> Minutos
</p>
<% if @activity.inspirations.present? %>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment