gnowledge/gstudio — pull request #794 by AvadootNachankar (2014-09-14 18:05:19+00:00)
Title: MIS Updates - 'Enroll Students in Courses' Implementation

**Functionalities implemented:**

* Files modified:

1) urls/mis.py

- Url added to redirect to a separate function-view (mis_enroll) especially created for enrollment in courses

- ```url(r'^/(?P[\w-]+)/(?P[\w-]+)/enroll/$', 'mis_enroll', name='mis_enroll'), # Student enrollment in Courses link```

2) views/mis.py

- mis_enroll() function added: This redirects to person_enroll() function of person-view.

3) views/person.py

- person_enroll() function added: Handles enrolling students in courses.

4) templates/ndf/student_list.html

- Url (mis_enroll) setup as action for "Enroll in Courses"

5) templates/ndf/student_enroll.html

- Template for enrolling students in courses

6) urls/ajax-urls.py

- Following url added that redirects to function-view (get_anncourses_allstudents)

- ```url(r'^get_anncourses_allstudents/', 'get_anncourses_allstudents', name='get_anncourses_allstudents'),```

7) views/ajax_views.py

- get_anncourses_allstudents() function added: This returns announced courses and students for enrolling in courses based on search criteria

* Saving name field for Announced course modified while updation

1) Files modified:

1) views/course.py

**TODO:**

1) Students needs to be populated in left drawers as per selection criteria

- Facing problem in getting required students but sooner would be implemented