Skip to content
Snippets Groups Projects
Commit ecb06c8e authored by sebousan's avatar sebousan
Browse files

add presentation

parent 1299ea1f
No related branches found
No related tags found
No related merge requests found
......@@ -84,7 +84,7 @@ class Admin::Education::ProgramsController < Admin::Education::ApplicationContro
params.require(:education_program).permit(
:name, :slug, :level, :capacity, :ects, :continuing, :description, :published,
:featured_image, :featured_image_delete, :featured_image_infos, :featured_image_alt,
:prerequisites, :objectives, :duration, :registration, :pedagogy, :content,
:prerequisites, :objectives, :duration, :presentation, :registration, :pedagogy, :content,
:evaluation, :accessibility, :pricing, :contacts, :opportunities, :results, :other,
:parent_id, school_ids: [],
university_person_involvements_attributes: [:id, :person_id, :description, :position, :_destroy]
......
......@@ -22,6 +22,7 @@
# pedagogy :text
# position :integer default(0)
# prerequisites :text
# presentation :text
# pricing :text
# published :boolean default(FALSE)
# registration :text
......@@ -64,6 +65,7 @@ class Education::Program < ApplicationRecord
:other,
:pedagogy,
:prerequisites,
:presentation,
:pricing,
:registration,
:content,
......
......@@ -50,6 +50,7 @@
</div>
<div class="card-body">
<%= f.input :description %>
<%= render 'admin/education/programs/forms/input_with_inheritance', f: f, property: :presentation %>
<%= render 'admin/education/programs/forms/input_with_inheritance', f: f, property: :registration %>
<%= render 'admin/education/programs/forms/input_with_inheritance', f: f, property: :pricing %>
<%= render 'admin/education/programs/forms/input_with_inheritance', f: f, property: :duration %>
......
......@@ -47,6 +47,7 @@
<div class="card-body">
<%= render 'admin/application/property/text', object: @program, property: :description %>
<% [
:presentation,
:registration,
:pricing,
:duration,
......@@ -106,6 +107,7 @@
<% content_for :preview do %>
<% [
:presentation,
:registration,
:pricing,
:duration,
......
......@@ -56,6 +56,7 @@ ects: <%= @about.ects %>
:opportunities,
:other,
:prerequisites,
:presentation,
:pricing,
:registration,
:results,
......
......@@ -35,6 +35,7 @@ en:
other: Other
pedagogy: Méthodes mobilisées
prerequisites: Prérequis
presentation: Presentation
pricing: Tarifs
published: Published?
registration: Modalités et délais d’accès
......
......@@ -35,6 +35,7 @@ fr:
other: Autre
pedagogy: Méthodes mobilisées
prerequisites: Prérequis
presentation: Présentation
pricing: Tarifs
published: Publiée ?
registration: Modalités et délais d’accès
......
class AddPresentationToEducationProgram < ActiveRecord::Migration[6.1]
def change
add_column :education_programs, :presentation, :text
end
end
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment