diff --git a/app/scripts/controllers/students/StudentsCoursesIndexCtrl.js b/app/scripts/controllers/students/StudentsCoursesIndexCtrl.js new file mode 100644 index 00000000..311faec9 --- /dev/null +++ b/app/scripts/controllers/students/StudentsCoursesIndexCtrl.js @@ -0,0 +1,51 @@ +'use strict'; + +define(['paw'], function(paw) { + paw.controller('StudentsCoursesIndexCtrl', ['$routeParams', function($routeParams) { + var docket = $routeParams.docket; // For future Service calls + + this.student = { + docket: '55019', + firstName: 'Matías', + lastName: 'Mercado', + email: 'mmercado@itba.edu.ar', + genre: 'Masculino', + dni: '38917403', + birthday: '1995-05-04', + address: { + country: 'Argentina', + city: 'Buenos Aires', + neighborhood: 'Almagro', + number: '682', + street: 'Corrientes', + floor: '2', + door: 'A', + telephone: '1544683390', + zipCode: '1100' + }, + courses: [ + { + courseId: '72.03', + credits: 3, + name: 'Introducción a Informática', + semester: 1 + }, + { + courseId: '94.21', + credits: 6, + name: 'Formacion General I', + semester: 5 + } + ] + }; + + this.filter = { + id: $routeParams.id, + name: $routeParams.name + }; + this.resetSearch = function() { + this.filter = {}; + }; + + }]); +}); diff --git a/app/scripts/i18n/translations.es.js b/app/scripts/i18n/translations.es.js index fc5ab62b..b43a9e3c 100644 --- a/app/scripts/i18n/translations.es.js +++ b/app/scripts/i18n/translations.es.js @@ -84,6 +84,9 @@ define([], function() { // Course Show i18nCourses: 'Materias', i18nInformation: 'Información', + // Students Inscriptions + i18nUnenroll: 'Dar de Baja', + // Courses Index i18nCourseId: 'Código', i18nCourseName: 'Nombre', i18nCredits: 'Créditos', diff --git a/app/scripts/routes.js b/app/scripts/routes.js index 0cc67171..46c42481 100644 --- a/app/scripts/routes.js +++ b/app/scripts/routes.js @@ -51,6 +51,11 @@ define([], function() { templateUrl: 'views/courses/correlatives_new.html', controller: 'CoursesCorrelativesNewCtrl', relativePath: '/courses' + }, + '/students/:docket/courses': { + templateUrl: 'views/students/courses_index.html', + controller: 'StudentsCoursesIndexCtrl', + relativePath: '/students' } /* ===== yeoman hook ===== */ /* Do not remove these commented lines! Needed for auto-generation */ diff --git a/app/styles/main.scss b/app/styles/main.scss index 67d43b63..2489fb42 100644 --- a/app/styles/main.scss +++ b/app/styles/main.scss @@ -20,3 +20,4 @@ $fa-font-path: '../bower_components/font-awesome/fonts'; @import 'partials/courses/show'; @import 'partials/courses/students_index'; @import 'partials/courses/correlatives_new'; +@import 'partials/students/courses_index'; diff --git a/app/styles/partials/students/_courses_index.scss b/app/styles/partials/students/_courses_index.scss new file mode 100644 index 00000000..c7359524 --- /dev/null +++ b/app/styles/partials/students/_courses_index.scss @@ -0,0 +1,20 @@ +@import 'modules/variables/importer'; + +.students-courses-index-container { + .table { + .actions-container { + display: flex; + flex-wrap: wrap; + width: 100%; + justify-content: flex-start; + + .btn { + flex: 1; + min-width: 175px; + max-width: 200px; + margin: 10px; + margin-left: 0; + } + } + } +} diff --git a/app/views/students/courses_index.html b/app/views/students/courses_index.html new file mode 100644 index 00000000..ff6df223 --- /dev/null +++ b/app/views/students/courses_index.html @@ -0,0 +1,77 @@ +
+ + + + + +
+
+
+ + +
+
+ + +
+
+
+ + +
+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + +
{{ course.courseId }}{{ course.name }}{{ course.credits }}{{ course.semester }} + + + + + + + + +
+
+ +