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
ed935499
authored
Feb 02, 2017
by
Sebastián Collado Montañez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
working on supervisors list
parent
b0215055
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletions
sails/src/assets/scripts/app.js
sails/src/assets/scripts/modules/supervisor/controllers/supervisors.js
sails/src/assets/scripts/app.js
View file @
ed935499
...
...
@@ -131,7 +131,7 @@ dashboardApp.config(function ($stateProvider, $urlRouterProvider) {
url
:
'/supervisors_list'
,
parent
:
'supervisor'
,
templateUrl
:
'modules/supervisor/views/supervisors_list.html'
,
controller
:
'SupervisorCtrl'
,
controller
:
'Supervisor
s
Ctrl'
,
})
// Abstract page for student
.
state
(
'student'
,
{
...
...
sails/src/assets/scripts/modules/supervisor/controllers/supervisors.js
0 → 100644
View file @
ed935499
'use strict'
;
//--------------------------
// Admin Supervisors Controller
//--------------------------
dashboardControllers
.
controller
(
'AdminSupervisorsCtrl'
,
function
AdminSupervisorsCtrl
(
$scope
,
$window
,
$http
,
config
,
$translate
,
ngToast
)
{
// List of supervisors
$http
.
get
(
config
.
backend
+
'/sup/all'
)
.
success
(
function
(
data
,
status
,
headers
,
config
)
{
$scope
.
supervisors
=
data
;
})
.
error
(
function
(
data
,
status
,
headers
,
config
)
{
$translate
(
'error_downloading_supervisors'
).
then
(
function
(
translation
)
{
ngToast
.
danger
({
content
:
translation
});
});
});
});
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