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
c0558c4d
authored
Feb 20, 2017
by
Arturo Montejo Ráez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
issue #929 fixed
parent
6963462e
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
14 deletions
sails/src/assets/app/i18n/en-gb.json
sails/src/assets/app/i18n/es-es.json
sails/src/assets/scripts/modules/student/controllers/addpicto.js
sails/src/assets/scripts/modules/student/controllers/session.js
sails/src/assets/scripts/modules/student/views/addpicto.html
sails/src/assets/scripts/modules/student/views/session.html
sails/src/assets/app/i18n/en-gb.json
View file @
c0558c4d
...
...
@@ -299,9 +299,9 @@
"serial_not_created"
:
"Serial number couldn't be created"
,
"server_error"
:
"An error has been reported when connecting to the server."
,
"session"
:
"Session"
,
"sessions"
:
"Sessions"
,
"session_mean_length"
:
"Session mean length: {{hours}} hours"
,
"session_notes"
:
"Session notes"
,
"session_closed"
:
"Pending session is now closed"
,
"sessions"
:
"Sessions"
,
"sessions_of"
:
"Sessions of"
,
"setup"
:
"Setup"
,
...
...
sails/src/assets/app/i18n/es-es.json
View file @
c0558c4d
...
...
@@ -300,11 +300,11 @@
"serial_not_created"
:
"No se ha podido crear el número de serie"
,
"server_error"
:
"No se ha podido conectar con el servidor."
,
"session"
:
"Sesión"
,
"sessions"
:
"Sesiones"
,
"session_mean_length"
:
"Duración media de sesión: {{hours}} horas"
,
"session_notes"
:
"Notas de sesión"
,
"session
s"
:
"Sesiones
"
,
"session
_closed"
:
"La sesión abierta está ahora cerrada
"
,
"sessions_of"
:
"Sesiones de"
,
"sessions"
:
"Sesiones"
,
"setup"
:
"Configuración"
,
"sexo"
:
"Sexo"
,
"show"
:
"Mostrar"
,
...
...
sails/src/assets/scripts/modules/student/controllers/addpicto.js
View file @
c0558c4d
...
...
@@ -168,7 +168,9 @@ dashboardControllers.controller('AddPictoCtrl', function (
progress
:
()
=>
{
return
$scope
.
progress
;}
}
});
modalInstance
.
result
.
then
(
function
()
{
$scope
.
picFile
=
null
;});
modalInstance
.
result
.
then
(
function
()
{
$scope
.
picFile
=
null
;
});
};
/**
...
...
@@ -196,13 +198,14 @@ dashboardControllers.controller('AddPictoCtrl', function (
$scope
.
pictos
.
push
(
picto
);
$scope
.
load_own_pictos
();
cb
();
$scope
.
close
(
picto
.
id
);
});
});
},
function
(
res
)
{
if
(
res
.
status
<
0
)
ngToast
.
danger
(
$translate
.
instant
(
'picto_upload_error'
));
cb
();
cb
();
},
function
(
evt
)
{
$scope
.
progress
=
parseInt
(
100.0
*
evt
.
loaded
/
evt
.
total
);
...
...
@@ -369,8 +372,8 @@ dashboardControllers.controller('AddPictoCtrl', function (
$scope
.
load_own_pictos
();
}
else
{
$scope
.
load_category
(
0
);
$scope
.
load_pictos
(
0
);
$scope
.
load_category
(
0
);
$scope
.
load_pictos
(
0
);
}
});
sails/src/assets/scripts/modules/student/controllers/session.js
View file @
c0558c4d
...
...
@@ -158,6 +158,7 @@ dashboardControllers.controller('StudentSessionCtrl', function StudentSessionCtr
,
function
(
data
,
status
,
headers
,
config
)
{
}
);
ngToast
.
success
(
$translate
.
instant
(
'session_closed'
));
};
//
...
...
sails/src/assets/scripts/modules/student/views/addpicto.html
View file @
c0558c4d
...
...
@@ -82,10 +82,10 @@
<div
id=
"clearfix-infiniteScroll-parent"
infinite-scroll=
"scroll()"
infinite-scroll-container=
"'#collections'"
>
<div
class=
"picto_peq pull-left"
ng-repeat=
"p in pictos"
>
<img
ng-src=
"{{p.uri}}"
popover=
"{{p.expressions[0].text}}"
popover-trigger=
"mouseenter"
/>
<img
ng-src=
"{{p.uri}}"
popover=
"{{p.expressions[0].text}}"
popover-trigger=
"mouseenter"
style=
"z-index:9000"
/>
<!-- Options to remove picto (Only for own pictos) -->
<div
class=
"picto_options"
>
<a
ng-click=
"remove_own_picto(p.id)"
class=
"picto_remove"
title=
"{{ 'delete' | translate}}"
ng-show=
"source == 'ownpictos'"
>
<a
ng-click=
"remove_own_picto(p.id)"
class=
"picto_remove"
title=
"{{ 'delete' | translate
}}"
ng-show=
"source == 'ownpictos'"
>
<span
class=
"color_red glyphicon glyphicon-remove-circle"
aria-hidden=
"true"
></span>
</a>
<a
ng-show=
"!onlyOwn"
...
...
sails/src/assets/scripts/modules/student/views/session.html
View file @
c0558c4d
...
...
@@ -103,7 +103,6 @@
<span
class=
"glyphicon glyphicon-exclamation-sign"
aria-hidden=
"true"
></span>
<span
class=
"sr-only"
>
Error:
</span>
{{ 'warning_last_session_bad' | translate }}
<button
class=
"btn btn-warning btn-sm"
type=
"button"
ng-click=
"close_ws()"
translate
>
close_session
</button>
</div>
<!-- running try -->
...
...
@@ -187,11 +186,11 @@
<!-- / running try -->
<!-- sessions list -->
<div
class=
"list-group pre-scrollable"
ng-show=
"showSessions && section == 'previous' || showLastTry && wsessions.length > 0
&&
ws_recover || tryRunning"
>
<div
class=
"list-group pre-scrollable"
ng-show=
"showSessions && section == 'previous' || showLastTry && wsessions.length > 0
||
ws_recover || tryRunning"
>
<div
ng-repeat=
"s in wsessions | orderBy: '-begin'"
>
<!-- div class="list-group-item" ng-repeat="s in wsessions | orderBy: '-begin' | limitTo: numPerPage:(currentPage-1)*numPerPage" -->
<div
class=
"list-group-item"
ng-show=
"section == 'previous' || ws.id==s.id"
>
<div
class=
"list-group-item"
ng-show=
"section == 'previous' || ws.id==s.id
|| ws_recover
"
>
<div
ng-show=
"showLastTry && wsessions.length > 0"
>
<h4><strong>
{{ 'last_session' | translate }}
</strong>
: {{ studentData.current_method }}, {{ studentData.current_instruction }}
</h4>
...
...
@@ -204,7 +203,7 @@
</p>
<!-- show/hide tries button -->
<div
class=
"form-group pull-right"
ng-show=
"ws.id != s.id"
>
<div
class=
"form-group pull-right"
ng-show=
"ws.id != s.id
&& !ws_recover
"
>
<span
class=
"control-label"
>
{{ s.tries.length }} {{ 'tries' | translate }}
</span>
<button
ng-click=
"showTries = !showTries"
class=
"btn btn-default btn-sm"
>
<div
ng-show=
"!showTries"
>
...
...
@@ -220,8 +219,10 @@
<textarea
type=
"editable title"
rows=
"2"
id=
"ins_desc_ws"
placeholder=
" {{ 'session_notes' | translate }}"
ng-model=
"s.description"
ng-model-options=
"{ updateOn: 'blur' }"
ng-change=
"update_ws(s)"
cols=
"80"
></textarea>
<button
ng-show=
"ws_recover"
class=
"btn btn-warning btn-sm pull-right"
type=
"button"
ng-click=
"close_ws()"
translate
>
close_session
</button>
<!-- tries list -->
<div
class=
"sessionTries"
ng-show=
"showTries || ws.id == s.id"
>
<div
class=
"sessionTries"
ng-show=
"showTries || ws.id == s.id
|| ws_recover
"
>
<div
class=
"try"
ng-repeat=
"t in s.tries"
>
<div
ng-show=
"!is_currentOpenTry(t)"
>
<table
width=
"100%"
>
...
...
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