

<?php echo $this->partial('Layout/nav'); ?>


<div class="container">
	<div class="container-page-wrapper shodowed bordered">
		<div class="container-page-container">
			<div class="row">
				<div class="col-lg-6">
					<h1><?php echo $this->actionTitle; ?></h1>
				</div>
				<div class="col-lg-6 clearfix">
					<div class="float-right">

					</div>
				</div>
			</div>
			<hr>

			


			<?php if (is_array($this->view->userData)): ?>
				<form id="user-form-edit">
					<input type="hidden" name="data[user_id][value]" value="<?php echo $this->view->userId; ?>">
					<input type="hidden" name="data[user_id][required]" value="0">
					<div class="form-row">
						<div class="form-group col-lg-12">
							<h4 class="text-center"><?php echo _('Account information'); ?></h4>
							<hr>
						</div>
						<div class="form-group col-lg-12">
							<label class="label-main" for="profile_username"><?php echo _('Username'); ?></label>
							<input type="text" class="form-control field-username" value="<?php echo isset($this->view->userData['username']) ? $this->view->userData['username'] : ''; ?>" id="profile_username" name="data[username][value]">

							<input type="hidden" name="data[username][required]" value="1">
							<input type="hidden" name="data[username][type]" value="text">
							<input type="hidden" name="data[username][class]" value="field-username">
							<input type="hidden" name="data[username][label]" value="<?php echo _('Username'); ?>">
						</div>

						<div class="form-group col-lg-6">
							<label class="label-main" for="profile_passwd1"><?php echo _('Password'); ?></label>
							<input type="password" class="form-control field-passwd1" value="" id="profile_passwd1" name="data[profile_passwd1][value]">
							<small class="form-text text-muted"><?php echo _('Provide a new password to change the current one.'); ?></small>

							<input type="hidden" name="data[profile_passwd1][required]" value="0">
							<input type="hidden" name="data[profile_passwd1][type]" value="password1">
							<input type="hidden" name="data[profile_passwd1][class]" value="field-passwd1">
							<input type="hidden" name="data[profile_passwd1][label]" value="<?php echo _('Password'); ?>">
						</div>

						<div class="form-group col-lg-6">
							<label class="label-main" for="profile_passwd2"><?php echo _('Confirm password'); ?></label>
							<input type="password" class="form-control field-passwd2" value="" id="profile_passwd2" name="data[profile_passwd2][value]">

							<input type="hidden" name="data[profile_passwd2][required]" value="0">
							<input type="hidden" name="data[profile_passwd2][type]" value="password2">
							<input type="hidden" name="data[profile_passwd2][class]" value="field-passwd2">
							<input type="hidden" name="data[profile_passwd2][label]" value="<?php echo _('Confirm password'); ?>">
						</div>

						<div class="form-group col-lg-6">
							<label class="label-main" for="profile_default_lang"><?php echo _('First language'); ?></label>
							<select class="form-control" id="profile_default_lang" name="data[default_lang][value]">
								<?php foreach($this->view->supportedLanguages as $language): ?>
									<option <?php echo isset($language['selected']) && $language['selected'] ? 'selected' : ''; ?> value="<?php echo $language['lang_code']; ?>"><?php echo $language['name_string']; ?></option>
								<?php endforeach; ?>
							</select>
						</div>

						<div class="form-group col-lg-6">
							<label class="label-main"><?php echo _('Alternative languages'); ?></label>
							<div>
								<?php foreach($this->view->userAltLanguages as $index => $language): ?>
										<div class="form-check form-check-inline">
											<input class="form-check-input" type="checkbox" id="alt-lang-<?php echo $index; ?>" value="<?php echo $language['id']; ?>" <?php echo isset($language['checked']) && $language['checked'] ? 'checked' : ''; ?> name="data[alt_langs][value][<?php echo $language['id']; ?>]">
											<label class="form-check-label" for="alt-lang-<?php echo $index; ?>"><?php echo $language['name_string']; ?></label>
										</div>
								<?php endforeach; ?>
							</div>
						</div>

						<div class="form-group col-lg-6">
							<label class="label-main" for="profile_puremarks"><?php echo vsprintf(_('(Public) Remarks (Max. %s char.)'), $this->config['settings']['public-remarks-size']); ?></label>
							<textarea rows="4" class="form-control field-puremarks" id="profile_puremarks" name="data[public_remarks][value]"><?php echo isset($this->view->userData['remarks_public']) ? $this->view->userData['remarks_public'] : ''; ?></textarea>

							<input type="hidden" name="data[public_remarks][required]" value="0">
							<input type="hidden" name="data[public_remarks][type]" value="text">
							<input type="hidden" name="data[public_remarks][class]" value="ield-puremarks">
							<input type="hidden" name="data[public_remarks][label]" value="<?php echo _('(Public) Remarks'); ?>">
						</div>

						<div class="form-group col-lg-6">
							<label class="label-main" for="field-prremarks"><?php echo _('(Private) Remarks'); ?></label>
							<textarea rows="4" class="form-control field-remarks" id="field-prremarks" name="data[private_remarks][value]"><?php echo isset($this->view->userData['remarks_private']) ? $this->view->userData['remarks_private'] : ''; ?></textarea>

							<input type="hidden" name="data[private_remarks][required]" value="0">
							<input type="hidden" name="data[private_remarks][type]" value="text">
							<input type="hidden" name="data[private_remarks][class]" value="field-remarks">
							<input type="hidden" name="data[private_remarks][label]" value="<?php echo _('(Private) Remarks'); ?>">
						</div>

						<div class="form-group col-lg-6">
							<label class="label-main"><?php echo _('Status'); ?></label>
							<input type="hidden" name="data[status][value]" value="0">

							<div class="clearfix">
								<div class="form-check form-check-inline">
									<input <?php echo $this->view->isSelf ? 'disabled' : ''; ?> class="form-check-input" type="radio" id="user-status-1" value="1" <?php echo !isset($this->view->userData['status']) || (isset($this->view->userData['status']) && (int)$this->view->userData['status'] == 1) ? 'checked' : ''; ?> name="data[status][value]">
									<label class="form-check-label" for="user-status"><?php echo _('Active'); ?></label>
								</div>
								<div class="form-check form-check-inline">
									<input <?php echo $this->view->isSelf ? 'disabled' : ''; ?> class="form-check-input" type="radio" id="user-status-0" value="0" <?php echo isset($this->view->userData['status']) && (int)$this->view->userData['status'] == 0 ? 'checked' : ''; ?> name="data[status][value]">
									<label class="form-check-label" for="user-status"><?php echo _('Not active'); ?></label>
								</div>
								<div class="form-check form-check-inline">
									<input <?php echo $this->view->isSelf ? 'disabled' : ''; ?> class="form-check-input" type="radio" id="user-status-2" value="2" <?php echo isset($this->view->userData['status']) && (int)$this->view->userData['status'] == 2 ? 'checked' : ''; ?> name="data[status][value]">
									<label class="form-check-label" for="user-status"><?php echo STATUS_TECH_NAME; ?></label>
								</div>
							</div>
						</div>

						<div class="form-group col-lg-12">
							<hr>
							<h4 class="text-center"><?php echo _('Personal information'); ?></h4>
							<hr>
						</div>

						<div class="form-group col-lg-6">
							<label class="label-main" for="profile_name"><?php echo _('Name'); ?></label>
							<input type="text" class="form-control field-name" value="<?php echo isset($this->view->userData['name']) ? $this->view->userData['name'] : ''; ?>" id="profile_name" name="data[name][value]">

							<input type="hidden" name="data[name][required]" value="1">
							<input type="hidden" name="data[name][type]" value="text">
							<input type="hidden" name="data[name][class]" value="field-name">
							<input type="hidden" name="data[name][label]" value="<?php echo _('Name'); ?>">
						</div>

						<div class="form-group col-lg-6">
							<label class="label-main" for="profile_surname"><?php echo _('Surname'); ?></label>
							<input type="text" class="form-control field-surname" value="<?php echo isset($this->view->userData['surname']) ? $this->view->userData['surname'] : ''; ?>" id="profile_surname" name="data[surname][value]">

							<input type="hidden" name="data[surname][required]" value="1">
							<input type="hidden" name="data[surname][type]" value="text">
							<input type="hidden" name="data[surname][class]" value="field-surname">
							<input type="hidden" name="data[surname][label]" value="<?php echo _('Surname'); ?>">
						</div>

						<div class="form-group col-md-6 mb-3">
							<label class="label-main" for="user_country"><?php echo _('Country'); ?></label>

							<select class="form-control field-country chosen-select" name="data[country][value]" id="user_country">
								<option value="0">...</option>
								<?php if(is_array($this->view->countries)): ?>
									<?php foreach($this->view->countries as $country): ?>
										<option value="<?php echo $country['country_iso2_code']; ?>" <?php echo (isset($this->view->userData['country_code']) && ($this->view->userData['country_code'] == $country['country_iso2_code'])) ? 'selected' : ''; ?>><?php echo $country['country_name']; ?></option>
									<?php endforeach; ?>
								<?php endif; ?>
							</select>

							<input type="hidden" name="data[country][required]" value="1">
							<input type="hidden" name="data[country][type]" value="text">
							<input type="hidden" name="data[country][class]" value="field-country">
							<input type="hidden" name="data[country][label]" value="<?php echo _('Country'); ?>">
						</div>

						<div class="form-group col-md-1 mb-3 text-center">
							<!--<div class="edit-avatar" id="edit-user-avatar" style="background-image: url(<?php echo $this->view->userAvatar, '?t=', time(); ?>);"></div>-->

							<?php
								echo $this->helper->setAvatarView($this->view->userAvatarImage, ['class'=>'edit-avatar', 'cssId'=>'edit-user-avatar']);
								?>
						</div>

						<div class="form-group col-md-5 mb-3">
							<?php echo $this->partial('User/avatar'); ?>
						</div>

						<?php  /*
						<div class="form-group col-lg-6">
							<label class="label-main" for="profile_fiscal_code"><?php echo _('Fiscal code'); ?></label>
							<input type="text" class="form-control field-fiscal-code" value="<?php echo isset($this->view->userData['fiscal_code']) ? $this->view->userData['fiscal_code'] : ''; ?>" id="profile_fiscal_code" name="data[fiscal_code][value]">

							<input type="hidden" name="data[fiscal_code][required]" value="0">
							<input type="hidden" name="data[fiscal_code][type]" value="text">
							<input type="hidden" name="data[fiscal_code][class]" value="field-fiscal-code">
							<input type="hidden" name="data[fiscal_code][label]" value="<?php echo _('Fiscal code'); ?>">
						</div>

						<div class="form-group col-lg-6">
							<label class="label-main" for="profile_birth_date"><?php echo _('Birth date'); ?></label>
							<input type="date" class="form-control field-birth-date" value="<?php echo isset($this->view->userData['birth_date']) ? $this->view->userData['birth_date'] : ''; ?>" id="profile_birth_date" name="data[birth_date][value]">

							<input type="hidden" name="data[birth_date][required]" value="0">
							<input type="hidden" name="data[birth_date][type]" value="text">
							<input type="hidden" name="data[birth_date][class]" value="field-birth-date">
							<input type="hidden" name="data[birth_date][label]" value="<?php echo _('Birth date'); ?>">
						</div>

						<div class="form-group col-lg-6">
							<label class="label-main" for="profile_city_birth"><?php echo _('City birth'); ?></label>
							<input type="text" class="form-control field-city-birth" value="<?php echo isset($this->view->userData['city_birth']) ? $this->view->userData['city_birth'] : ''; ?>" id="profile_city_birth" name="data[city_birth][value]">

							<input type="hidden" name="data[city_birth][required]" value="0">
							<input type="hidden" name="data[city_birth][type]" value="text">
							<input type="hidden" name="data[city_birth][class]" value="field-city-birth">
							<input type="hidden" name="data[city_birth][label]" value="<?php echo _('City birth'); ?>">
						</div>

						<div class="form-group col-lg-6">
							<label class="label-main" for="profile_province_birth"><?php echo _('Province birth'); ?></label>
							<input type="text" class="form-control field-province-birth" value="<?php echo isset($this->view->userData['province_birth']) ? $this->view->userData['province_birth'] : ''; ?>" id="profile_province_birth" name="data[province_birth][value]">

							<input type="hidden" name="data[province_birth][required]" value="0">
							<input type="hidden" name="data[province_birth][type]" value="text">
							<input type="hidden" name="data[province_birth][class]" value="field-province-birth">
							<input type="hidden" name="data[province_birth][label]" value="<?php echo _('Province birth'); ?>">
						</div>

						<div class="form-group col-lg-12" style="border-bottom: 1px solid #888888; border-top: 1px solid #888888; padding-top:10px">
							<label><?php echo _('Residence info'); ?></label>
						</div>

						<div class="form-group col-lg-6">
							<label class="label-main" for="profile_residence_province"><?php echo _('Province residence'); ?></label>
							<input type="text" class="form-control field-residence-province" value="<?php echo isset($this->view->userData['residence_province']) ? $this->view->userData['residence_province'] : ''; ?>" id="profile_residence_province" name="data[residence_province][value]">

							<input type="hidden" name="data[residence_province][required]" value="0">
							<input type="hidden" name="data[residence_province][type]" value="text">
							<input type="hidden" name="data[residence_province][class]" value="field-residence-province">
							<input type="hidden" name="data[residence_province][label]" value="<?php echo _('Province residence'); ?>">
						</div>

						<div class="form-group col-lg-6">
							<label class="label-main" for="profile_residence_city"><?php echo _('City residence'); ?></label>
							<input type="text" class="form-control field-residence-city" value="<?php echo isset($this->view->userData['residence_city']) ? $this->view->userData['residence_city'] : ''; ?>" id="profile_residence_city" name="data[residence_city][value]">

							<input type="hidden" name="data[residence_city][required]" value="0">
							<input type="hidden" name="data[residence_city][type]" value="text">
							<input type="hidden" name="data[residence_city][class]" value="field-residence-city">
							<input type="hidden" name="data[residence_city][label]" value="<?php echo _('City residence'); ?>">
						</div>

						<div class="form-group col-lg-6">
							<label class="label-main" for="profile_residence_address"><?php echo _('Address residence'); ?></label>
							<input type="text" class="form-control field-residence-address" value="<?php echo isset($this->view->userData['residence_address']) ? $this->view->userData['residence_address'] : ''; ?>" id="profile_residence_address" name="data[residence_address][value]">

							<input type="hidden" name="data[residence_address][required]" value="0">
							<input type="hidden" name="data[residence_address][type]" value="text">
							<input type="hidden" name="data[residence_address][class]" value="field-residence-address">
							<input type="hidden" name="data[residence_address][label]" value="<?php echo _('Address residence'); ?>">
						</div>

						<div class="form-group col-lg-12" style="border-bottom: 1px solid #888888; border-top: 1px solid #888888; padding-top:10px">
							<label><?php echo _('Domicile info'); ?></label>
						</div>

						<div class="form-group col-lg-6">
							<label class="label-main" for="profile_domicile_province"><?php echo _('Province domicile'); ?></label>
							<input type="text" class="form-control field-domicile-province" value="<?php echo isset($this->view->userData['domicile_province']) ? $this->view->userData['domicile_province'] : ''; ?>" id="profile_domicile_province" name="data[domicile_province][value]">

							<input type="hidden" name="data[domicile_province][required]" value="0">
							<input type="hidden" name="data[domicile_province][type]" value="text">
							<input type="hidden" name="data[domicile_province][class]" value="field-domicile-province">
							<input type="hidden" name="data[domicile_province][label]" value="<?php echo _('Province domicile'); ?>">
						</div>

						<div class="form-group col-lg-6">
							<label class="label-main" for="profile_domicile_city"><?php echo _('City domicile'); ?></label>
							<input type="text" class="form-control field-domicile-city" value="<?php echo isset($this->view->userData['domicile_city']) ? $this->view->userData['domicile_city'] : ''; ?>" id="profile_domicile_city" name="data[domicile_city][value]">

							<input type="hidden" name="data[domicile_city][required]" value="0">
							<input type="hidden" name="data[domicile_city][type]" value="text">
							<input type="hidden" name="data[domicile_city][class]" value="field-domicile-city">
							<input type="hidden" name="data[domicile_city][label]" value="<?php echo _('City domicile'); ?>">
						</div>

						<div class="form-group col-lg-6">
							<label class="label-main" for="profile_domicile_address"><?php echo _('Address domicile'); ?></label>
							<input type="text" class="form-control field-domicile-address" value="<?php echo isset($this->view->userData['domicile_address']) ? $this->view->userData['domicile_address'] : ''; ?>" id="profile_domicile_address" name="data[domicile_address][value]">

							<input type="hidden" name="data[domicile_address][required]" value="0">
							<input type="hidden" name="data[domicile_address][type]" value="text">
							<input type="hidden" name="data[domicile_address][class]" value="field-domicile-address">
							<input type="hidden" name="data[domicile_address][label]" value="<?php echo _('Address domicile'); ?>">
						</div>

						*/ ?>


						<div class="form-group col-lg-12">
							<hr>
							<h4 class="text-center"><?php echo _('Role details'); ?></h4>
							<hr>
						</div>

						<!-- <div class="form-group col-md-6 mb-3">
							<label class="label-main"><?php echo _('Roles'); ?></label>
							<div>
								<?php foreach($this->view->roles as $index => $roleItem): ?>
										<div class="form-check form-check-inline">
											<input class="form-check-input" type="checkbox" id="alt-role-<?php echo $index; ?>" value="<?php echo $roleItem['id']; ?>" <?php echo isset($roleItem['checked']) && $roleItem['checked'] ? 'checked' : ''; ?> name="data[role][value][<?php echo $roleItem['id']; ?>]">
											<label class="form-check-label" for="alt-role-<?php echo $index; ?>"><?php echo $roleItem['name']; ?></label>
										</div>
								<?php endforeach; ?>
							</div>
						</div> -->

						<div class="form-group col-md-6 mb-3">
							<label class="label-main"><?php echo _('Roles'); ?></label>
							<div>
								<?php /*if($this->config['settings']['free'] == 0){ ?>
								<div class="form-check form-check-inline" data-toggle="tooltip" data-placement="top" title="<?php echo _('Free')." ".($this->view->getMaxAddAdmins-$this->view->getTotAdmins); ?>">
									<input class="form-check-input" type="checkbox" id="alt-role-0" value="2" name="data[role][value][2]" <?php echo ($this->view->getUserHasRoles[2]) && $this->view->getUserHasRoles[2] ? "checked" : (($this->view->getMaxAddAdmins-$this->view->getTotAdmins) > 0 ? "" : "disabled"); ?> >
									<label class="form-check-label" for="alt-role-0"><?php echo _('Administrator'); ?></label>
								</div>
								<div class="form-check form-check-inline" data-toggle="tooltip" data-placement="top" title="<?php echo _('Free')." ".($this->view->getMaxAddModerators-$this->view->getTotModerators); ?>">
									<input class="form-check-input" type="checkbox" id="alt-role-1" value="3" name="data[role][value][3]" <?php echo ($this->view->getUserHasRoles[3] ) && $this->view->getUserHasRoles[3] ? "checked" : ( ($this->view->getMaxAddModerators-$this->view->getTotModerators)  > 0 ? "" : "disabled"); ?> >
									<label class="form-check-label" for="alt-role-1"><?php echo _('Moderator'); ?></label>
								</div>
								<div class="form-check form-check-inline" data-toggle="tooltip" data-placement="top" title="<?php echo _('Free')." ".($this->view->getMaxAddResponders-$this->view->getTotResponders); ?>">
									<input class="form-check-input" type="checkbox" id="alt-role-3" value="4" name="data[role][value][4]" <?php echo ($this->view->getUserHasRoles[4] ) && $this->view->getUserHasRoles[4] ? "checked" : ( ($this->view->getMaxAddResponders-$this->view->getTotResponders)  > 0 ? "" : "disabled"); ?> >
									<label class="form-check-label" for="alt-role-3"><?php echo _('Responder'); ?></label>
								</div>
								<div class="form-check form-check-inline" data-toggle="tooltip" data-placement="top" title="<?php echo _('Free')." ".($this->view->getMaxAddRequesters-$this->view->getTotRequesters); ?>">
									<input class="form-check-input" type="checkbox" id="alt-role-4" value="5" name="data[role][value][5]" <?php echo ($this->view->getUserHasRoles[5] ) && $this->view->getUserHasRoles[5] ? "checked" : (($this->view->getMaxAddRequesters-$this->view->getTotRequesters) > 0 ? "" : "disabled"); ?> >
									<label class="form-check-label" for="alt-role-4"><?php echo _('Requester'); ?></label>
								</div>
								<div class="form-check form-check-inline" data-toggle="tooltip" data-placement="top" title="<?php echo _('Free')." ".($this->view->getMaxAddGuests-$this->view->getTotGuests); ?>">
									<input class="form-check-input" type="checkbox" id="alt-role-2" value="6" name="data[role][value][6]" <?php echo ($this->view->getUserHasRoles[6] ) && $this->view->getUserHasRoles[6] ? "checked" : (($this->view->getMaxAddGuests-$this->view->getTotGuests) > 0 ? "" : "disabled"); ?> >
									<label class="form-check-label" for="alt-role-2"><?php echo _('Guest'); ?></label>
								</div>
								<?php
							}else{*/
								foreach($this->view->roles as $index => $roleItem): ?>
										<div class="form-check form-check-inline">
											<input class="form-check-input" type="checkbox" id="alt-role-<?php echo $index; ?>" value="<?php echo $roleItem['id']; ?>" <?php echo isset($roleItem['checked']) && $roleItem['checked'] ? 'checked' : ''; ?> name="data[role][value][<?php echo $roleItem['id']; ?>]" 
											
											<?php
												if ($this->config['settings']['free'] == 0) {
													switch($roleItem['id']) {
														case MODERATOR_ROLE_ID:
															echo $this->view->getMaxAddModerators-$this->view->getTotModerators <= 0 ? 'disabled' : '';
														break;
														
														case REFERRER_ROLE_ID:
															echo $this->view->getMaxAddResponders-$this->view->getTotResponders <= 0 ? 'disabled' : '';
														break;
														
														case APPLICANT_ROLE_ID:
															echo $this->view->getMaxAddRequesters-$this->view->getTotRequesters <= 0 ? 'disabled' : '';
														break;
														
														case GUEST_ROLE_ID:
															echo $this->view->getMaxAddGuests-$this->view->getTotGuests <= 0 ? 'disabled' : '';
														break;
													}
												}
											?>
											
											>
											<label class="form-check-label" for="alt-role-<?php echo $index; ?>"><?php echo $roleItem['name']; ?></label>
										</div>
								<?php endforeach;
							//}
								?>
							</div>
						</div>

						<div class="form-group col-md-6 mb-3">
							<label class="label-main" for="med_specialties"><?php echo _('Medical specialties (Responder)'); ?></label>

							<select data-placeholder="<?php echo _('Select...'); ?>" class="form-control field-med_specialties chosen-select" multiple="multiple" name="data[med_specialties][value][]" id="med_specialties">
								<?php if(is_array($this->view->medicalSpecialties)): ?>
									<?php foreach($this->view->medicalSpecialties as $specialty): ?>
										<?php
											$selected = isset($this->view->userMedicalSpecialties[$specialty['id']]) ? 'selected' :  '';
										?>
										<option value="<?php echo $specialty['id']; ?>" <?php echo $selected; ?>><?php echo $specialty['description']; ?></option>
									<?php endforeach; ?>
								<?php endif; ?>
							</select>

							<input type="hidden" name="data[med_specialties][required]" value="0">
							<input type="hidden" name="data[med_specialties][type]" value="text">
							<input type="hidden" name="data[med_specialties][class]" value="field-med_specialties">
							<input type="hidden" name="data[med_specialties][label]" value="<?php echo _('Medical specialties'); ?>">
						</div>

						<!-- <div class="form-group col-md-3 mb-3">
							<label class="label-main" for="responder_structure"><?php echo _('Structure (Responder)'); ?></label>

							<select class="form-control" name="data[responder_structure][value][]" id="responder_structure">
								<?php /*if(is_array($this->view->medicalSpecialties)): ?>
									<?php foreach($this->view->medicalSpecialties as $specialty): ?>
										<?php
											$selected = isset($this->view->userMedicalSpecialties[$specialty['id']]) ? 'selected' :  '';
										?>
										<option value="<?php echo $specialty['id']; ?>" <?php echo $selected; ?>><?php echo $specialty['description']; ?></option>
									<?php endforeach; ?>
								<?php endif;*/ ?>
							</select>

							<input type="hidden" name="data[responder_structure][required]" value="0">
							<input type="hidden" name="data[responder_structure][type]" value="text">
							<input type="hidden" name="data[responder_structure][class]" value="field-responder_structure">
							<input type="hidden" name="data[responder_structure][label]" value="<?php echo _('Structure (Responder)'); ?>">
						</div> -->

						<div class="form-group col-md-5">
							<label class="label-main" for="cn_applicant"><?php echo _('Country filter (Requester)'); ?></label>
							<select data-placeholder="<?php echo _('Select...'); ?>" class="form-control field-cn_applicant chosen-select" multiple="multiple" id="cn_applicant" <?php echo ($this->view->getUserHasRoles[5] ) && $this->view->getUserHasRoles[5] ? "" : (($this->view->getMaxAddRequesters-$this->view->getTotRequesters) > 0 ? "" : ""); ?> >
								<?php if(is_array($this->view->clinicalCenterCountries)): ?>
									<?php foreach($this->view->clinicalCenterCountries as $countryCode => $ccCountry): ?>
										<optgroup label="<?php echo $ccCountry['name']; ?>">
											<option value="all|<?php echo $countryCode; ?>"><?php echo vsprintf(_('All in %s'), [$ccCountry['name']]); ?> (<?php echo $ccCountry['count']; ?>)</option>
											<?php if(is_array($ccCountry['list'])): ?>
												<?php foreach($ccCountry['list'] as $ccList): ?>
													<option value="<?php echo $ccList['country_code']; ?>"><?php echo $ccList['country_name']; ?> (<?php echo $ccList['cc_count']; ?>)</option>
												<?php endforeach; ?>
											<?php endif; ?>
										</optgroup>
									<?php endforeach; ?>
								<?php endif; ?>
							</select>
						</div>
						<!--//--><div class="form-group col-md-2 text-center"><button type="button" data-lefthand="cn_applicant" data-righthand="cc_applicant" class="btn btn-outline-info btn-countries-hand" <?php echo ($this->view->getUserHasRoles[5] ) && $this->view->getUserHasRoles[5] ? "" : (($this->view->getMaxAddRequesters-$this->view->getTotRequesters) > 0 ? "" : ""); ?> ><span class="icon-point-right"></span></button></div>
						<div class="form-group col-md-5">
							<label class="label-main" for="cc_applicant"><?php echo _('Clinical Center (Requester)'); ?></label>

							<select data-placeholder="<?php echo _('Select...'); ?>" class="form-control field-cc_applicant chosen-select" multiple="multiple" name="data[cc_applicant][value][]" id="cc_applicant" <?php echo ($this->view->getUserHasRoles[5] ) && $this->view->getUserHasRoles[5] ? "" : (($this->view->getMaxAddRequesters-$this->view->getTotRequesters) > 0 ? "" : ""); ?> >
								<?php if(is_array($this->view->clinicalCenters)): ?>
									<?php foreach($this->view->clinicalCenters as $center): ?>

										<?php
											$clinicalCenterList = isset($this->view->userClinicalCenters[APPLICANT_ROLE_ID]) ? $this->view->userClinicalCenters[APPLICANT_ROLE_ID] : $this->view->userClinicalCenters[0];
											$selected = isset($clinicalCenterList[$center['id']]) ? 'selected' : '';
										?>
										<option value="<?php echo $center['id']; ?>" <?php echo $selected; ?>><?php echo $center['description']; ?></option>
									<?php endforeach; ?>
								<?php endif; ?>
							</select>

							<input type="hidden" name="data[cc_applicant][required]" value="0">
							<input type="hidden" name="data[cc_applicant][type]" value="text">
							<input type="hidden" name="data[cc_applicant][class]" value="field-cc_applicant">
							<input type="hidden" name="data[cc_applicant][label]" value="<?php echo _('Clinical Center (Requester)'); ?>">
						</div>

						<div class="form-group col-md-5">
							<label class="label-main" for="cn_referrer"><?php echo _('Country filter (Responder)'); ?></label>
							<select data-placeholder="<?php echo _('Select...'); ?>" class="form-control field-cn_referrer chosen-select" multiple="multiple" id="cn_referrer" <?php echo ($this->view->getUserHasRoles[4] ) && $this->view->getUserHasRoles[4] ? "" : ( ($this->view->getMaxAddResponders-$this->view->getTotResponders)  > 0 ? "" : ""); ?> >
								<?php if(is_array($this->view->clinicalCenterCountries)): ?>
									<?php foreach($this->view->clinicalCenterCountries as $countryCode => $ccCountry): ?>
										<optgroup label="<?php echo $ccCountry['name']; ?>">
											<option value="all|<?php echo $countryCode; ?>"><?php echo vsprintf(_('All in %s'), [$ccCountry['name']]); ?> (<?php echo $ccCountry['count']; ?>)</option>
											<?php if(is_array($ccCountry['list'])): ?>
												<?php foreach($ccCountry['list'] as $ccList): ?>
													<option value="<?php echo $ccList['country_code']; ?>"><?php echo $ccList['country_name']; ?> (<?php echo $ccList['cc_count']; ?>)</option>
												<?php endforeach; ?>
											<?php endif; ?>
										</optgroup>
									<?php endforeach; ?>
								<?php endif; ?>
							</select>
						</div>
						<!--//--><div class="form-group col-md-2 text-center"><button type="button" data-lefthand="cn_referrer" data-righthand="cc_referrer" class="btn btn-outline-info btn-countries-hand" <?php echo ($this->view->getUserHasRoles[4] ) && $this->view->getUserHasRoles[4] ? "" : ( ($this->view->getMaxAddResponders-$this->view->getTotResponders)  > 0 ? "" : ""); ?> ><span class="icon-point-right"></span></button></div>
						<div class="form-group col-md-5">
							<label class="label-main" for="cc_referrer"><?php echo _('Clinical Center (Responder)'); ?></label>

							<select data-placeholder="<?php echo _('Select...'); ?>" class="form-control field-cc_referrer chosen-select" multiple="multiple" name="data[cc_referrer][value][]" id="cc_referrer" <?php echo ($this->view->getUserHasRoles[4] ) && $this->view->getUserHasRoles[4] ? "" : ( ($this->view->getMaxAddResponders-$this->view->getTotResponders)  > 0 ? "" : ""); ?> >
								<?php if(is_array($this->view->clinicalCenters)): ?>
									<?php foreach($this->view->clinicalCenters as $center): ?>
										<?php
											$clinicalCenterList = isset($this->view->userClinicalCenters[REFERRER_ROLE_ID]) ? $this->view->userClinicalCenters[REFERRER_ROLE_ID] : $this->view->userClinicalCenters[0];
											$selected = isset($clinicalCenterList[$center['id']]) ? 'selected' : '';
										?>
										<option value="<?php echo $center['id']; ?>" <?php echo $selected; ?>><?php echo $center['description']; ?></option>
									<?php endforeach; ?>
								<?php endif; ?>
							</select>

							<input type="hidden" name="data[cc_referrer][required]" value="0">
							<input type="hidden" name="data[cc_referrer][type]" value="text">
							<input type="hidden" name="data[cc_referrer][class]" value="field-cc_referrer">
							<input type="hidden" name="data[cc_referrer][label]" value="<?php echo _('Clinical Center (Responder)'); ?>">
						</div>

						<div class="form-group col-md-5">
							<label class="label-main" for="cn_moderator"><?php echo _('Country filter (Moderator)'); ?></label>
							<select data-placeholder="<?php echo _('Select...'); ?>" class="form-control field-cn_moderator chosen-select" multiple="multiple" id="cn_moderator" <?php echo ($this->view->getUserHasRoles[3] ) && $this->view->getUserHasRoles[3] ? "" : ( ($this->view->getMaxAddModerators-$this->view->getTotModerators)  > 0 ? "" : ""); ?> >
								<?php if(is_array($this->view->clinicalCenterCountries)): ?>
									<?php foreach($this->view->clinicalCenterCountries as $countryCode => $ccCountry): ?>
										<optgroup label="<?php echo $ccCountry['name']; ?>">
											<option value="all|<?php echo $countryCode; ?>"><?php echo vsprintf(_('All in %s'), [$ccCountry['name']]); ?> (<?php echo $ccCountry['count']; ?>)</option>
											<?php if(is_array($ccCountry['list'])): ?>
												<?php foreach($ccCountry['list'] as $ccList): ?>
													<option value="<?php echo $ccList['country_code']; ?>"><?php echo $ccList['country_name']; ?> (<?php echo $ccList['cc_count']; ?>)</option>
												<?php endforeach; ?>
											<?php endif; ?>
										</optgroup>
									<?php endforeach; ?>
								<?php endif; ?>
							</select>
						</div>
						<!--//--><div class="form-group col-md-2 text-center"><button type="button" data-lefthand="cn_moderator" data-righthand="cc_moderator" class="btn btn-outline-info btn-countries-hand" <?php echo ($this->view->getUserHasRoles[3] ) && $this->view->getUserHasRoles[3] ? "" : ( ($this->view->getMaxAddModerators-$this->view->getTotModerators)  > 0 ? "" : ""); ?> ><span class="icon-point-right"></span></button></div>
						<div class="form-group col-md-5">
							<label class="label-main" for="cc_moderator"><?php echo _('Clinical Center (Moderator)'); ?></label>

							<select data-placeholder="<?php echo _('Select...'); ?>" class="form-control field-cc_moderator chosen-select" multiple="multiple" name="data[cc_moderator][value][]" id="cc_moderator"<?php echo ($this->view->getUserHasRoles[3] ) && $this->view->getUserHasRoles[3] ? "" : ( ($this->view->getMaxAddModerators-$this->view->getTotModerators)  > 0 ? "" : ""); ?> >
								<?php if(is_array($this->view->clinicalCenters)): ?>
									<?php foreach($this->view->clinicalCenters as $center): ?>
										<?php
											$clinicalCenterList = isset($this->view->userClinicalCenters[MODERATOR_ROLE_ID]) ? $this->view->userClinicalCenters[MODERATOR_ROLE_ID] : $this->view->userClinicalCenters[0];
											$selected = isset($clinicalCenterList[$center['id']]) ? 'selected' : '';
										?>
										<option value="<?php echo $center['id']; ?>" <?php echo $selected; ?>><?php echo $center['description']; ?></option>
									<?php endforeach; ?>
								<?php endif; ?>
							</select>

							<input type="hidden" name="data[cc_moderator][required]" value="0">
							<input type="hidden" name="data[cc_moderator][type]" value="text">
							<input type="hidden" name="data[cc_moderator][class]" value="field-cc_moderator">
							<input type="hidden" name="data[cc_moderator][label]" value="<?php echo _('Clinical Center (Moderator)'); ?>">
						</div>

						<div class="form-group col-md-5">
							<label class="label-main" for="cn_guest"><?php echo _('Country filter (Guest)'); ?></label>
							<select data-placeholder="<?php echo _('Select...'); ?>" class="form-control field-cn_guest chosen-select" multiple="multiple" id="cn_guest" <?php echo ($this->view->getUserHasRoles[6] ) && $this->view->getUserHasRoles[6] ? '' : (($this->view->getMaxAddGuests-$this->view->getTotGuests) > 0 ? "" : ""); ?> >
								<?php if(is_array($this->view->clinicalCenterCountries)): ?>
									<?php foreach($this->view->clinicalCenterCountries as $countryCode => $ccCountry): ?>
										<optgroup label="<?php echo $ccCountry['name']; ?>">
											<option value="all|<?php echo $countryCode; ?>"><?php echo vsprintf(_('All in %s'), [$ccCountry['name']]); ?> (<?php echo $ccCountry['count']; ?>)</option>
											<?php if(is_array($ccCountry['list'])): ?>
												<?php foreach($ccCountry['list'] as $ccList): ?>
													<option value="<?php echo $ccList['country_code']; ?>"><?php echo $ccList['country_name']; ?> (<?php echo $ccList['cc_count']; ?>)</option>
												<?php endforeach; ?>
											<?php endif; ?>
										</optgroup>
									<?php endforeach; ?>
								<?php endif; ?>
							</select>
						</div>
						<!--//--><div class="form-group col-md-2 text-center"><button type="button" data-lefthand="cn_guest" data-righthand="cc_guest" class="btn btn-outline-info btn-countries-hand" <?php echo ($this->view->getUserHasRoles[6] ) && $this->view->getUserHasRoles[6] ? '' : (($this->view->getMaxAddGuests-$this->view->getTotGuests) > 0 ? "" : ""); ?> ><span class="icon-point-right"></span></button></div>
						<div class="form-group col-md-5">
							<label class="label-main" for="cc_guest"><?php echo _('Clinical Center (Guest)'); ?></label>

							<select data-placeholder="<?php echo _('Select...'); ?>" class="form-control field-cc_guest chosen-select" multiple="multiple" name="data[cc_guest][value][]" id="cc_guest" <?php echo ($this->view->getUserHasRoles[6] ) && $this->view->getUserHasRoles[6] ? '' : (($this->view->getMaxAddGuests-$this->view->getTotGuests) > 0 ? "" : ""); ?> >
								<?php if(is_array($this->view->clinicalCenters)): ?>
									<?php foreach($this->view->clinicalCenters as $center): ?>
										<?php
											$clinicalCenterList = isset($this->view->userClinicalCenters[GUEST_ROLE_ID]) ? $this->view->userClinicalCenters[GUEST_ROLE_ID] : $this->view->userClinicalCenters[0];
											$selected = isset($clinicalCenterList[$center['id']]) ? 'selected' : '';
										?>
										<option value="<?php echo $center['id']; ?>" <?php echo $selected; ?>><?php echo $center['description']; ?></option>
									<?php endforeach; ?>
								<?php endif; ?>
							</select>

							<input type="hidden" name="data[cc_guest][required]" value="0">
							<input type="hidden" name="data[cc_guest][type]" value="text">
							<input type="hidden" name="data[cc_guest][class]" value="field-cc_guest">
							<input type="hidden" name="data[cc_guest][label]" value="<?php echo _('Clinical Center (Guest)'); ?>">
						</div>
						
						
						<!--<div class="form-group col-md-12">
							<hr>
						</div>-->
						
						
						<?php /*
						
						<div class="form-group col-md-5">
							<label class="label-main" for="cn_manager">Filtro paese (Gestore)</label>
							<select data-placeholder="<?php echo _('Select...'); ?>" class="form-control field-cn_manager chosen-select" id="cn_manager">
								<?php if(is_array($this->view->clinicalCenterCountries)): ?>
									<?php foreach($this->view->clinicalCenterCountries as $countryCode => $ccCountry): ?>
										<optgroup label="<?php echo $ccCountry['name']; ?>">
											<option value="all|<?php echo $countryCode; ?>"><?php echo vsprintf(_('All in %s'), [$ccCountry['name']]); ?> (<?php echo $ccCountry['count']; ?>)</option>
											<?php if(is_array($ccCountry['list'])): ?>
												<?php foreach($ccCountry['list'] as $ccList): ?>
													<option value="<?php echo $ccList['country_code']; ?>"><?php echo $ccList['country_name']; ?> (<?php echo $ccList['cc_count']; ?>)</option>
												<?php endforeach; ?>
											<?php endif; ?>
										</optgroup>
									<?php endforeach; ?>
								<?php endif; ?>
							</select>
						</div>
						<!--//--><div class="form-group col-md-2 text-center"><button type="button" data-lefthand="cn_manager" data-righthand="cc_manager" class="btn btn-outline-info btn-countries-hand"><span class="icon-point-right"></span></button></div>
						*/ ?>
						
						<?php /*
						<div class="form-group col-md-6">
							<label class="label-main" for="cc_manager">Centro clinico (Gestore)</label>

							<select data-placeholder="<?php echo _('Select...'); ?>" class="form-control field-cc_manager chosen-select" name="data[cc_manager][value][]" id="cc_manager">
								<option value="">...</option>
								<?php if(is_array($this->view->clinicalCenters)): ?>
									<?php foreach($this->view->clinicalCenters as $center): ?>
										<?php
											$clinicalCenterList = isset($this->view->userClinicalCenters[MANAGER_ID]) ? $this->view->userClinicalCenters[MANAGER_ID] : $this->view->userClinicalCenters[0];
											$selected = isset($clinicalCenterList[$center['id']]) ? 'selected' : '';
										?>
										<option value="<?php echo $center['id']; ?>" <?php echo $selected; ?>><?php echo $center['description']; ?></option>
									<?php endforeach; ?>
								<?php endif; ?>
							</select>

							<input type="hidden" name="data[cc_manager][required]" value="0">
							<input type="hidden" name="data[cc_manager][type]" value="text">
							<input type="hidden" name="data[cc_manager][class]" value="field-cc_manager">
							<input type="hidden" name="data[cc_manager][label]" value="Centro clinico (Gestore)">
						</div>
						*/ ?>
						
						
						<?php /*
						<div class="form-group col-md-5">
							<label class="label-main" for="cn_global_manager">Filtro paese (Gestore generale)</label>
							<select data-placeholder="<?php echo _('Select...'); ?>" class="form-control field-cn_manager chosen-select" id="cn_global_manager">
								<?php if(is_array($this->view->clinicalCenterCountries)): ?>
									<?php foreach($this->view->clinicalCenterCountries as $countryCode => $ccCountry): ?>
										<optgroup label="<?php echo $ccCountry['name']; ?>">
											<option value="all|<?php echo $countryCode; ?>"><?php echo vsprintf(_('All in %s'), [$ccCountry['name']]); ?> (<?php echo $ccCountry['count']; ?>)</option>
											<?php if(is_array($ccCountry['list'])): ?>
												<?php foreach($ccCountry['list'] as $ccList): ?>
													<option value="<?php echo $ccList['country_code']; ?>"><?php echo $ccList['country_name']; ?> (<?php echo $ccList['cc_count']; ?>)</option>
												<?php endforeach; ?>
											<?php endif; ?>
										</optgroup>
									<?php endforeach; ?>
								<?php endif; ?>
							</select>
						</div>
						<!--//--><div class="form-group col-md-2 text-center"><button type="button" data-lefthand="cn_global_manager" data-righthand="cc_global_manager" class="btn btn-outline-info btn-countries-hand"><span class="icon-point-right"></span></button></div>
						*/ ?>
						
						<?php /*
						<div class="form-group col-md-6">
							<label class="label-main" for="cc_global_manager">Centro clinico (Gestore generale)</label>

							<select data-placeholder="<?php echo _('Select...'); ?>" class="form-control field-cc_global_manager chosen-select" name="data[cc_global_manager][value][]" id="cc_global_manager" multiple="multiple">
								<option value="">...</option>
								<?php if(is_array($this->view->clinicalCenters)): ?>
									<?php foreach($this->view->clinicalCenters as $center): ?>
										<?php
											$clinicalCenterList = isset($this->view->userClinicalCenters[GLOBAL_MANAGER_ID]) ? $this->view->userClinicalCenters[GLOBAL_MANAGER_ID] : $this->view->userClinicalCenters[0];
											$selected = isset($clinicalCenterList[$center['id']]) ? 'selected' : '';
										?>
										<option value="<?php echo $center['id']; ?>" <?php echo $selected; ?>><?php echo $center['description']; ?></option>
									<?php endforeach; ?>
								<?php endif; ?>
							</select>

							<input type="hidden" name="data[cc_global_manager][required]" value="0">
							<input type="hidden" name="data[cc_global_manager][type]" value="text">
							<input type="hidden" name="data[cc_global_manager][class]" value="field-cc_manager">
							<input type="hidden" name="data[cc_global_manager][label]" value="Centro clinico (Gestore generale)">
						</div>
						*/ ?>
						
						
						
						
						
						
						
						
						

						<div class="form-group col-lg-12" style="display: none;">
						<label class="label-main" for=""><?php echo _('Advanced Request Filters'); ?></label>
							<div class="form-check">
								<input type="hidden" name="data[advanced_request][value]" value="0">
								<input class="form-check-input field-advanced-request" type="checkbox" name="data[advanced_request][value]" value="1" id="advanced-request" <?php echo $this->view->userData['advanced_request'] == 1 ? 'checked' : ''; ?>>
								<label class="form-check-label" for="advanced-request">
									<?php echo _('Show advanced filters in Request page.'); ?>
								</label>
							</div>

							<input type="hidden" name="data[advanced_request][required]" value="0">
							<input type="hidden" name="data[advanced_request][type]" value="checkbox">
							<input type="hidden" name="data[advanced_request][class]" value="field-advanced-request">
							<input type="hidden" name="data[advanced_request][label]" value="<?php echo _('Advanced Request Filters'); ?>">
						</div>

						<div class="form-group col-lg-12">
							<hr>
							<h4 class="text-center"><?php echo _('Contact preferences'); ?></h4>
							<hr>
						</div>

						<div class="form-group col-lg-12">
							<label class="label-main" for="profile_email"><?php echo _('E-mail'); ?></label>
							<input type="email" class="form-control field-email" value="<?php echo isset($this->view->userData['email']) ? $this->view->userData['email'] : ''; ?>" id="profile_email" name="data[email][value]">

							<input type="hidden" name="data[email][required]" value="1">
							<input type="hidden" name="data[email][type]" value="email">
							<input type="hidden" name="data[email][class]" value="field-email">
							<input type="hidden" name="data[email][label]" value="<?php echo _('E-mail'); ?>">
						</div>

						<?php /*
						<div class="form-group col-lg-6">
							<label class="label-main" for="profile_alt_email"><?php echo _('Alternative e-mail'); ?></label>
							<input type="email" class="form-control field-alt-email" value="<?php echo isset($this->view->userData['alternative_email']) ? $this->view->userData['alternative_email'] : ''; ?>" id="profile_alt_email" name="data[alt_email][value]">

							<input type="hidden" name="data[alt_email][required]" value="0">
							<input type="hidden" name="data[alt_email][type]" value="email">
							<input type="hidden" name="data[alt_email][class]" value="field-alt-email">
							<input type="hidden" name="data[alt_email][label]" value="<?php echo _('Alternative e-mail'); ?>">
						</div>
						*/ ?>

						<div class="form-group col-lg-6">
							<label class="label-main" for="profile_default_mobile"><?php echo _('Mobile (All communications)'); ?></label>
							<input type="tel" class="form-control field-mobile-default" value="<?php echo isset($this->view->userData['mobile_number']) ? $this->view->userData['mobile_number'] : ''; ?>" id="profile_default_mobile" name="data[default_mobile][value]">

							<input type="hidden" name="data[default_mobile][required]" value="1">
							<input type="hidden" name="data[default_mobile][type]" value="text">
							<input type="hidden" name="data[default_mobile][class]" value="field-mobile-default">
							<input type="hidden" name="data[default_mobile][label]" value="<?php echo _('Mobile (All communications)'); ?>">
						</div>

						<div class="form-group col-lg-6">
							<label class="label-main" for="profile_mobile_chat"><?php echo _('Mobile 2'); ?></label>
							<input type="tel" class="form-control field-mobile-chat" value="<?php echo isset($this->view->userData['mobile_number_chat']) ? $this->view->userData['mobile_number_chat'] : ''; ?>" id="profile_mobile_chat" name="data[mobile_chat][value]">

							<input type="hidden" name="data[mobile_chat][required]" value="0">
							<input type="hidden" name="data[mobile_chat][type]" value="text">
							<input type="hidden" name="data[mobile_chat][class]" value="field-mobile-chat">
							<input type="hidden" name="data[mobile_chat][label]" value="<?php echo _('Mobile 2)'); ?>">
						</div>

						<div class="form-group col-lg-6">
							<label class="label-main" for="profile_default_lang"><?php echo _('Communication preferences'); ?></label>
							<div>
								<div class="form-check form-check-inline">
									<input type="hidden" name="data[phone_pref][value]" value="1">
									<input class="form-check-input" type="checkbox" id="phone_pref" name="data[phone_pref][value]" value="0" <?php echo isset($this->view->userData['allow_phone_text']) && (int)$this->view->userData['allow_phone_text'] == 0 ? 'checked' : ''; ?>>
									<label class="form-check-label" for="phone_pref"><?php echo _('Do not send SMS/Text by phone'); ?></label>
								</div>
								
								<input type="hidden" name="data[wa_pref][value]" value="1">
								
								<?php /*
								<div class="form-check form-check-inline">
									<input type="hidden" name="data[wa_pref][value]" value="1">
									<input class="form-check-input" type="checkbox" id="wa_pref" name="data[wa_pref][value]" value="0" <?php echo isset($this->view->userData['allow_phone_chat']) && (int)$this->view->userData['allow_phone_chat'] == 0 ? 'checked' : ''; ?>>
									<label class="form-check-label" for="wa_pref"><?php echo _('Do not send messages by WhatsApp'); ?></label>
								</div>
								*/ ?>

								<div class="form-check form-check-inline">
									<input type="hidden" name="data[email_pref][value]" value="1">
									<input class="form-check-input" type="checkbox" id="email_pref" name="data[email_pref][value]" value="0" <?php echo isset($this->view->userData['allow_email_msgs']) && (int)$this->view->userData['allow_email_msgs'] == 0 ? 'checked' : ''; ?>>
									<label class="form-check-label" for="wa_email"><?php echo _('Do not send messages by e-mail'); ?></label>
								</div>
							</div>
						</div>
					</div>
					<hr>
					<div class="clearfix">
						<button type="button" class="btn btn-primary btn-edit-user float-right"><?php echo _('Save'); ?></button>
					</div>
				</form>
			<?php else: ?>
				<div class="alert alert-warning" role="alert"><?php echo _("Unable to get user's information right now. Please try in a few minutes."); ?></div>
			<?php endif; ?>

		</div>
	</div>
</div>

<script>
    $(function () {
        $("[data-toggle='tooltip']").tooltip();
    });
</script>


