Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
yotta
/
pictogram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
60
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
94ece519
authored
Aug 14, 2017
by
Arturo Montejo Ráez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
notification email on student unlinking
parent
a8f75113
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
3 deletions
sails/src/api/controllers/StudentController.js
sails/src/api/models/License.js
sails/src/config/locales/en-gb.json
sails/src/config/locales/es-es.json
sails/src/api/controllers/StudentController.js
View file @
94ece519
...
...
@@ -497,7 +497,7 @@ module.exports = {
{
name
:
student
.
name
,
surname
:
student
.
surname
,
license
:
student
.
license
.
number
license
:
License
.
hyphenize
(
student
.
license
.
number
)
});
console
.
log
(
"-->"
+
message
);
mailService
.
mailer
()
...
...
sails/src/api/models/License.js
View file @
94ece519
...
...
@@ -76,6 +76,17 @@ module.exports = {
},
/**
* Formats license number with hyphens
*/
hyphenize
:
function
(
number
)
{
return
number
[
0
]
+
number
[
1
]
+
number
[
2
]
+
number
[
3
]
+
"-"
+
number
[
4
]
+
number
[
5
]
+
number
[
6
]
+
number
[
7
]
+
"-"
+
number
[
8
]
+
number
[
9
]
+
number
[
10
]
+
number
[
11
]
+
"-"
+
number
[
12
]
+
number
[
13
]
+
number
[
14
]
+
number
[
15
];
},
/**
* Generates a new trial license
* @param {ID} id_sup ID of the supervisor who creates the license
* @param {function} callback Callback function: (err, license)
...
...
sails/src/config/locales/en-gb.json
View file @
94ece519
...
...
@@ -7,7 +7,7 @@
"no_surname"
:
"No surname"
,
"office_link"
:
"The office/center
\"
{{ name }}
\"
with email
\"
{{ email }}
\"
has added you as part of its team in Pictogram."
,
"signin_mail"
:
"To activate your Pictogram account, click on this link:
\n
"
,
"student_unlinked"
:
"You have lost the link to the student
{{ name }} {{ surname }}, with license number {{ license }}
."
,
"student_unlinked"
:
"You have lost the link to the student
\"
{{ name }} {{ surname }}
\"
, with license number
\"
{{ license }}
\"
."
,
"therapist_office_request"
:
"{{ name }}, with email {{ email }}, is requesting to be linked as therapist to any of your students."
,
"tutor_office_request"
:
"{{ name }}, with email {{ email }}, is requesting to be linked as tutor/father/mother to any of your students."
,
"Welcome"
:
"Welcome"
,
...
...
sails/src/config/locales/es-es.json
View file @
94ece519
...
...
@@ -7,7 +7,7 @@
"no_surname"
:
"Sin apellidos"
,
"office_link"
:
"El centro/gabinete
\"
{{ name }}
\"
, con correo electrónico
\"
{{ email }}
\"
le ha añadido como parte de su equipo."
,
"signin_mail"
:
"Para activar su cuenta en Pictogram, haga click en el siguiente enlace:
\n
"
,
"student_unlinked"
:
"Se ha desvinculado de
{{ name }} {{ surname }}, con número de licencia {{ license }}
."
,
"student_unlinked"
:
"Se ha desvinculado de
la cuenta de estudiante
\"
{{ name }} {{ surname }}
\"
, con número de licencia
\"
{{ license }}
\"
."
,
"therapist_office_request"
:
"El/la terapeuta {{ name }}, con correo electrónico {{ email }}, pide ser asociado a algún estudiante."
,
"tutor_office_request"
:
"El/la tutor/a/padre/madre {{ name }}, con correo electrónico {{ email }}, pide ser asociado a algún estudiante."
,
"Welcome"
:
"Bienvenido"
,
...
...
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