This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const STUDENTS = [ | |
{ | |
"name":"Alacaraz, Lucía", | |
"level":"JARDIN", | |
"gradeName":"4", | |
"gradeTurn":"M", | |
"contact":[ | |
{ | |
"name":"Mburuque, Claudia", | |
"phone":"3794633785" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function importStudents(req, res) { | |
for (let student of STUDENTS) { | |
const ids = []; | |
let grade = { | |
year: '2019', | |
level: student.level, | |
name: student.gradeName, | |
turn: student.gradeTurn | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function getPendingStudents(req, res) { | |
Student.find({state: {$in: ['Visitante', 'EntrevistaDirectorFinalizada', 'Interesado', 'Entrevista2', 'ListoParaIngresar']}}) | |
.then(_students => { | |
let students = JSON.parse(JSON.stringify(_students)); | |
students = students.filter(student => { | |
switch (student.state) { | |
case 'Visitante': | |
return true; | |
break; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Student.find(search) | |
.populate('sections') | |
.then(students => { | |
return students.filter(student => { | |
let flag = false; | |
student.sections.forEach(section => { | |
if (section.year === req.query.year) { | |
flag = true; | |
} | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Student.find(search) | |
.populate('sections') | |
.then(students => { | |
return students.filter(student => { | |
let flag = false; | |
student.sections.forEach(section => { | |
if (section.year === req.query.year) { | |
flag = true; | |
console.log(flag); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nav.navbar { | |
border-bottom: 1px solid #dcd4d4; | |
} | |
.navbar .dropdown-menu div[class*="col"] { | |
margin-bottom: 1rem; | |
} | |
.navbar .dropdown-menu { | |
border: none; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mariano@marianoPc ~/proyectos/sam-be $ rake db:migrate && rake db:seed | |
rake aborted! | |
LoadError: cannot load such file -- rack/cors | |
/home/mariano/proyectos/sam-be/app.rb:1:in `<top (required)>' | |
/home/mariano/proyectos/sam-be/rakefile:48:in `block (2 levels) in <top (required)>' | |
Tasks: TOP => db:migrate | |
(See full trace by running task with --trace) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* **Descripción**: Funcionalidad que permite imprimir recetas e indicaciones de la receta creadas en un encuentro. | |
* **Detalle**: | |
1) Impresión de Recetas e indicaciones de la receta al finalizar un encuentro: Una vez finalizado el encuentro, cuando | |
el practicante guarda el encuentro, la app muestra una modal en la cual se va a detectar si se realizó durante el encuentro | |
la creación de una receta. En el caso de que se haya recetado al menos un medicamento, el practicante va a tener la | |
posiblidad de hacer click en un checkbox indicando que desea imprimir las recetas e indicaciones de las recetas. Por lo cual | |
la app va a generar los pdf correspondientes para que el practicante los pueda imprimir. | |
2) Impresión de Recetas e indicaciones de la receta desde Historial de Medicación: Desde el historial de medicación de un paciente |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="mg-avatar"> | |
<div data-ng-if="showCamera" class="mg-webcam-display"> | |
<webcam | |
on-stream="onStream(stream)" | |
on-error="onError(err)" | |
on-streaming="onSuccess()" | |
channel="channel"></webcam> | |
<div data-ng-show="showWebcamControls" class="mg-webcam-controls"> | |
<button data-ng-hide="!showCamera" class="btn-shoot btn btn-default" type="button" ng-click="makeSnapshot()" title="Tomar foto"><span class="glyphicon glyphicon-unchecked" aria-hidden="true"></span></button> | |
<button data-ng-click="removeAvatar()" class="btn-remove btn btn-default" type="button" title="Quitar foto"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
/** | |
* Usage: | |
* For create and edit: | |
* <mega-avatar has-photo="photo" show-controls="true"></mega-avatar> | |
* For display only: | |
* <mega-avatar has-photo="photo" show-controls="false"></mega-avatar> | |
* | |
* @attribute [hasPhoto]: hasPhoto is an attribute that contains the path of the photo which is used in this directive to show the photo or update it to a new one. |
NewerOlder