diff --git a/db.sqlite3 b/db.sqlite3 index e3504f130..70c2ed34a 100644 Binary files a/db.sqlite3 and b/db.sqlite3 differ diff --git a/feedback/admin.py b/feedback/admin.py index 9b4427fa2..2eb4c86ae 100644 --- a/feedback/admin.py +++ b/feedback/admin.py @@ -11,28 +11,8 @@ class RatingStatusInline(admin.TabularInline): readonly_fields=( 'crit', 'rating') can_delete = False show_change_link = False - extra = 0 -# class GetRatFilter(admin.SimpleListFilter): -# title = 'get_rat' -# parameter_name = 'get_rat' - -# def lookups(self, request, model_admin): -# return ( -# ('Yes', 'Yes'), -# ('No', 'No'), -# ) - -# def queryset(self, request, queryset): -# value = self.value() -# print(self.value(), '---------------------------') - -# if value < 5: -# return queryset.filter(comment='Я усталь') -# if value > 5: -# return queryset.filter(comment='qqqq') - class UserCommentAdmin(admin.ModelAdmin): fields = ( 'comment', ('get_rat', 'user', 'time_create')) list_display=('user', 'time_create', 'comment', 'get_rat', 'utility') diff --git a/feedback/models.py b/feedback/models.py index e542f01a3..3c318dbbf 100644 --- a/feedback/models.py +++ b/feedback/models.py @@ -8,8 +8,8 @@ class BaseCriteria(models.Model): rating = models.IntegerField(verbose_name='Рейтинг', default=5, blank=True) color = models.CharField(verbose_name='Цвет иконки', max_length=150, null=True, blank=True) class Meta: - verbose_name = "Критерии оценки" - verbose_name_plural = "Критерии оценки" + verbose_name = "Справочник - Критерии оценки" + verbose_name_plural = "Справочник - Критерии оценки" def __str__(self): return str(self.name) diff --git a/front/src/assets/dr.png b/front/src/assets/dr.png new file mode 100644 index 000000000..29718ed7e Binary files /dev/null and b/front/src/assets/dr.png differ diff --git a/front/src/assets/mc.png b/front/src/assets/mc.png new file mode 100644 index 000000000..495723e80 Binary files /dev/null and b/front/src/assets/mc.png differ diff --git a/front/src/assets/quickly.png b/front/src/assets/quickly.png new file mode 100644 index 000000000..bfe6e79d0 Binary files /dev/null and b/front/src/assets/quickly.png differ diff --git a/front/src/components/UI/Calendar-full.vue b/front/src/components/UI/Calendar-full.vue index cc0d7e069..89ffbb1e7 100644 --- a/front/src/components/UI/Calendar-full.vue +++ b/front/src/components/UI/Calendar-full.vue @@ -34,7 +34,7 @@ export default { const calendarOptions = reactive({ plugins: [ dayGridPlugin, interactionPlugin, timeGridPlugin, listPlugin, multiMonthPlugin ], initialView: props.initial, - + dayMaxEventRows: 2, locale: 'ru', buttonText: { today: 'Сегодня', @@ -84,7 +84,7 @@ export default { // console.log(info.event.extendedProps); // {description: "Lecture", department: "BioChemistry"} // }, - aspectRatio: 1, + aspectRatio: 3, multiMonthMaxColumns: 2, displayEventEnd: true, height: '100%', diff --git a/front/src/components/carousel-list.vue b/front/src/components/carousel-list.vue index bc874aae8..81a919ac4 100644 --- a/front/src/components/carousel-list.vue +++ b/front/src/components/carousel-list.vue @@ -1,12 +1,14 @@