Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 4675 | Rev 5078 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 4675 Rev 5070
Línea 40... Línea 40...
40
$hobbiesAndInterestsOptions = json_encode($hobbies_and_interests);
40
$hobbiesAndInterestsOptions = json_encode($hobbies_and_interests);
Línea 41... Línea 41...
41
 
41
 
42
$googleMapPlacesUrl = 'https://maps.googleapis.com/maps/api/js?key=' . $google_map_key . '&libraries=places';
42
$googleMapPlacesUrl = 'https://maps.googleapis.com/maps/api/js?key=' . $google_map_key . '&libraries=places';
Línea 43... Línea -...
43
$error_msg = "Por favor seleccione una ubicación real";
-
 
44
 
-
 
45
 
43
$error_msg = "Por favor seleccione una ubicación real";
46
 
-
 
47
$js = <<<JS
-
 
48
 
44
 
49
 
45
$js = <<<JS
Línea 50... Línea 46...
50
// autoComplete place
46
// autoComplete place
51
let autoComplete;
47
let autoComplete;
Línea 71... Línea 67...
71
    updateQuery(query);
67
    updateQuery(query);
72
    setAddresObject({...addressObject, address_components:[...addressObject.address_components, {latitude: addressObject.geometry.location.lat(),longitude: addressObject.geometry.location.lng(), types:["geometry"]}]});
68
    setAddresObject({...addressObject, address_components:[...addressObject.address_components, {latitude: addressObject.geometry.location.lat(),longitude: addressObject.geometry.location.lng(), types:["geometry"]}]});
73
  }else{
69
  }else{
74
    setError("$error_msg");
70
    setError("$error_msg");
75
  }
71
  }
76
}
-
 
Línea 77... Línea 72...
77
 
72
 
78
const skillsArray = Object.entries($userSkills).map(([key, value]) => ({ value: key, name: value }))
73
const skillsArray = Object.entries($userSkills).map(([key, value]) => ({ value: key, name: value }))
79
const skillsOptions = Object.entries($skillsOptions).map(([key, value]) => ({ value: key, name: value }))
74
const skillsOptions = Object.entries($skillsOptions).map(([key, value]) => ({ value: key, name: value }))
80
const languagesArray = Object.entries($userLanguages).map(([key, value]) => ({ value: key, name: value }))
75
const languagesArray = Object.entries($userLanguages).map(([key, value]) => ({ value: key, name: value }))
Línea 107... Línea 102...
107
  imageSizeCover: "$image_size_cover",
102
  imageSizeCover: "$image_size_cover",
108
  imageProfileCover: "$image_size_profile",
103
  imageProfileCover: "$image_size_profile",
109
  companySizesOptions: JSON.parse('$companySizesOptions'),
104
  companySizesOptions: JSON.parse('$companySizesOptions'),
110
  degreesOptions: JSON.parse('$degreesOptions'),
105
  degreesOptions: JSON.parse('$degreesOptions'),
111
  industriesOptions: JSON.parse('$industriesOptions'),
106
  industriesOptions: JSON.parse('$industriesOptions'),
112
  // industriesOptions: [],
-
 
113
  newIndustrisOptions: JSON.parse('$industriesOptions'),
107
  newIndustrisOptions: JSON.parse('$industriesOptions'),
114
  languagesOptions: languagesOptions,
108
  languagesOptions: languagesOptions,
115
  skillsOptions: skillsOptions,
109
  skillsOptions: skillsOptions,
116
  aptitudesOptions: aptitudesOptions,
110
  aptitudesOptions: aptitudesOptions,
117
  hobbiesAndInterestsOptions: hobbiesAndInterestsOptions,
111
  hobbiesAndInterestsOptions: hobbiesAndInterestsOptions,
118
}
112
}
Línea -... Línea 113...
-
 
113
 
-
 
114
const LABELS = {
-
 
115
  HOBBIES_AND_INTERESTS: LABEL_HOBBIES_AND_INTERESTS, 
-
 
116
  DATATABLE_EMPTY: LABEL_DATATABLE_EMPTY,
-
 
117
}
119
 
118
 
120
JS;
119
JS;
121
$this->inlineScript()->appendScript($js);
120
$this->inlineScript()->appendScript($js);
122
if ($currentNetwork->theme_id == Theme::THEME_LEADERSLINKED_LINKEDIN) {
121
if ($currentNetwork->theme_id == Theme::THEME_LEADERSLINKED_LINKEDIN) {
123
  $this->headLink()->appendStylesheet('/react-bundles/profile/edit/main.css');
122
  $this->headLink()->appendStylesheet('/react-bundles/profile/edit/main.css');