issues #523 #525 #529 #594 fixed

parent fb291c3f
......@@ -308,8 +308,7 @@ CREATE TABLE IF NOT EXISTS `stu_picto` (
`attributes` varchar(1000) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'JSON object describing the properties of the picto',
PRIMARY KEY (`id`),
KEY `fk_picto` (`id_pic`),
KEY `id_stu` (`id_stu`),
UNIQUE `uq_stupicto` (`id_stu`,`id_pic`)
KEY `id_stu` (`id_stu`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1
COMMENT="This table relates a student with the pictos in her vocabulary";
......
......@@ -44,6 +44,7 @@
"child": "Child",
"click": "Click",
"click_login": "Click to login",
"click_to_edit": "clic to edit",
"close": "Close",
"close_session": "Close session",
"collections": "Collections",
......
......@@ -44,6 +44,7 @@
"child": "Niño",
"click": "Clic",
"click_login": "Clic para iniciar sesión",
"click_to_edit": "clic para editar",
"close": "Cerrar",
"close_session": "Cerrar sesion",
"collections": "Colecciones",
......
......@@ -77,7 +77,7 @@ dashboardControllers.controller('StudentInstructionsCtrl', function StudentInstr
$http
.post(config.backend+'/method/new', {
'id_stu': $scope.studentData.id,
'name': "Nuevo método (cambiar nombre)"
'name': $translate.instant("new_method") + "(" + $translate.instant("click_to_edit") + ")"
})
.success(function(data, status, headers, config) {
// Add empty array of instructions
......@@ -217,8 +217,13 @@ dashboardControllers.controller('StudentInstructionsCtrl', function StudentInstr
// Add instruction
$scope.add_instruction = function(method){
var data = {
method: method.id,
name: $translate.instant("new_instruction") + " (" + $translate.instant("click_to_edit") + ")",
objective: $translate.instant("new_objective") + " (" + $translate.instant("click_to_edit") + ")"
};
$http
.post(config.backend+'/instruction', { method: method.id } )
.post(config.backend+'/instruction', data )
.success(function(data, status, headers, config) {
console.log('Added instruction:' + JSON.stringify(data));
// Add in view
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment