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
56628339
authored
Aug 28, 2016
by
Arturo Montejo Ráez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
working on issue #527
parent
155a26ab
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
0 deletions
sails/src/assets/app/i18n/en-gb.json
sails/src/assets/app/i18n/es-es.json
sails/src/assets/scripts/modules/student/controllers/instructions.js
sails/src/assets/app/i18n/en-gb.json
View file @
56628339
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
"birthdate"
:
"Birthdate"
,
"birthdate"
:
"Birthdate"
,
"cancel"
:
"Cancel"
,
"cancel"
:
"Cancel"
,
"cannot_delete_method"
:
"Method could not be deleted, maybe due to existing recorded sessions."
,
"cannot_delete_method"
:
"Method could not be deleted, maybe due to existing recorded sessions."
,
"cannot_delete_instruction"
:
"Instruction could not be deleted, maybe due to existing recorded sessions."
,
"categories"
:
"Categories"
,
"categories"
:
"Categories"
,
"category_pictograms"
:
"Category's pictograms"
,
"category_pictograms"
:
"Category's pictograms"
,
"change_password"
:
"Change password"
,
"change_password"
:
"Change password"
,
...
...
sails/src/assets/app/i18n/es-es.json
View file @
56628339
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
"birthdate"
:
"Fecha de nacimiento"
,
"birthdate"
:
"Fecha de nacimiento"
,
"cancel"
:
"Cancelar"
,
"cancel"
:
"Cancelar"
,
"cannot_delete_method"
:
"No se pudo eliminar el método, tal vez porque existen sesiones asociadas."
,
"cannot_delete_method"
:
"No se pudo eliminar el método, tal vez porque existen sesiones asociadas."
,
"cannot_delete_instruction"
:
"No se pudo eliminar la instrucción, tal vez porque existen sesiones asociadas."
,
"categories"
:
"Categorías"
,
"categories"
:
"Categorías"
,
"category_pictograms"
:
"Pictogramas de la categoría"
,
"category_pictograms"
:
"Pictogramas de la categoría"
,
"change_password"
:
"Cambiar contraseña"
,
"change_password"
:
"Cambiar contraseña"
,
...
...
sails/src/assets/scripts/modules/student/controllers/instructions.js
View file @
56628339
...
@@ -291,6 +291,13 @@ dashboardControllers.controller('StudentInstructionsCtrl', function StudentInstr
...
@@ -291,6 +291,13 @@ dashboardControllers.controller('StudentInstructionsCtrl', function StudentInstr
})
})
.
error
(
function
(
data
,
status
,
headers
,
config
)
{
.
error
(
function
(
data
,
status
,
headers
,
config
)
{
console
.
log
(
"Error from API: "
+
data
.
error
);
console
.
log
(
"Error from API: "
+
data
.
error
);
var
myToastMsg
=
$translate
(
'cannot_delete_instruction'
).
then
(
function
(
translation
)
{
// Show message
ngToast
.
warning
({
content
:
translation
,
timeout
:
6000
// By default 4000
});
});
});
});
};
};
...
...
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