-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
generate report for a single course #2
generate report for a single course #2
Conversation
5e444c6
to
93f3523
Compare
@@ -52,6 +52,14 @@ | |||
</a> | |||
</div> | |||
% endif | |||
% if user.is_staff: | |||
<div class="mobile-nav-item hidden-mobile nav-item nav-tab"> | |||
<a class="tab-nav-link discover-new-link" href="/admin_dashboard" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kindly, use reverse
to make url
@@ -0,0 +1,11 @@ | |||
|
|||
"""Common settings for Admin Dashboard""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To keep the things consistent
, kindly add docstrings in other newly added python
files as well.
"""
My docstring here.
"""
And follow this pattern
@@ -0,0 +1,79 @@ | |||
(function() { | |||
'use strict'; | |||
var getCookie, ReportDownloads; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kindly try to use let
in place of var
as much as possible to keep the scope of variables limited.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure, taken note
|
||
<br><br><br> | ||
|
||
<p><input type="button" name="list-profiles-csv" value="${_("Download profile information as a CSV")}" data-endpoint="${ section_data['key']['get_students_features_url'] }" data-csv="true"></p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kindly, indent this to increase the readability
<p>
<input ....>
....
</input>
</p>
@ensure_csrf_cookie | ||
@cache_if_anonymous() | ||
def course_reports(request): | ||
courses_list = [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not commenting anything on this function as I assume you are using it just for testing purposes.
d8091cf
to
5e0ed9e
Compare
fix in admin_dashboard app
generate course report for selected course