Skip to content
Snippets Groups Projects
Commit 9607609f authored by pabois's avatar pabois
Browse files

wip programs

parent 9af79aa6
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,16 @@
# fk_rails_... (university_id => universities.id)
#
class Education::Program < ApplicationRecord
has_rich_text :accessibility
has_rich_text :contacts
has_rich_text :duration
has_rich_text :evaluation
has_rich_text :objectives
has_rich_text :pedagogy
has_rich_text :prerequisites
has_rich_text :pricing
has_rich_text :registration
belongs_to :university
enum level: {
......
......@@ -10,22 +10,22 @@
</div>
<div class="col-md-8">
<h2 class="h4">Informations pratiques</h2>
<%= f.input :registration %>
<%= f.input :pricing %>
<%= f.input :duration %>
<%= f.input :contacts %>
<%= f.input :accessibility %>
<%= f.input :registration, as: :rich_text_area %>
<%= f.input :pricing, as: :rich_text_area %>
<%= f.input :duration, as: :rich_text_area %>
<%= f.input :contacts, as: :rich_text_area %>
<%= f.input :accessibility, as: :rich_text_area %>
</div>
<div class="col-md-12">
<h2 class="mt-5 h4">Informations pédagogiques</h2>
</div>
<div class="col-md-6">
<%= f.input :prerequisites, input_html: { rows: 5 } %>
<%= f.input :objectives, input_html: { rows: 5 } %>
<%= f.input :prerequisites, as: :rich_text_area %>
<%= f.input :objectives, as: :rich_text_area %>
</div>
<div class="col-md-6">
<%= f.input :pedagogy, input_html: { rows: 5 } %>
<%= f.input :evaluation, input_html: { rows: 5 } %>
<%= f.input :pedagogy, as: :rich_text_area %>
<%= f.input :evaluation, as: :rich_text_area %>
</div>
</div>
<% content_for :action_bar_right do %>
......
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