diff --git a/amadeus/static/css/themes/green.css b/amadeus/static/css/themes/green.css index 578b447..8ea9336 100644 --- a/amadeus/static/css/themes/green.css +++ b/amadeus/static/css/themes/green.css @@ -67,6 +67,11 @@ a, a:focus, a:hover { color: #000000 !important; } +.group-panel-body { + background: #FFFFFF !important; + border-top: 1px solid #CCCCCC; +} + .topic-panel > .panel-heading { background-color: #7BA5B9 !important; } diff --git a/amadeus/static/js/course.js b/amadeus/static/js/course.js index 5a2f95d..ba8ba19 100755 --- a/amadeus/static/js/course.js +++ b/amadeus/static/js/course.js @@ -193,4 +193,14 @@ $('.collapse').on('hide.bs.collapse', function (e) { }); } } -}); \ No newline at end of file +}); + +function delete_group(url) { + $('.modal').remove(); + + $.get(url, function (modal) { + $("#group-accordion").after(modal); + + $('.modal').modal('show'); + }); +} \ No newline at end of file diff --git a/students_group/models.py b/students_group/models.py index 9a650db..c066a91 100644 --- a/students_group/models.py +++ b/students_group/models.py @@ -17,6 +17,7 @@ class StudentsGroup(models.Model): class Meta: verbose_name = _('Students Group') verbose_name_plural = _('Students Groups') + ordering = ['name'] def __str__(self): return self.name \ No newline at end of file diff --git a/students_group/templates/groups/delete.html b/students_group/templates/groups/delete.html new file mode 100644 index 0000000..01de76a --- /dev/null +++ b/students_group/templates/groups/delete.html @@ -0,0 +1,23 @@ +{% load i18n %} + +
{{ user }}
+