Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
U
uspn-sport-server
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uspn-sport
uspn-sport-server
Commits
8a613590
Commit
8a613590
authored
Nov 02, 2020
by
Thomas THIMOTHEE
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add info to csv
parent
2c82552c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
4 deletions
+25
-4
app/admin/students.rb
app/admin/students.rb
+19
-4
config/locales/fr.yml
config/locales/fr.yml
+6
-0
No files found.
app/admin/students.rb
View file @
8a613590
...
...
@@ -7,7 +7,7 @@ ActiveAdmin.register Student do
controller
do
def
scoped_collection
super
.
includes
(
:program
)
super
.
includes
(
:program
,
courses: :sport
)
end
end
...
...
@@ -82,8 +82,23 @@ ActiveAdmin.register Student do
xls
(
i18n_scope:
[
:activerecord
,
:attributes
,
:student
],
header_format:
{
weight: :bold
,
color: :blue
})
do
delete_columns
:encrypted_password
,
:reset_password_token
,
:reset_password_sent_at
,
:remember_created_at
,
:code
,
:created_at
,
:updated_at
,
:current_sign_in_at
,
:current_sign_in_ip
,
:last_sign_in_at
,
:last_sign_in_ip
,
:confirmed_at
,
:confirmation_token
,
:confirmation_sent_at
,
:unconfirmed_email
:reset_password_sent_at
,
:remember_created_at
,
:code
,
:created_at
,
:updated_at
,
:current_sign_in_at
,
:current_sign_in_ip
,
:last_sign_in_at
,
:last_sign_in_ip
,
:confirmed_at
,
:confirmation_token
,
:confirmation_sent_at
,
:unconfirmed_email
column
:program
do
|
student
|
student
.
program
.
name
end
column
(
'sport_1'
)
do
|
student
|
student
.
courses
.
first
&
.
sport
&
.
name
end
column
(
'creneau_1'
)
do
|
student
|
student
.
courses
.
first
&
.
day_and_time
end
column
(
'sport_2'
)
do
|
student
|
student
.
courses
.
second
&
.
sport
&
.
name
end
column
(
'creneau_2'
)
do
|
student
|
student
.
courses
.
second
&
.
day_and_time
end
end
end
config/locales/fr.yml
View file @
8a613590
...
...
@@ -10,6 +10,7 @@ fr:
subscriptions_limit
:
Nombre d'inscriptions max par élève
course
:
Cours de sport
teacher
:
Enseignant
phone_number
:
Téléphone
campus
:
Campus
sport
:
Sport
student
:
Étudiant
...
...
@@ -69,6 +70,11 @@ fr:
female
:
Femme
firstname
:
Prénom
lastname
:
Nom
phone_number
:
Téléphone
creneau_1
:
Créneau
1
creneau_2
:
Créneau
2
sport_1
:
Sport
1
sport_2
:
Sport
2
number_of_courses
:
Nb cours
program
:
Formation
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment