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">
<router-link :to="{ name: 'CourseHome', params: {id: course._id, course: course}, query: { sid: sessionId } }">
<span v-if="session">
[ {{ session.name }} ]
{{ session.name }} -
</span>
{{ course.title }}
</router-link>

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

@ -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]);

Loading…
Cancel
Save