Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 73a44a011d | |||
| 57299b841e | |||
| fb11613b7c | |||
| e13ef32197 | |||
| e70c1c7f5e | |||
| 0c9c4f0fc2 |
@@ -19,7 +19,6 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block javascripts %}
|
||||
{{ parent() }}
|
||||
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDYV8IJGtIoWLfXJQQvIuDQ88n2aEuRgpg&libraries=places"></script>
|
||||
{% javascripts
|
||||
'@vendors'
|
||||
|
||||
@@ -28,7 +28,9 @@ class TalentProfileType extends AbstractType
|
||||
$user = $options['data'];
|
||||
$user->getCompany()->init();
|
||||
$birthday = $options['data']->getBirthday();
|
||||
$options['data']->setBirthday($birthday->format('d/m/Y'));
|
||||
if(!empty($birthday)){
|
||||
$options['data']->setBirthday($birthday->format('d/m/Y'));
|
||||
}
|
||||
$builder
|
||||
->add('firstname', null, array(
|
||||
'label' => 'Prénom',
|
||||
|
||||
@@ -134,9 +134,9 @@ class MediaManager
|
||||
$thumbnails = array();
|
||||
//PUSH VIDEO TO Vimeo
|
||||
if ($this->env == "dev") {
|
||||
$uriVimeo = "/videos/215657518";
|
||||
$uriVimeo = "/videos/217844541";
|
||||
$nameVimeo = "name";
|
||||
$linkVimeo = "/videos/215657518";
|
||||
$linkVimeo = "/videos/217844541";
|
||||
} else {
|
||||
$urlToPull = $this->mediaVideoUrl . $fileName;
|
||||
$response = $this->vimeo->request('/me/videos', array('type' => 'pull', 'link' => $urlToPull), 'POST');
|
||||
|
||||
@@ -16098,7 +16098,8 @@ span.titleVideo {
|
||||
.dashboardCompanyWrapper .profil-picture .responsive-img {
|
||||
object-fit: cover;
|
||||
width: auto;
|
||||
height: auto; }
|
||||
height: auto;
|
||||
max-height: 100%; }
|
||||
|
||||
#ad_show .profil-picture .responsive-img, #company_show .profil-picture .responsive-img {
|
||||
object-fit: cover;
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -34,30 +34,34 @@ if ($("#dropzone-row").length) {
|
||||
$('.meter').show();
|
||||
});
|
||||
self.on("success", function (file, response) {
|
||||
$(window).unbind("beforeunload");
|
||||
if (response.success == 200) {
|
||||
$('#preview_video').html('<div class="green center-align" style="border-radius:10px;padding:20px;color:#FFF;">Votre vidéo a été bien enregistrée.</div>')
|
||||
//CAS VIDEO NON ATTACHEE
|
||||
if ($("#form_media").length) {
|
||||
$("#form_media .id_media").attr('value', response.mediaId);
|
||||
$("#form_media #submit").removeClass('hide').fadeIn();
|
||||
if ($("#form_media #submit").hasClass('disabled')) {
|
||||
$("#form_media #submit").removeClass('disabled');
|
||||
$("#form_media #submit").addClass('pulse');
|
||||
}
|
||||
}
|
||||
//CAS VIDEO REPONSE CANDIDATURE
|
||||
if($('#validFormVideo').length){
|
||||
form['contact_talent_video'] = 1;
|
||||
if ($("#form_media #submit").hasClass('disabled')) {
|
||||
if( form['contact_talent_status'] == 1){
|
||||
$("#validFormVideo .btn").removeClass('disabled');
|
||||
if($('.dashboardCompanyWrapper').length == 0){
|
||||
location.reload();
|
||||
} else {
|
||||
if (response.success == 200) {
|
||||
$('#preview_video').html('<div class="green center-align" style="border-radius:10px;padding:20px;color:#FFF;">Votre vidéo a été bien enregistrée.</div>')
|
||||
//CAS VIDEO NON ATTACHEE
|
||||
if ($("#form_media").length) {
|
||||
$("#form_media .id_media").attr('value', response.mediaId);
|
||||
$("#form_media #submit").removeClass('hide').fadeIn();
|
||||
if ($("#form_media #submit").hasClass('disabled')) {
|
||||
$("#form_media #submit").removeClass('disabled');
|
||||
$("#form_media #submit").addClass('pulse');
|
||||
}
|
||||
}
|
||||
//CAS VIDEO REPONSE CANDIDATURE
|
||||
if($('#validFormVideo').length){
|
||||
form['contact_talent_video'] = 1;
|
||||
if ($("#form_media #submit").hasClass('disabled')) {
|
||||
if( form['contact_talent_status'] == 1){
|
||||
$("#validFormVideo .btn").removeClass('disabled');
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$('#preview_video').html('<div class="red" style="margin:0 0 0 20px;padding:20px;color:#FFF;">Une erreur est survenue,<br /> veuillez réessayer, si le problème persiste merci de contacter talentstube.</div>')
|
||||
}
|
||||
} else {
|
||||
$('#preview_video').html('<div class="red" style="margin:0 0 0 20px;padding:20px;color:#FFF;">Une erreur est survenue,<br /> veuillez réessayer, si le problème persiste merci de contacter talentstube.</div>')
|
||||
}
|
||||
$(window).unbind("beforeunload");
|
||||
});
|
||||
self.on("totaluploadprogress", function (progress) {
|
||||
$('.determinate').width(progress + '%');
|
||||
|
||||
@@ -107,6 +107,7 @@
|
||||
object-fit: cover;
|
||||
width: auto;
|
||||
height: auto;
|
||||
max-height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user