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
12c6ea8d
Commit
12c6ea8d
authored
3 years ago
by
Arnaud Levy
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of github.com:noesya/osuny
parents
65af49cc
3e606961
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/views/admin/education/programs/_form.html.erb
+9
-8
9 additions, 8 deletions
app/views/admin/education/programs/_form.html.erb
app/views/admin/education/programs/jekyll.html.erb
+7
-0
7 additions, 0 deletions
app/views/admin/education/programs/jekyll.html.erb
with
16 additions
and
8 deletions
app/views/admin/education/programs/_form.html.erb
+
9
−
8
View file @
12c6ea8d
...
...
@@ -62,8 +62,17 @@
<div
class=
"card-header"
>
<h5
class=
"card-title mb-0"
>
<%=
t
(
'activerecord.attributes.education/program.team'
)
%>
</h5>
</div>
<div
class=
"card-body"
>
<%=
f
.
input
:contacts
,
as: :rich_text_area
%>
</div>
<div
class=
"card-body"
>
<%=
f
.
association
:teachers
,
as: :check_boxes
,
collection:
current_university
.
administration_members
.
teachers
.
ordered
%>
</div>
<div
class=
"card-body"
>
<div
id=
"js-program-members"
>
<p>
Membres
</p>
<%=
f
.
fields_for
:members
,
program
.
members
,
wrapper:
false
do
|
member_form
|
%>
<div
class=
"row js-program-member fields"
>
<div
class=
"col-md-4"
>
...
...
@@ -88,14 +97,6 @@
</div>
<p>
<%=
f
.
link_to_add
"Ajouter un membre"
,
:members
,
class:
'btn btn-xs btn-primary'
,
data:
{
target:
"#js-program-members"
}
%>
</p>
</div>
<div
class=
"card-body"
>
<%=
f
.
association
:teachers
,
as: :check_boxes
,
collection:
current_university
.
administration_members
.
teachers
.
ordered
%>
</div>
<div
class=
"card-body"
>
<%=
f
.
input
:contacts
,
as: :rich_text_area
%>
</div>
</div>
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
app/views/admin/education/programs/jekyll.html.erb
+
7
−
0
View file @
12c6ea8d
...
...
@@ -17,6 +17,13 @@ teachers:
- "
<%=
teacher
.
id
%>
"
<%
end
%>
<%
end
%>
<%
if
@program
.
members
.
any?
%>
members:
<%
@program
.
members
.
each
do
|
member
|
%>
- member: "
<%=
member
.
member_id
%>
"
role: "
<%=
member
.
role
%>
"
<%
end
%>
<%
end
%>
accessibility: >
<%=
prepare_for_github
@program
.
best_accessibility
,
@program
.
university
%>
contacts: >
...
...
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