Can't enroll students in courses
InverseFalcon opened this issue · 6 comments
I can't seem to be able to enroll students in courses from either the student detail view or the course detail view. Upon making selections and saving, the selections are never preserved. I've never seen a checkbox load as checked on these pages, they're always unchecked. (teacher specialties never seem to save either)
Sometimes other fields go missing too when I revisit the course detail view, such as the course teacher or subject.
Hello
since the Graph day in Paris, I have tried to test neo4j. I have runned exactly into the same problem. Checkbox are never saved.
I do not know if it comes from spring or from neo4j layer.
Any idea?
2017-09-29 08:35:47.712 DEBUG 14819 --- [io-8080-exec-10] o.n.ogm.context.register.EntityRegister : Added object to node registry: 5, Subject{id=5, name='subject', department=null, teachers=0}
I have found that in /sdn4-university/src/main/web/html/class-detail.html
{{student.name}}
so is it
checklist-value="student.id" or checklist-value="student"
?
Or perhaps we are missing just a ng-click ?
Could you try it and if it works, send a PR?
That would be great, thanks.
Yes i am truying to do it.
By adding
ng-click="addRemoveStudent(class,student)"
I am able to do
// Toggle selection for a given fruit by name
$scope.addRemoveStudent= function addRemoveProduct(feeder,product) {
console.log('HERE');
feeder.products.push(product);
};
But I am not able to remove them on click again...SOmething I do not understand with checklist
I am not sure this is the good way, since each time you click it makes a push, rather waiting for the save button...
I am sorry.
But I think it is clearly important to have a running demo. When clicking on save, it should take all checkbox and make a add...