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
b7938de8
Commit
b7938de8
authored
5 years ago
by
Fernando Ribeiro
Browse files
Options
Download
Plain Diff
Merge branch 'develop' into 'master'
Develop into master See merge request
!10
parents
0a41e470
ecf2960a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
8 deletions
+11
-8
courses_legacy/accounts/forms.py
courses_legacy/accounts/forms.py
+1
-2
courses_legacy/static/js/dashboard/dashboard-controllers.js
courses_legacy/static/js/dashboard/dashboard-controllers.js
+6
-2
courses_legacy/templates/administration/courses.html
courses_legacy/templates/administration/courses.html
+4
-4
No files found.
courses_legacy/accounts/forms.py
View file @
b7938de8
...
...
@@ -73,7 +73,7 @@ class ProfileEditAdminForm(BaseProfileEditForm):
'groups'
:
forms
.
SelectMultiple
(
attrs
=
{
'class'
:
'form-control'
,
'size'
:
10
})
}
fields
=
(
'username'
,
'email'
,
'first_name'
,
'last_name'
,
'image'
,
fields
=
(
'username'
,
'name'
,
'email'
,
'first_name'
,
'last_name'
,
'image'
,
'groups'
,
'occupation'
,
'city'
,
'site'
,
'biography'
,)
def
clean
(
self
):
...
...
@@ -97,7 +97,6 @@ class ProfileEditAdminForm(BaseProfileEditForm):
def
save
(
self
,
commit
=
True
):
if
self
.
cleaned_data
[
'password1'
]:
self
.
instance
.
set_password
(
self
.
cleaned_data
[
'password1'
])
import
ipdb
;
ipdb
.
set_trace
()
return
super
(
ProfileEditAdminForm
,
self
).
save
(
commit
=
commit
)
...
...
This diff is collapsed.
Click to expand it.
courses_legacy/static/js/dashboard/dashboard-controllers.js
View file @
b7938de8
...
...
@@ -47,8 +47,12 @@
$scope
.
courses
=
courses
.
slice
(
0
,
2
);
});
});
$scope
.
latest_topics
=
Topic
.
query
({
limit
:
8
,
ordering
:
'
-last_activity_at
'
})
try
{
$scope
.
latest_topics
=
Topic
.
query
({
limit
:
8
,
ordering
:
'
-last_activity_at
'
})
}
catch
(
err
){
console
.
error
(
err
)
}
// Cards.get({
// is_certified: 2,
// limit: 3
...
...
This diff is collapsed.
Click to expand it.
courses_legacy/templates/administration/courses.html
View file @
b7938de8
...
...
@@ -162,16 +162,16 @@ wrapper-course-lesson
<button
class=
"btn btn-link btn-sm show-all"
ng-click=
"loadLessons(course);showLessons=!showLessons"
ng-class=
"showLessons ? 'hide-all': 'show-all'"
>
<span
ng-if=
"!showLessons"
>
mostrar
aul
as
</span>
<span
ng-if=
"showLessons"
>
esconder
aul
as
</span>
<span
ng-if=
"!showLessons"
>
mostrar
etap
as
</span>
<span
ng-if=
"showLessons"
>
esconder
etap
as
</span>
</button>
<div
class=
"lesson-list"
ng-show=
"showLessons"
>
<div
ng-hide=
"course.lessons.$resolved"
>
<span>
Carregando lista de
aul
as...
</span>
<span>
Carregando lista de
etap
as...
</span>
</div>
<div
ng-show=
"course.lessons.length == 0"
>
<span>
Carregando lista de aulas...
</span>
<span>
Nao há etapas disponíveis neste espaço formativo
</span>
</div>
<div
ng-show=
"course.lessons"
>
<div
class=
"lesson"
ng-repeat=
"lesson in course.lessons"
>
...
...
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