Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
MOOC packages by hacklab
django-courses-legacy
Commits
31b4905c
Commit
31b4905c
authored
4 years ago
by
Leonardo Piccioni de Almeida
Browse files
Options
Download
Email Patches
Plain Diff
Split participation reports into components - Part 4
parent
556148ab
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
109 additions
and
1 deletion
+109
-1
courses_legacy/static/js/reports/role-participation-report/role-participation-report.component.js
...rticipation-report/role-participation-report.component.js
+31
-0
courses_legacy/static/js/reports/role-participation-report/role-participation-report.module.js
...-participation-report/role-participation-report.module.js
+8
-0
courses_legacy/static/js/reports/user-participation-report/user-participation-report.app.js
...ser-participation-report/user-participation-report.app.js
+1
-0
courses_legacy/templates/components/city-participation-report-list.template.html
...s/components/city-participation-report-list.template.html
+1
-1
courses_legacy/templates/components/role-participation-report.template.html
...plates/components/role-participation-report.template.html
+63
-0
courses_legacy/templates/components/user-participation-report.template.html
...plates/components/user-participation-report.template.html
+2
-0
courses_legacy/templates/user-participation-report.html
courses_legacy/templates/user-participation-report.html
+2
-0
courses_legacy/urls.py
courses_legacy/urls.py
+1
-0
No files found.
courses_legacy/static/js/reports/role-participation-report/role-participation-report.component.js
0 → 100644
View file @
31b4905c
(
function
()
{
'
use strict
'
;
angular
.
module
(
'
roleParticipationReport
'
)
.
component
(
'
roleParticipationReport
'
,
{
templateUrl
:
'
/role-participation-report.template.html
'
,
controller
:
RoleParticipationReportCtrl
,
bindings
:
{
date
:
'
<
'
,
},
});
RoleParticipationReportCtrl
.
$inject
=
[
'
$scope
'
];
function
RoleParticipationReportCtrl
(
$scope
)
{
var
ctrl
=
this
;
ctrl
.
minimized
=
false
;
ctrl
.
toggleDetails
=
toggleDetails
;
ctrl
.
$onInit
=
function
()
{
};
function
toggleDetails
()
{
ctrl
.
minimized
=
!
ctrl
.
minimized
;
}
}
})();
This diff is collapsed.
Click to expand it.
courses_legacy/static/js/reports/role-participation-report/role-participation-report.module.js
0 → 100644
View file @
31b4905c
(
function
()
{
'
use strict
'
;
angular
.
module
(
'
roleParticipationReport
'
,
[
'
reports.services
'
,
]);
})();
This diff is collapsed.
Click to expand it.
courses_legacy/static/js/reports/user-participation-report/user-participation-report.app.js
View file @
31b4905c
...
...
@@ -5,6 +5,7 @@
'
cityParticipationReport
'
,
'
cityParticipationReportList
'
,
'
classroomParticipationReport
'
,
'
roleParticipationReport
'
,
'
userParticipationGraphicsReport
'
,
'
userParticipationReport
'
,
'
shared
'
,
...
...
This diff is collapsed.
Click to expand it.
courses_legacy/templates/components/city-participation-report-list.template.html
View file @
31b4905c
...
...
@@ -19,7 +19,7 @@
<div
class=
"filter-row"
>
<span>
Busque pelo nome do município:
</span>
<input
name=
"city"
placeholder=
"Busque por um município"
aria-label=
"Nome"
>
<span>
Filtre a lista
</span>
<span>
Filtre a lista
:
</span>
<select
name=
"city"
aria-label=
"Nome"
>
<option>
Selecione o Nome
</option>
</select>
...
...
This diff is collapsed.
Click to expand it.
courses_legacy/templates/components/role-participation-report.template.html
0 → 100644
View file @
31b4905c
{% verbatim %}
<section
class=
"widget container-fluid"
>
<header
class=
"widget-header"
>
<div
class=
"row"
>
<div
class=
"col-sm-12 col-md-12"
>
<span
class=
"pull-left"
>
<h2
class=
"widget-title"
>
Funções
</h2>
</span>
<div
class=
"pull-right"
>
<button
class=
"btn btn-primary collapse-button"
ng-click=
"$ctrl.toggleDetails()"
>
{{ $ctrl.minimized ? 'Exibir' : 'Minimizar' }} dados
<i
ng-class=
"['fa', $ctrl.minimized ? 'fa-chevron-down' : 'fa-chevron-up']"
aria-hidden=
"true"
></i>
</button>
</div>
</div>
</div>
</header>
<main
class=
"widget-body"
ng-if=
"!$ctrl.minimized"
>
<div
class=
"filter-row"
>
<span>
Filtre a lista:
</span>
<select
name=
"nte"
aria-label=
"NTE"
>
<option>
Selecione o NTE
</option>
</select>
<select
name=
"network"
aria-label=
"Rede"
>
<option>
Selecione a Rede
</option>
</select>
<select
name=
"city"
aria-label=
"Município"
>
<option>
Selecione o Município
</option>
</select>
</div>
<div
class=
"table-wrapper"
>
<table>
<thead>
<tr>
<th>
Cargo/função
</th>
<th>
Participantes ativos
</th>
<th>
Participantes não ativos
</th>
<th>
Usuários não participantes
</th>
<th>
Total geral
</th>
</tr>
</thead>
<tbody>
<tr>
<td><b>
Apoio pedagógico
</b></td>
<td>
124
</td>
<td>
124
</td>
<td>
163
</td>
<td>
600
</td>
</tr>
<tr
class=
"total"
>
<td><b>
TOTAL GERAL
</b></td>
<td>
124
</td>
<td>
124
</td>
<td>
163
</td>
<td>
600
</td>
</tr>
</tbody>
</table>
</div>
</main>
</section>
{% endverbatim %}
This diff is collapsed.
Click to expand it.
courses_legacy/templates/components/user-participation-report.template.html
View file @
31b4905c
...
...
@@ -11,6 +11,8 @@
<city-participation-report-list
ntes=
"$ctrl.ntes_reports"
></city-participation-report-list>
<classroom-participation-report></classroom-participation-report>
<role-participation-report></role-participation-report>
</div>
{% endverbatim %}
This diff is collapsed.
Click to expand it.
courses_legacy/templates/user-participation-report.html
View file @
31b4905c
...
...
@@ -34,6 +34,8 @@
<script
type=
"text/javascript"
src=
"{% static 'js/reports/city-participation-report-list/city-participation-report-list.component.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'js/reports/classroom-participation-report/classroom-participation-report.module.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'js/reports/classroom-participation-report/classroom-participation-report.component.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'js/reports/role-participation-report/role-participation-report.module.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'js/reports/role-participation-report/role-participation-report.component.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'js/reports/user-participation-graphics-report/user-participation-graphics-report.module.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'js/reports/user-participation-graphics-report/user-participation-graphics-report.component.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'js/reports/user-participation-report/user-participation-report.module.js' %}"
></script>
...
...
This diff is collapsed.
Click to expand it.
courses_legacy/urls.py
View file @
31b4905c
...
...
@@ -210,6 +210,7 @@ urlpatterns = [
url
(
r
'^city-participation-report.template.html'
,
TemplateView
.
as_view
(
template_name
=
"components/city-participation-report.template.html"
),
name
=
'city-participation-report'
),
url
(
r
'^city-participation-report-list.template.html'
,
TemplateView
.
as_view
(
template_name
=
"components/city-participation-report-list.template.html"
),
name
=
'city-participation-report-list'
),
url
(
r
'^classroom-participation-report.template.html'
,
TemplateView
.
as_view
(
template_name
=
"components/classroom-participation-report.template.html"
),
name
=
'classroom-participation-report'
),
url
(
r
'^role-participation-report.template.html'
,
TemplateView
.
as_view
(
template_name
=
"components/role-participation-report.template.html"
),
name
=
'role-participation-report'
),
url
(
r
'^user-participation-graphics-report.template.html'
,
TemplateView
.
as_view
(
template_name
=
"components/user-participation-graphics-report.template.html"
),
name
=
'user-participation-graphics-report'
),
url
(
r
'^user-participation-report.template.html'
,
TemplateView
.
as_view
(
template_name
=
"components/user-participation-report.template.html"
),
name
=
'user-participation-report'
),
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment