From adf2e0bbd427b649403719ccac05e01f766ce9e3 Mon Sep 17 00:00:00 2001 From: Julio Date: Fri, 15 Oct 2021 15:04:17 +0200 Subject: [PATCH] Minor - remove unused code --- assets/vue/components/course/CourseCard.vue | 2 +- .../components/session/SessionListWrapper.vue | 34 +++++++++---------- src/CoreBundle/Form/ProfileType.php | 19 ----------- 3 files changed, 18 insertions(+), 37 deletions(-) diff --git a/assets/vue/components/course/CourseCard.vue b/assets/vue/components/course/CourseCard.vue index 30d9a93618..68f9b5865e 100644 --- a/assets/vue/components/course/CourseCard.vue +++ b/assets/vue/components/course/CourseCard.vue @@ -11,7 +11,7 @@
- [ {{ session.name }} ] + {{ session.name }} - {{ course.title }} diff --git a/assets/vue/components/session/SessionListWrapper.vue b/assets/vue/components/session/SessionListWrapper.vue index a3c1287f9d..cbb69e9276 100644 --- a/assets/vue/components/session/SessionListWrapper.vue +++ b/assets/vue/components/session/SessionListWrapper.vue @@ -4,24 +4,24 @@
-
-
-
- -
+ + + + + + + + + -
- {{ $t("You don't have any session yet.") }} -
-
- {{ $t('Go to "Explore" to find a topic of interest, or wait for someone to subscribe you.') }} -
-
-
+ + + + + + + +
diff --git a/src/CoreBundle/Form/ProfileType.php b/src/CoreBundle/Form/ProfileType.php index 1bedafad7a..5795333d48 100644 --- a/src/CoreBundle/Form/ProfileType.php +++ b/src/CoreBundle/Form/ProfileType.php @@ -6,7 +6,6 @@ declare(strict_types=1); namespace Chamilo\CoreBundle\Form; -use Chamilo\CoreBundle\Entity\ExtraFieldValues; use Chamilo\CoreBundle\Entity\User; use Chamilo\CoreBundle\Form\Type\IllustrationType; use Chamilo\CoreBundle\Repository\LanguageRepository; @@ -73,24 +72,6 @@ class ProfileType extends AbstractType ['label' => 'Picture', 'required' => false, 'mapped' => false] ) //->add('website', UrlType::class, ['label' => 'Website', 'required' => false]) - /*->add( - 'extraFieldValues', - CollectionType::class, - array( - 'required' => false, - 'allow_add' => true, - 'allow_delete' => true, - 'type' => 'chamilo_user_extra_field_value', - 'by_reference' => false, - 'prototype' => true, - 'widget_add_btn' => ['label' => 'Add'], - 'options' => array( // options for collection fields - 'widget_remove_btn' => array('label' => 'Remove'), - 'label_render' => false, - ) - ) - )*/ - //->add('save', 'submit', array('label' => 'Update') ) ; $builder->add('extra_fields', ExtraFieldType::class, ['mapped' => false]);