Minor - remove unused code

pull/4032/head
Julio 3 years ago
parent 0dc61adbb8
commit adf2e0bbd4
  1. 2
      assets/vue/components/course/CourseCard.vue
  2. 34
      assets/vue/components/session/SessionListWrapper.vue
  3. 19
      src/CoreBundle/Form/ProfileType.php

@ -11,7 +11,7 @@
<div class="line-clamp-2 text-md w-5/6"> <div class="line-clamp-2 text-md w-5/6">
<router-link :to="{ name: 'CourseHome', params: {id: course._id, course: course}, query: { sid: sessionId } }"> <router-link :to="{ name: 'CourseHome', params: {id: course._id, course: course}, query: { sid: sessionId } }">
<span v-if="session"> <span v-if="session">
[ {{ session.name }} ] {{ session.name }} -
</span> </span>
{{ course.title }} {{ course.title }}
</router-link> </router-link>

@ -4,24 +4,24 @@
</div> </div>
<div v-else> <div v-else>
<div class="bg-gradient-to-r from-gray-100 to-gray-50 flex flex-col rounded-md text-center p-2"> <!-- <div class="bg-gradient-to-r from-gray-100 to-gray-50 flex flex-col rounded-md text-center p-2">-->
<div class="p-10 text-center"> <!-- <div class="p-10 text-center">-->
<div> <!-- <div>-->
<v-icon <!-- <v-icon-->
icon="mdi-google-classroom" <!-- icon="mdi-google-classroom"-->
size="72px" <!-- size="72px"-->
class="font-extrabold text-transparent bg-clip-text bg-gradient-to-br from-ch-primary to-ch-primary-light" <!-- class="font-extrabold text-transparent bg-clip-text bg-gradient-to-br from-ch-primary to-ch-primary-light"-->
/> <!-- />-->
</div> <!-- </div>-->
<div class="mt-2 font-bold"> <!-- <div class="mt-2 font-bold">-->
{{ $t("You don't have any session yet.") }} <!-- {{ $t("You don't have any session yet.") }}-->
</div> <!-- </div>-->
<div> <!-- <div>-->
{{ $t('Go to "Explore" to find a topic of interest, or wait for someone to subscribe you.') }} <!-- {{ $t('Go to "Explore" to find a topic of interest, or wait for someone to subscribe you.') }}-->
</div> <!-- </div>-->
</div> <!-- </div>-->
</div> <!-- </div>-->
</div> </div>
</template> </template>

@ -6,7 +6,6 @@ declare(strict_types=1);
namespace Chamilo\CoreBundle\Form; namespace Chamilo\CoreBundle\Form;
use Chamilo\CoreBundle\Entity\ExtraFieldValues;
use Chamilo\CoreBundle\Entity\User; use Chamilo\CoreBundle\Entity\User;
use Chamilo\CoreBundle\Form\Type\IllustrationType; use Chamilo\CoreBundle\Form\Type\IllustrationType;
use Chamilo\CoreBundle\Repository\LanguageRepository; use Chamilo\CoreBundle\Repository\LanguageRepository;
@ -73,24 +72,6 @@ class ProfileType extends AbstractType
['label' => 'Picture', 'required' => false, 'mapped' => false] ['label' => 'Picture', 'required' => false, 'mapped' => false]
) )
//->add('website', UrlType::class, ['label' => 'Website', 'required' => 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]); $builder->add('extra_fields', ExtraFieldType::class, ['mapped' => false]);

Loading…
Cancel
Save