I made sure I didn't write too much code to avoid new bugs. That's why I wanted to use the same code used to search:
campuses in api_views/campus.py
courses in api_views/course.py
favourites in views/api.py (ApiSavedCampus).
The share bar (pdf, email, twitter, link, embeded) is now displayed on all map views except when there is no result.
Added to the PDF: search filters (options: field of study, qualification type..)
Added to the PDF: the url with search query and options. The url is for the moment hard-coded.
I'll open an issue for each of those
PDF's name is feti.pdf.
PDF's content has bugs and could be improved: some campus dont have an address; pdf of courses doesn't look good; map is too big
this fixes #527
I consider this pull request more like a patch. This code could be refactored a lot more.
I made sure I didn't write too much code to avoid new bugs. That's why I wanted to use the same code used to search:
api_views/campus.py
api_views/course.py
views/api.py
(ApiSavedCampus).The share bar (pdf, email, twitter, link, embeded) is now displayed on all map views except when there is no result. Added to the PDF: search filters (options: field of study, qualification type..) Added to the PDF: the url with search query and options. The url is for the moment hard-coded.
I'll open an issue for each of those
feti.pdf
.