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
1aebd6b3
authored
Jan 14, 2016
by
Arturo Montejo Ráez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
working on issue
#297
parent
418be65a
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
96 additions
and
84 deletions
.gitignore
sails/src/assets/app/modules/student/controllers/collections.js
sails/src/assets/app/modules/student/controllers/instructions.js
sails/src/assets/app/modules/student/controllers/session.js
sails/src/assets/app/modules/student/views/header.html
sails/src/assets/app/modules/student/views/session.html
sails/src/assets/app/modules/student/views/setup.html
sails/src/assets/symbolstx
sails/src/assets/upload
.gitignore
View file @
1aebd6b3
...
...
@@ -7,6 +7,10 @@
*.o
*.so
# Temporal files
################
\#.*\#
# BCrypt build #
################
sails/src/node_modules/bcrypt/build/
...
...
@@ -15,6 +19,8 @@ sails/src/node_modules/bcrypt/build/
##########
sails/upload
sails/symbolstx
sails/src/assets/symbolstx
sails/src/assets/upload
# Other #
#########
...
...
sails/src/assets/app/modules/student/controllers/collections.js
View file @
1aebd6b3
...
...
@@ -11,7 +11,7 @@ dashboardControllers.controller('StudentCollectionsCtrl', function StudentCollec
// Reload student pictos (back from addpicto)
$scope
.
reload_pictos
=
function
(){
$http
.
get
(
config
.
backend
+
'/stu/'
+
$scope
.
student
User
.
id
+
'/pictos'
)
.
get
(
config
.
backend
+
'/stu/'
+
$scope
.
student
Data
.
id
+
'/pictos'
)
.
success
(
function
(
data
,
status
,
headers
,
config
)
{
// Add to list
$scope
.
studentPictos
=
data
;
...
...
@@ -69,7 +69,7 @@ dashboardControllers.controller('StudentCollectionsCtrl', function StudentCollec
var
deleteStuPicto
=
$window
.
confirm
(
'Are you absolutely sure you want to delete?'
);
if
(
deleteStuPicto
){
$http
.
delete
(
config
.
backend
+
'/stu/'
+
$scope
.
student
User
.
id
+
'/picto/'
+
stuPicto
.
id
)
.
delete
(
config
.
backend
+
'/stu/'
+
$scope
.
student
Data
.
id
+
'/picto/'
+
stuPicto
.
id
)
.
success
(
function
(
data
,
status
,
headers
,
config
)
{
// Eliminar de la vista: Se recorre el array de objetos json para buscarlo
...
...
@@ -91,7 +91,7 @@ dashboardControllers.controller('StudentCollectionsCtrl', function StudentCollec
io
.
socket
.
post
(
'/stu/vocabulary'
,
{
action
:
'delete'
,
attributes
:
{
id_stu
:
$scope
.
student
User
.
id
,
id_stu
:
$scope
.
student
Data
.
id
,
picto
:
data
}
},
...
...
@@ -117,7 +117,7 @@ dashboardControllers.controller('StudentCollectionsCtrl', function StudentCollec
else
stuPicto
.
attributes
.
status
=
"enabled"
;
$http
.
put
(
config
.
backend
+
'/stu/'
+
$scope
.
student
User
.
id
+
'/picto/'
+
stuPicto
.
id
,
{
'attributes'
:
stuPicto
.
attributes
})
.
put
(
config
.
backend
+
'/stu/'
+
$scope
.
student
Data
.
id
+
'/picto/'
+
stuPicto
.
id
,
{
'attributes'
:
stuPicto
.
attributes
})
.
success
(
function
(
data
,
status
,
headers
,
config
)
{
// Actualizar la vista: Se recorre el array de objetos json para buscarlo
...
...
@@ -128,7 +128,7 @@ dashboardControllers.controller('StudentCollectionsCtrl', function StudentCollec
io
.
socket
.
post
(
'/stu/vocabulary'
,
{
action
:
'update'
,
attributes
:
{
id_stu
:
$scope
.
student
User
.
id
,
id_stu
:
$scope
.
student
Data
.
id
,
picto
:
data
}
},
...
...
@@ -159,7 +159,7 @@ dashboardControllers.controller('StudentCollectionsCtrl', function StudentCollec
// Update the ORIGIN picto coords in server (if the picto is not empty)
if
(
$scope
.
pcb
[
c_ori
[
0
]][
c_ori
[
1
]].
id
){
$http
.
put
(
config
.
backend
+
'/stu/'
+
$scope
.
student
User
.
id
+
'/picto/'
+
.
put
(
config
.
backend
+
'/stu/'
+
$scope
.
student
Data
.
id
+
'/picto/'
+
$scope
.
pcb
[
c_ori
[
0
]][
c_ori
[
1
]].
id
,
{
'attributes'
:
$scope
.
pcb
[
c_ori
[
0
]][
c_ori
[
1
]].
attributes
})
.
success
(
function
(
data
,
status
,
headers
,
config
)
{
console
.
log
(
"Coords for picto origin updated"
);
...
...
@@ -169,7 +169,7 @@ dashboardControllers.controller('StudentCollectionsCtrl', function StudentCollec
io
.
socket
.
post
(
'/stu/vocabulary'
,
{
action
:
'update'
,
attributes
:
{
id_stu
:
$scope
.
student
User
.
id
,
id_stu
:
$scope
.
student
Data
.
id
,
picto
:
data
}
},
...
...
@@ -187,7 +187,7 @@ dashboardControllers.controller('StudentCollectionsCtrl', function StudentCollec
// Update the DESTINATION picto coords in server (if the picto is not empty)
if
(
$scope
.
pcb
[
c_des
[
0
]][
c_des
[
1
]].
id
){
$http
.
put
(
config
.
backend
+
'/stu/'
+
$scope
.
student
User
.
id
+
'/picto/'
+
.
put
(
config
.
backend
+
'/stu/'
+
$scope
.
student
Data
.
id
+
'/picto/'
+
$scope
.
pcb
[
c_des
[
0
]][
c_des
[
1
]].
id
,
{
'attributes'
:
$scope
.
pcb
[
c_des
[
0
]][
c_des
[
1
]].
attributes
})
.
success
(
function
(
data
,
status
,
headers
,
config
)
{
console
.
log
(
"Coords for picto destination updated"
);
...
...
@@ -197,7 +197,7 @@ dashboardControllers.controller('StudentCollectionsCtrl', function StudentCollec
io
.
socket
.
post
(
'/stu/vocabulary'
,
{
action
:
'update'
,
attributes
:
{
id_stu
:
$scope
.
student
User
.
id
,
id_stu
:
$scope
.
student
Data
.
id
,
picto
:
data
}
},
...
...
@@ -234,7 +234,7 @@ dashboardControllers.controller('StudentCollectionsCtrl', function StudentCollec
size
:
size
,
resolve
:
{
// Passing data to the controller of the window
stu_id
:
function
(){
return
$scope
.
student
User
.
id
;
return
$scope
.
student
Data
.
id
;
},
sup
:
function
(){
return
$scope
.
user
;
...
...
@@ -308,7 +308,7 @@ dashboardControllers.controller('StudentCollectionsCtrl', function StudentCollec
return
$scope
.
user
;
},
stu
:
function
(){
return
$scope
.
student
User
return
$scope
.
student
Data
}
}
});
...
...
@@ -327,6 +327,11 @@ dashboardControllers.controller('StudentCollectionsCtrl', function StudentCollec
//////////////////////////////////////////////////////////////////////
// websockets events handling
// Remove all listeners to this event
io
.
socket
.
off
(
'vocabulary'
);
// Add new listener to the event
io
.
socket
.
on
(
'vocabulary'
,
function
(
data
)
{
console
.
log
(
'Vocabulary '
+
data
.
action
+
' event received with the following data:'
);
console
.
log
(
JSON
.
stringify
(
data
.
attributes
));
...
...
sails/src/assets/app/modules/student/controllers/instructions.js
View file @
1aebd6b3
...
...
@@ -14,16 +14,16 @@ dashboardControllers.controller('StudentInstructionsCtrl', function StudentInstr
// Get last method/instruction for this student
//
/* $http
.get(config.backend+'/stu/'+ $scope.student
User
.id +'/last_instruction')
.get(config.backend+'/stu/'+ $scope.student
Data
.id +'/last_instruction')
.success(function(data, status, headers, config) {
$scope.student
User
.current_method = data.met_name;
$scope.student
User
.current_instruction = data.ins_name;
$scope.student
Data
.current_method = data.met_name;
$scope.student
Data
.current_instruction = data.ins_name;
console.log('Last method/instruction:' + JSON.stringify(data));
})
.error(function(data, status, headers, config) {
console.log('Last method/instruction error:' + JSON.stringify(data));
$scope.student
User
.current_method = 'undefined';
$scope.student
User
.current_instruction = 'undefined';
$scope.student
Data
.current_method = 'undefined';
$scope.student
Data
.current_instruction = 'undefined';
});*/
// Add method selected to the student
...
...
sails/src/assets/app/modules/student/controllers/session.js
View file @
1aebd6b3
...
...
@@ -78,7 +78,7 @@ dashboardControllers.controller('StudentSessionCtrl', function StudentSessionCtr
$http
.
put
(
config
.
backend
+
'/try/'
+
t
.
id
,
update_data
)
.
success
(
function
(
data
,
status
,
headers
,
config
)
{
console
.
log
(
"Try - updated: "
+
$scope
.
student
User
.
id
+
" try:"
+
t
.
id
);
console
.
log
(
"Try - updated: "
+
$scope
.
student
Data
.
id
+
" try:"
+
t
.
id
);
})
.
error
(
function
(
data
,
status
,
headers
,
config
)
{
console
.
log
(
"Error from API: "
+
data
.
error
);
...
...
@@ -91,7 +91,7 @@ dashboardControllers.controller('StudentSessionCtrl', function StudentSessionCtr
.
put
(
config
.
backend
+
'/try/'
+
$rootScope
.
actual_try
.
id
,
{
result
:
$rootScope
.
actual_try
.
result
,
end
:
new
Date
()
})
.
then
(
function
(
data
,
status
,
headers
,
config
)
{
console
.
log
(
"Current try - updated. Student: "
+
$scope
.
student
User
.
id
+
" try:"
+
$rootScope
.
actual_try
.
id
);
console
.
log
(
"Current try - updated. Student: "
+
$scope
.
student
Data
.
id
+
" try:"
+
$rootScope
.
actual_try
.
id
);
}
,
function
(
data
,
status
,
headers
,
config
)
{
console
.
log
(
"Error from API: "
+
data
.
error
+
"when updating try "
+
$rootScope
.
actual_try
);
...
...
@@ -99,10 +99,10 @@ dashboardControllers.controller('StudentSessionCtrl', function StudentSessionCtr
);
};
$scope
.
send_show_action
=
function
(){
console
.
log
(
"ACTION!"
+
$scope
.
student
User
.
id
+
" try:"
+
$rootScope
.
actual_try
.
id
);
console
.
log
(
"ACTION!"
+
$scope
.
student
Data
.
id
+
" try:"
+
$rootScope
.
actual_try
.
id
);
$http
.
post
(
config
.
backend
+
'/action'
,
{
student
:
$scope
.
student
User
.
id
,
student
:
$scope
.
student
Data
.
id
,
type
:
'Show'
,
timestamp
:
new
Date
(),
_try
:
$rootScope
.
actual_try
.
id
...
...
@@ -159,7 +159,7 @@ dashboardControllers.controller('StudentSessionCtrl', function StudentSessionCtr
$http
.
post
(
config
.
backend
+
'/workingsession'
,
{
"id_sup"
:
$scope
.
user
.
id
,
"id_stu"
:
$scope
.
student
User
.
id
,
"id_stu"
:
$scope
.
student
Data
.
id
,
"id_ins"
:
$scope
.
selectedIns
})
.
success
(
function
(
data
,
status
,
headers
,
config
)
{
...
...
@@ -182,8 +182,8 @@ dashboardControllers.controller('StudentSessionCtrl', function StudentSessionCtr
// Adding initial action to the list of actions
$rootScope
.
actual_try
.
actions
.
push
({
action
:
'tryinit'
});
console
.
log
(
"WS created for method "
+
$scope
.
selectedMethod
.
name
+
" Ins:"
+
$scope
.
selectedIns
.
name
+
": "
+
JSON
.
stringify
(
data
));
$scope
.
student
User
.
current_method
=
$scope
.
selectedMethod
.
name
;
$scope
.
student
User
.
current_instruction
=
$scope
.
selectedIns
.
name
;
$scope
.
student
Data
.
current_method
=
$scope
.
selectedMethod
.
name
;
$scope
.
student
Data
.
current_instruction
=
$scope
.
selectedIns
.
name
;
})
.
error
(
function
(
data
,
status
,
headers
,
config
)
{
console
.
log
(
"Error from API: "
+
data
.
error
);
...
...
@@ -217,7 +217,7 @@ dashboardControllers.controller('StudentSessionCtrl', function StudentSessionCtr
$http
.
put
(
config
.
backend
+
'/workingsession/'
+
$rootScope
.
ws
.
id
,
{
"end"
:
$rootScope
.
ws
.
end
,
"id_stu"
:
$scope
.
student
User
.
id
"id_stu"
:
$scope
.
student
Data
.
id
})
.
success
(
function
(
data
,
status
,
headers
,
config
)
{
console
.
log
(
"WS stopped - updated: "
+
JSON
.
stringify
(
data
));
...
...
@@ -244,7 +244,7 @@ dashboardControllers.controller('StudentSessionCtrl', function StudentSessionCtr
var data = {
action: 'pausesession',
attributes: {
id_stu: $scope.student
User
.id,
id_stu: $scope.student
Data
.id,
id_ws: $rootScope.ws.id
}
};
...
...
@@ -255,10 +255,10 @@ dashboardControllers.controller('StudentSessionCtrl', function StudentSessionCtr
///////////////////////////////////////////////////////////////
*/
$http
$http
.
post
(
config
.
backend
+
'/action'
,
{
"type"
:
"pausesession"
,
"student"
:
$scope
.
student
User
.
id
,
"student"
:
$scope
.
student
Data
.
id
,
"supervisor"
:
$scope
.
user
.
id
})
.
success
(
function
(
data
,
status
,
headers
,
config
)
{
...
...
@@ -283,7 +283,7 @@ dashboardControllers.controller('StudentSessionCtrl', function StudentSessionCtr
var data = {
action: 'resumesession',
attributes: {
id_stu: $scope.student
User
.id,
id_stu: $scope.student
Data
.id,
id_ws: $rootScope.ws.id
}
};
...
...
@@ -297,7 +297,7 @@ dashboardControllers.controller('StudentSessionCtrl', function StudentSessionCtr
$http
.
post
(
config
.
backend
+
'/action'
,
{
"type"
:
"resumesession"
,
"student"
:
$scope
.
student
User
.
id
,
"student"
:
$scope
.
student
Data
.
id
,
"supervisor"
:
$scope
.
user
.
id
})
.
success
(
function
(
data
,
status
,
headers
,
config
)
{
...
...
@@ -397,7 +397,7 @@ dashboardControllers.controller('StudentSessionCtrl', function StudentSessionCtr
var data = {
action: 'tryinit',
attributes: {
id_stu: $scope.student
User
.id,
id_stu: $scope.student
Data
.id,
timestamp: new Date()
}
};
...
...
@@ -414,7 +414,7 @@ dashboardControllers.controller('StudentSessionCtrl', function StudentSessionCtr
var data = {
action: 'add',
attributes: {
id_stu: $scope.student
User
.id,
id_stu: $scope.student
Data
.id,
picto: $scope.pic,
timestamp: new Date()
}
...
...
@@ -439,7 +439,7 @@ dashboardControllers.controller('StudentSessionCtrl', function StudentSessionCtr
var data = {
action: 'delete',
attributes: {
id_stu: $scope.student
User
.id,
id_stu: $scope.student
Data
.id,
picto: $scope.pic,
timestamp: new Date()
}
...
...
@@ -464,7 +464,7 @@ dashboardControllers.controller('StudentSessionCtrl', function StudentSessionCtr
var data = {
action: 'select',
attributes: {
id_stu: $scope.student
User
.id,
id_stu: $scope.student
Data
.id,
picto: $scope.pic,
timestamp: new Date()
}
...
...
@@ -491,7 +491,7 @@ dashboardControllers.controller('StudentSessionCtrl', function StudentSessionCtr
var datashow = {
action: 'show',
attributes: {
id_stu: $scope.student
User
.id,
id_stu: $scope.student
Data
.id,
pictos: [ $scope.pic, $scope.pic, $scope.pic ], // The actual state of the phrase stripe
timestamp: endDate
}
...
...
@@ -503,7 +503,7 @@ dashboardControllers.controller('StudentSessionCtrl', function StudentSessionCtr
var data = {
action: 'tryend',
attributes: {
id_stu: $scope.student
User
.id,
id_stu: $scope.student
Data
.id,
timestamp: endDate
}
};
...
...
@@ -528,7 +528,7 @@ dashboardControllers.controller('StudentSessionCtrl', function StudentSessionCtr
"begin": $scope.pcb_try.begin,
"end": $scope.pcb_try.end,
"actions": $scope.pcb_actions,
"student": $scope.student
User
.id,
"student": $scope.student
Data
.id,
"supervisor": $scope.user.id,
"device": 58
})
...
...
@@ -552,7 +552,7 @@ dashboardControllers.controller('StudentSessionCtrl', function StudentSessionCtr
$http
.post(config.backend+'/actions', {
"actions": $scope.pcb_actions,
"student": $scope.student
User
.id,
"student": $scope.student
Data
.id,
"supervisor": $scope.user.id,
"device": 58
})
...
...
@@ -585,7 +585,7 @@ dashboardControllers.controller('StudentSessionCtrl', function StudentSessionCtr
var data = {
action: 'unshow',
attributes: {
id_stu: $scope.student
User
.id,
id_stu: $scope.student
Data
.id,
timestamp: new Date()
}
};
...
...
@@ -596,7 +596,7 @@ dashboardControllers.controller('StudentSessionCtrl', function StudentSessionCtr
data = {
action: 'tryinit',
attributes: {
id_stu: $scope.student
User
.id,
id_stu: $scope.student
Data
.id,
timestamp: new Date()
}
};
...
...
@@ -609,7 +609,7 @@ dashboardControllers.controller('StudentSessionCtrl', function StudentSessionCtr
io.socket.post('/stu/action', {
action: 'unshow',
attributes: {
id_stu: $scope.student
User
.id,
id_stu: $scope.student
Data
.id,
timestamp: new Date()
}
},
...
...
@@ -636,7 +636,7 @@ dashboardControllers.controller('StudentSessionCtrl', function StudentSessionCtr
io.socket.post('/stu/action', {
action: 'show_device',
attributes: {
id_stu: $scope.student
User
.id,
id_stu: $scope.student
Data
.id,
id_dev: 58,
timestamp: new Date()
}
...
...
@@ -681,6 +681,11 @@ dashboardControllers.controller('StudentSessionCtrl', function StudentSessionCtr
//
// websockets events handling (Dashboard)
//
// Remove all listeners to this event
io
.
socket
.
off
(
'action'
);
// Add new listener to the event
io
.
socket
.
on
(
'action'
,
function
(
data
)
{
// Socket.io does not live inside the angular lifecycle, and thus Angular
...
...
sails/src/assets/app/modules/student/views/header.html
View file @
1aebd6b3
...
...
@@ -16,30 +16,30 @@
<div
class=
"collapse navbar-collapse navbar-ex16-collapse"
>
<div
class=
"nav navbar-nav navbar-left thumbnail img_profile"
>
<img
ng-src=
"{{student
User
.pic}}"
alt=
""
title=
""
/>
<img
ng-src=
"{{student
Data
.pic}}"
alt=
""
title=
""
/>
</div>
<div
class=
"nav navbar-nav navbar-left navbar-text"
>
<h4>
{{student
User.name}} {{studentUser
.surname}}
</h4>
<p>
{{student
User.current_method | translate}} | {{studentUser
.current_instruction | translate}}
</p>
<h4>
{{student
Data.name}} {{studentData
.surname}}
</h4>
<p>
{{student
Data.current_method | translate}} | {{studentData
.current_instruction | translate}}
</p>
</div>
<div
class=
"nav navbar-nav navbar-right tabs_student"
>
<ul
class=
"nav nav-tabs"
>
<li
role=
"presentation"
ng-class=
"{'active' : nav.tab == 'collections'}"
>
<a
href=
"/app/#/student/{{student
User
.id}}/collections"
ng-click=
"nav.tab = ''"
><span
class=
"glyphicon glyphicon-th"
aria-hidden=
"true"
></span>
{{ 'collections' | translate }}
</a>
<a
href=
"/app/#/student/{{student
Data
.id}}/collections"
ng-click=
"nav.tab = ''"
><span
class=
"glyphicon glyphicon-th"
aria-hidden=
"true"
></span>
{{ 'collections' | translate }}
</a>
</li>
<li
role=
"presentation"
ng-class=
"{'active' : nav.tab == 'instructions'}"
>
<a
href=
"/app/#/student/{{student
User
.id}}/instructions"
ng-click=
"nav.tab = 'instructions'"
><span
class=
"glyphicon glyphicon-tasks"
aria-hidden=
"true"
></span>
{{ 'instructions' | translate }}
</a>
<a
href=
"/app/#/student/{{student
Data
.id}}/instructions"
ng-click=
"nav.tab = 'instructions'"
><span
class=
"glyphicon glyphicon-tasks"
aria-hidden=
"true"
></span>
{{ 'instructions' | translate }}
</a>
</li>
<li
role=
"presentation"
ng-class=
"{'active' : nav.tab == 'session'}"
>
<a
href=
"/app/#/student/{{student
User
.id}}/session"
ng-click=
"nav.tab = 'session'"
><span
class=
"glyphicon glyphicon-transfer"
aria-hidden=
"true"
></span>
{{ 'session' | translate }}
</a>
<a
href=
"/app/#/student/{{student
Data
.id}}/session"
ng-click=
"nav.tab = 'session'"
><span
class=
"glyphicon glyphicon-transfer"
aria-hidden=
"true"
></span>
{{ 'session' | translate }}
</a>
</li>
<li
role=
"presentation"
ng-class=
"{'active' : nav.tab == 'reports'}"
>
<a
href=
"/app/#/student/{{student
User
.id}}/reports"
ng-click=
"nav.tab = 'reports'"
><span
class=
"glyphicon glyphicon-file"
aria-hidden=
"true"
></span>
{{ 'reports' | translate }}
</a>
<a
href=
"/app/#/student/{{student
Data
.id}}/reports"
ng-click=
"nav.tab = 'reports'"
><span
class=
"glyphicon glyphicon-file"
aria-hidden=
"true"
></span>
{{ 'reports' | translate }}
</a>
</li>
<li
role=
"presentation"
ng-class=
"{'active' : nav.tab == 'setup'}"
>
<a
href=
"/app/#/student/{{student
User
.id}}/setup"
ng-click=
"nav.tab = 'setup'"
<a
href=
"/app/#/student/{{student
Data
.id}}/setup"
ng-click=
"nav.tab = 'setup'"
><span
class=
"glyphicon glyphicon-cog"
aria-hidden=
"true"
></span>
{{ 'setup' | translate }}
</a>
</li>
</ul>
...
...
sails/src/assets/app/modules/student/views/session.html
View file @
1aebd6b3
...
...
@@ -183,7 +183,7 @@
<!-- <span class="badge">{{ s.tries.length }}</span> -->
<div
ng-show=
"showLastTry && wsessions.length > 0"
>
<h3>
{{ 'last_session' | translate}}: {{ student
User.current_method }}, {{ studentUser
.current_instruction }} ({{s.begin | date:'dd-MM-yyyy'}} )
{{ 'last_session' | translate}}: {{ student
Data.current_method }}, {{ studentData
.current_instruction }} ({{s.begin | date:'dd-MM-yyyy'}} )
</h3>
<div
ng-show=
"ws_recover"
>
<table
style=
"border: 1px solid #666666; padding:5px; background-color:#f5f5f5;"
width=
"100%"
>
...
...
sails/src/assets/app/modules/student/views/setup.html
View file @
1aebd6b3
...
...
@@ -19,7 +19,7 @@
</div>
<!-- Preview -->
<img
class=
"thumbnail preview"
ng-src=
"{{student
User
.pic}}"
/>
<img
class=
"thumbnail preview"
ng-src=
"{{student
Data
.pic}}"
/>
<!-- Fin Cambiar imagen de perfil -->
<!-- Datos personales del alumno -->
...
...
@@ -240,47 +240,47 @@
<div
class=
"input-group"
>
<label>
{{ 'background' | translate }}:
<input
id=
"picto_background"
type=
"color"
ng-model=
"student
User
.attributes.picto_background"
ng-mouseleave=
"update_attributes()"
/>
<input
id=
"picto_background"
type=
"color"
ng-model=
"student
Data
.attributes.picto_background"
ng-mouseleave=
"update_attributes()"
/>
</label>
</div>
<h4>
{{ 'size' | translate }}:
</h4>
<div
class=
"btn-group"
>
<label
class=
"btn btn-default"
ng-model=
"student
User
.attributes.pictogram_size"
btn-radio=
"'normal'"
ng-change=
"update_attributes()"
>
{{ 'normal' | translate }}
</label>
<label
class=
"btn btn-default"
ng-model=
"student
User
.attributes.pictogram_size"
btn-radio=
"'large'"
ng-change=
"update_attributes()"
>
{{ 'large' | translate }}
</label>
<label
class=
"btn btn-default"
ng-model=
"student
Data
.attributes.pictogram_size"
btn-radio=
"'normal'"
ng-change=
"update_attributes()"
>
{{ 'normal' | translate }}
</label>
<label
class=
"btn btn-default"
ng-model=
"student
Data
.attributes.pictogram_size"
btn-radio=
"'large'"
ng-change=
"update_attributes()"
>
{{ 'large' | translate }}
</label>
<!--
<label class="btn btn-default" ng-model="student
User
.attributes.pictogram_size" btn-radio="'enormous'" ng-change="update_attributes()">{{ 'enormous' | translate }}</label>
<label class="btn btn-default" ng-model="student
Data
.attributes.pictogram_size" btn-radio="'enormous'" ng-change="update_attributes()">{{ 'enormous' | translate }}</label>
-->
</div>
<h4>
{{ 'legend' | translate }}:
</h4>
<div
class=
"btn-group"
>
<label
class=
"btn btn-default"
ng-model=
"student
User
.attributes.legend"
btn-radio=
"'yes'"
ng-change=
"update_attributes()"
>
{{ 'show' | translate }}
</label>
<label
class=
"btn btn-default"
ng-model=
"student
User
.attributes.legend"
btn-radio=
"'no'"
ng-change=
"update_attributes()"
>
{{ 'hide' | translate }}
</label>
<label
class=
"btn btn-default"
ng-model=
"student
Data
.attributes.legend"
btn-radio=
"'yes'"
ng-change=
"update_attributes()"
>
{{ 'show' | translate }}
</label>
<label
class=
"btn btn-default"
ng-model=
"student
Data
.attributes.legend"
btn-radio=
"'no'"
ng-change=
"update_attributes()"
>
{{ 'hide' | translate }}
</label>
</div>
<div
id=
"legend_size"
ng-show=
"student
User
.attributes.legend == 'yes'"
>
{{ 'legend_size' | translate }}: {{ student
User
.attributes.legendsize }}%
<input
type=
"range"
min=
"10"
max=
"90"
step=
"10"
ng-model=
"student
User
.attributes.legendsize"
ng-change=
"update_attributes()"
>
<div
id=
"legend_size"
ng-show=
"student
Data
.attributes.legend == 'yes'"
>
{{ 'legend_size' | translate }}: {{ student
Data
.attributes.legendsize }}%
<input
type=
"range"
min=
"10"
max=
"90"
step=
"10"
ng-model=
"student
Data
.attributes.legendsize"
ng-change=
"update_attributes()"
>
</div>
<!--
<h4>{{ 'animation' | translate }}:</h4>
<div class="btn-group">
<label class="btn btn-default" ng-model="student
User
.attributes.animation" btn-radio="'yes'" ng-change="update_attributes()">{{ 'yes' | translate }}</label>
<label class="btn btn-default" ng-model="student
User
.attributes.animation" btn-radio="'no'" ng-change="update_attributes()">{{ 'no' | translate }}</label>
<label class="btn btn-default" ng-model="student
Data
.attributes.animation" btn-radio="'yes'" ng-change="update_attributes()">{{ 'yes' | translate }}</label>
<label class="btn btn-default" ng-model="student
Data
.attributes.animation" btn-radio="'no'" ng-change="update_attributes()">{{ 'no' | translate }}</label>
</div>
<h4>{{ 'categories' | translate }}:</h4>
<div class="btn-group">
<label class="btn btn-default" ng-model="student
User
.attributes.categories" btn-radio="'on'" ng-change="update_attributes()">{{ 'show' | translate }}</label>
<label class="btn btn-default" ng-model="student
User
.attributes.categories" btn-radio="'off'" ng-change="update_attributes()">{{ 'hide' | translate }}</label>
<label class="btn btn-default" ng-model="student
Data
.attributes.categories" btn-radio="'on'" ng-change="update_attributes()">{{ 'show' | translate }}</label>
<label class="btn btn-default" ng-model="student
Data
.attributes.categories" btn-radio="'off'" ng-change="update_attributes()">{{ 'hide' | translate }}</label>
</div>
<h4>{{ 'picto_behavior' | translate }}:</h4>
<div class="btn-group">
<label class="btn btn-default" ng-model="student
User
.attributes.picto_select" btn-radio="'enlarge'" ng-change="update_attributes()">{{ 'enlarge' | translate }}</label>
<label class="btn btn-default" ng-model="student
User
.attributes.picto_select" btn-radio="'mark'" ng-change="update_attributes()">{{ 'mark' | translate }}</label>
<label class="btn btn-default" ng-model="student
Data
.attributes.picto_select" btn-radio="'enlarge'" ng-change="update_attributes()">{{ 'enlarge' | translate }}</label>
<label class="btn btn-default" ng-model="student
Data
.attributes.picto_select" btn-radio="'mark'" ng-change="update_attributes()">{{ 'mark' | translate }}</label>
</div>
-->
...
...
@@ -294,26 +294,26 @@
<div
class=
"input-group"
>
<label>
{{ 'background' | translate }}:
<input
id=
"phrase_background"
type=
"color"
ng-model=
"student
User
.attributes.phrase_background"
ng-mouseleave=
"update_attributes()"
/>
<input
id=
"phrase_background"
type=
"color"
ng-model=
"student
Data
.attributes.phrase_background"
ng-mouseleave=
"update_attributes()"
/>
</label>
</div>
<h4>
{{ 'place_pictos' | translate }}:
</h4>
<div
class=
"btn-group"
>
<label
class=
"btn btn-success"
ng-model=
"student
User
.attributes.input_selection"
btn-radio=
"'click'"
ng-change=
"update_attributes()"
>
{{ 'click' | translate }}
</label>
<label
class=
"btn btn-success"
ng-model=
"student
Data
.attributes.input_selection"
btn-radio=
"'click'"
ng-change=
"update_attributes()"
>
{{ 'click' | translate }}
</label>
<!--
<label class="btn btn-success" ng-model="student
User
.attributes.input_selection" btn-radio="'double click'" ng-change="update_attributes()">{{ 'double_click' | translate }}</label>
<label class="btn btn-success" ng-model="student
User
.attributes.input_selection" btn-radio="'press'" ng-change="update_attributes()">{{ 'press' | translate }}</label>
<label class="btn btn-success" ng-model="student
Data
.attributes.input_selection" btn-radio="'double click'" ng-change="update_attributes()">{{ 'double_click' | translate }}</label>
<label class="btn btn-success" ng-model="student
Data
.attributes.input_selection" btn-radio="'press'" ng-change="update_attributes()">{{ 'press' | translate }}</label>
-->
<label
class=
"btn btn-success"
ng-model=
"student
User
.attributes.input_selection"
btn-radio=
"'drag'"
ng-change=
"update_attributes()"
>
{{ 'drag' | translate }}
</label>
<label
class=
"btn btn-success"
ng-model=
"student
Data
.attributes.input_selection"
btn-radio=
"'drag'"
ng-change=
"update_attributes()"
>
{{ 'drag' | translate }}
</label>
</div>
<h4>
{{ 'feedback_picto' | translate }}:
</h4>
<div
class=
"btn-group"
>
<label
class=
"btn btn-success"
ng-model=
"student
User
.attributes.input_feedback.vibration"
btn-checkbox
ng-change=
"update_attributes()"
>
{{ 'vibration' | translate }}
</label>
<label
class=
"btn btn-success"
ng-model=
"student
User
.attributes.input_feedback.click"
btn-checkbox
ng-change=
"update_attributes()"
>
{{ 'click' | translate }}
</label>
<label
class=
"btn btn-success"
ng-model=
"student
User
.attributes.input_feedback.read"
btn-checkbox
ng-change=
"update_attributes()"
>
{{ 'read_picto' | translate }}
</label>
<label
class=
"btn btn-success"
ng-model=
"student
User
.attributes.input_feedback.highlight"
btn-checkbox
ng-change=
"update_attributes()"
>
{{ 'highlight' | translate }}
</label>
<label
class=
"btn btn-success"
ng-model=
"student
Data
.attributes.input_feedback.vibration"
btn-checkbox
ng-change=
"update_attributes()"
>
{{ 'vibration' | translate }}
</label>
<label
class=
"btn btn-success"
ng-model=
"student
Data
.attributes.input_feedback.click"
btn-checkbox
ng-change=
"update_attributes()"
>
{{ 'click' | translate }}
</label>
<label
class=
"btn btn-success"
ng-model=
"student
Data
.attributes.input_feedback.read"
btn-checkbox
ng-change=
"update_attributes()"
>
{{ 'read_picto' | translate }}
</label>
<label
class=
"btn btn-success"
ng-model=
"student
Data
.attributes.input_feedback.highlight"
btn-checkbox
ng-change=
"update_attributes()"
>
{{ 'highlight' | translate }}
</label>
</div>
</fieldset>
...
...
@@ -325,16 +325,16 @@
<h4>
{{ 'enable_sound_for' | translate }}:
</h4>
<div
class=
"btn-group"
>
<!--
<label class="btn btn-primary" ng-model="student
User
.attributes.tts_options.picto" btn-checkbox ng-change="update_attributes()">{{ 'pictogram' | translate }}</label>
<label class="btn btn-primary" ng-model="student
Data
.attributes.tts_options.picto" btn-checkbox ng-change="update_attributes()">{{ 'pictogram' | translate }}</label>
-->
<label
class=
"btn btn-primary"
ng-model=
"student
User
.attributes.tts_options.phrase"
btn-checkbox
ng-change=
"update_attributes()"
>
{{ 'phrase' | translate }}
</label>
<label
class=
"btn btn-primary"
ng-model=
"student
Data
.attributes.tts_options.phrase"
btn-checkbox
ng-change=
"update_attributes()"
>
{{ 'phrase' | translate }}
</label>
</div>
<!--
<h4>{{ 'voice' | translate }}:</h4>
<div class="btn-group">
<label class="btn btn-primary" ng-model="student
User
.attributes.tts_voice" btn-radio="'child'" ng-change="update_attributes()">{{ 'child' | translate }}</label>
<label class="btn btn-primary" ng-model="student
User
.attributes.tts_voice" btn-radio="'man'" ng-change="update_attributes()">{{ 'man' | translate }}</label>
<label class="btn btn-primary" ng-model="student
User
.attributes.tts_voice" btn-radio="'woman'" ng-change="update_attributes()">{{ 'woman' | translate }}</label>
<label class="btn btn-primary" ng-model="student
Data
.attributes.tts_voice" btn-radio="'child'" ng-change="update_attributes()">{{ 'child' | translate }}</label>
<label class="btn btn-primary" ng-model="student
Data
.attributes.tts_voice" btn-radio="'man'" ng-change="update_attributes()">{{ 'man' | translate }}</label>
<label class="btn btn-primary" ng-model="student
Data
.attributes.tts_voice" btn-radio="'woman'" ng-change="update_attributes()">{{ 'woman' | translate }}</label>
</div>
-->
</fieldset>
...
...
sails/src/assets/symbolstx
deleted
120000 → 0
View file @
418be65a
/home/dofer/pictogram/sails/symbolstx
\ No newline at end of file
sails/src/assets/upload
deleted
120000 → 0
View file @
418be65a
/home/dofer/pictogram/sails/upload
\ No newline at end of file
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