Rev 15182 | Rev 15229 | Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
<?php
use LeadersLinked\Model\UserExperience;
$acl = $this->viewModel()
->getRoot()
->getVariable('acl');
$currentUserHelper = $this->currentUserHelper();
$currentUser = $currentUserHelper->getUser();
$currentCompany = $currentUserHelper->getCompany();
$companyId = $currentCompany->uuid;
$roleName = $currentUserHelper->getUserTypeId();
$routeWebsite = $this->url('profile/website', ['id' => $currentCompany->uuid]);
$routeCompanySize = $this->url('profile/company-size', ['id' => $currentCompany->uuid]);
$routeIndustry = $this->url('profile/industry', ['id' => $currentCompany->uuid]);
$routeExtended = $this->url('profile/extended', ['id' => $currentCompany->uuid]);
$routeSocialNetworks = $this->url('profile/social-network', ['id' => $currentCompany->uuid]);
$routeLocationAdd = $this->url('profile/location', ['id' => $currentCompany->uuid, 'operation' => 'add']);
$routeFoundationYear = $this->url('profile/foundation_year', ['id' => $currentCompany->uuid, 'operation' => 'add']);
$routeImageUpload = $this->url('profile/image', ['id' => $currentCompany->uuid, 'operation' => 'upload']);
$routeCoverUpload = $this->url('profile/cover', ['id' => $currentCompany->uuid, 'operation' => 'upload']);
$routeFooterUpload = $this->url('profile/footer', ['id' => $currentCompany->uuid, 'operation' => 'upload']);
$routeHeaderUpload = $this->url('profile/header', ['id' => $currentCompany->uuid, 'operation' => 'upload']);
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap4-toggle/css/bootstrap4-toggle.min.css'));
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap4-toggle/js/bootstrap4-toggle.min.js'));
$this->inlineScript()->appendFile($this->basePath('plugins/select2/js/select2.js'));
$this->headLink()->appendStylesheet($this->basePath('plugins/select2/css/select2.css'));
$this->headLink()->appendStylesheet($this->basePath('plugins/select2-bootstrap4-theme/select2-bootstrap4.css'));
$jsonLocations = json_encode($locations);
$js = <<<JS
const urlVars = {
routeWebsite: "$routeWebsite",
routeCompanySize: "$routeCompanySize",
routeIndustry: "$routeIndustry",
routeExtended: "$routeExtended",
routeSocialNetworks: "$routeSocialNetworks",
routeLocationAdd: "$routeLocationAdd",
routeFoundationYear: "$routeFoundationYear",
routeImageUpload: "$routeImageUpload",
routeCoverUpload: "$routeCoverUpload",
routeFooterUpload: "$routeFooterUpload",
routeHeaderUpload: "$routeHeaderUpload",
cover: "$cover",
companyId: "$companyId",
followers: "$follower",
image: "$image",
overview: "$overview",
locations: JSON.parse('$jsonLocations'),
industry: "$industry",
companySize: "$company_size",
companyName: "$company_name",
foundationYear: "$foundation_year",
website: "$website",
header: "$header",
footer: "$footer",
googleApiKey: '$google_map_key'
}
const LABELS = {
'PROFILE' : 'LABEL_PROFILE',
'OVERVIEW' : 'LABEL_OVERVIEW',
'LOCATION' : 'LABEL_LOCATION',
'INDUSTRY' : 'LABEL_INDUSTRY',
'WEBSITE' : 'LABEL_WEBSITE',
'HEADER_PDF' : 'LABEL_HEADER_PDF',
'TEXT_HEADER_PDF' : 'LABEL_TEXT_HEADER_PDF',
'FOOTER_PDF' : 'LABEL_FOOTER_PDF',
'TEXT_FOOTER_PDF' : 'LABEL_TEXT_FOOTER_PDF',
'COMPANY_SIZES' : 'LABEL_COMPANY_SIZES',
'FOUNDATION_YEAR' : 'LABEL_FOUNDATION_YEAR',
'SEND' : 'LABEL_SEND',
'CANCEL' : 'LABEL_CANCEL',
}
JS;
$this->inlineScript()->appendScript($js);
$this->inlineScript()->appendFile('/react-bundles/profile/profileBundle.js');
?>
<style>
.user-profile-ov {
position: relative;
}
.user-profile-ov .add-dp {
position: absolute;
top: 30%;
right: 10%;
}
.user-profile-ov .add-dp i {
font-size: 14px;
border: 2px solid #fff;
background: #e44d3a;
padding: 11px;
color: #ffff
}
</style>
<!-- Content Header (Page header) -->
<div id="profile">
</div>