Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
Admin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
osuny
Admin
Commits
9607609f
Commit
9607609f
authored
3 years ago
by
pabois
Browse files
Options
Downloads
Patches
Plain Diff
wip programs
parent
9af79aa6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/models/education/program.rb
+10
-0
10 additions, 0 deletions
app/models/education/program.rb
app/views/admin/education/programs/_form.html.erb
+9
-9
9 additions, 9 deletions
app/views/admin/education/programs/_form.html.erb
with
19 additions
and
9 deletions
app/models/education/program.rb
+
10
−
0
View file @
9607609f
...
...
@@ -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:
{
...
...
This diff is collapsed.
Click to expand it.
app/views/admin/education/programs/_form.html.erb
+
9
−
9
View file @
9607609f
...
...
@@ -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
%>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment