2014-03-15 13:56:26 +01:00
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
$avatar = false;
|
|
|
|
if($profil['AppUser']['take_systemwide']){
|
|
|
|
if($profil['User']['avatar'])
|
|
|
|
$avatar = true;
|
|
|
|
}else{
|
|
|
|
if($profil['AppUser']['avatar'])
|
|
|
|
$avatar = true;
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<div class="box">
|
2014-03-18 09:34:04 +01:00
|
|
|
|
2014-03-15 13:56:26 +01:00
|
|
|
<div class="tabs-below">
|
|
|
|
<ul class="nav nav-tabs pull-right">
|
2014-03-18 09:34:04 +01:00
|
|
|
<li class="active"><?=$this->Html->link(__("dreamjob.settings"),array('controller'=>'user','action'=>'settings_account'));?></li>
|
|
|
|
<li><?=$this->Html->link(__("dreamjob.settings.pages"),array('controller'=>'user','action'=>'settings_pages'));?></li>
|
|
|
|
<?php
|
|
|
|
if(!empty($WORKER) and count($WORKER)>0){
|
|
|
|
?>
|
|
|
|
<li><?=$this->Html->link(__("dreamjob.settings.isearch"),array('controller'=>'user','action'=>'settings_isearch'));?></li>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
2014-03-15 13:56:26 +01:00
|
|
|
</ul>
|
|
|
|
</div>
|
2014-03-18 09:34:04 +01:00
|
|
|
<h1><?=__("dreamjob.settings");?></h1>
|
2014-03-15 13:56:26 +01:00
|
|
|
<?php
|
2014-03-18 22:48:22 +01:00
|
|
|
echo $this->Form->create(false,$default_Form);
|
2014-03-15 13:56:26 +01:00
|
|
|
?>
|
|
|
|
<fieldset>
|
|
|
|
<legend><?=__("dreamjob.account");?></legend>
|
|
|
|
<?php
|
2014-03-18 09:34:04 +01:00
|
|
|
echo $this->Form->input('User.mail',array('label'=>array('text'=>__("dreamjob.mail"),"class"=>$default_Form['inputDefaults']['label']['class']),'disabled'));
|
|
|
|
|
2014-03-18 22:48:22 +01:00
|
|
|
echo $this->Form->input('User.password1',array('label'=>array('text'=>__("dreamjob.password"),"class"=>$default_Form['inputDefaults']['label']['class']),'type'=>'password'));
|
2014-03-18 09:34:04 +01:00
|
|
|
echo $this->Form->input('User.password2',array('label'=>array('text'=>__("dreamjob.password2"),"class"=>$default_Form['inputDefaults']['label']['class']),'type'=>'password'));
|
|
|
|
|
2014-03-18 22:48:22 +01:00
|
|
|
if($WORKER){
|
2014-03-18 09:34:04 +01:00
|
|
|
?>
|
|
|
|
<legend><?=__("dreamjob.worker");?></legend>
|
|
|
|
<?php
|
2014-03-18 22:48:22 +01:00
|
|
|
echo $this->Form->input('AppUser.mannerofaddress_id',array('label'=>array('text'=>__("dreamjob.mannerofaddress_id"),"class"=>$default_Form['inputDefaults']['label']['class'])));
|
|
|
|
echo $this->Form->input('AppUser.first_name',array('label'=>array('text'=>__("dreamjob.first_name"),"class"=>$default_Form['inputDefaults']['label']['class'])));
|
|
|
|
echo $this->Form->input('AppUser.last_name',array('label'=>array('text'=>__("dreamjob.last_name"),"class"=>$default_Form['inputDefaults']['label']['class'])));
|
|
|
|
echo $this->Form->input('AppUser.bday',array('label'=>array('text'=>__("dreamjob.bday"),"class"=>$default_Form['inputDefaults']['label']['class']),"style"=>'width:20%;display:inline-block;'));
|
2014-03-18 09:34:04 +01:00
|
|
|
echo $this->Form->input('DreamjobWorker.iam',array('label'=>array('text'=>__("dreamjob.iam"),"class"=>$default_Form['inputDefaults']['label']['class'])));
|
2014-03-18 22:48:22 +01:00
|
|
|
echo $this->Form->input('DreamjobWorker.graducation_id',array('label'=>array('text'=>__("dreamjob.graducation"),"class"=>$default_Form['inputDefaults']['label']['class'])));
|
|
|
|
echo $this->Form->input('DreamjobWorker.workexperience',array('label'=>array('text'=>__("dreamjob.workexperience"),"class"=>$default_Form['inputDefaults']['label']['class'])));
|
|
|
|
?>
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-sm-3 control-label"><?=__("dreamjob.searchhidden");?></label>
|
|
|
|
<div class="col-sm-9" style="text-align:left;">
|
|
|
|
<?=$this->Form->checkbox('DreamjobWorker.searchhidden',array("class"=>'form-control',"label"=>__("dreamjob.searchhidden")))?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<?php
|
|
|
|
}elseif($COMPANY){
|
|
|
|
?>
|
|
|
|
<legend><?=__("dreamjob.company");?></legend>
|
|
|
|
<?php
|
|
|
|
echo $this->Form->input('AppUser.nickname',array('label'=>array('text'=>__("dreamjob.company.nickname"),"class"=>$default_Form['inputDefaults']['label']['class'])));
|
|
|
|
echo $this->Form->input('DreamjobCompany.corporateform',array('label'=>array('text'=>__("dreamjob.corporateform"),"class"=>$default_Form['inputDefaults']['label']['class'])));
|
|
|
|
echo $this->Form->input('DreamjobCompany.owner',array('label'=>array('text'=>__("dreamjob.owner"),"class"=>$default_Form['inputDefaults']['label']['class'])));
|
|
|
|
echo $this->Form->input('DreamjobCompany.branch',array('label'=>array('text'=>__("dreamjob.branch"),"class"=>$default_Form['inputDefaults']['label']['class'])));
|
|
|
|
echo $this->Form->input('DreamjobCompany.headcount',array('label'=>array('text'=>__("dreamjob.headcount"),"class"=>$default_Form['inputDefaults']['label']['class'])));
|
|
|
|
//echo $this->Form->input('DreamjobCompany.bank_details',array('label'=>array('text'=>__("dreamjob.bank_details"),"class"=>$default_Form['inputDefaults']['label']['class'])));
|
|
|
|
echo $this->Form->input('DreamjobCompany.website',array('label'=>array('text'=>__("dreamjob.website"),"class"=>$default_Form['inputDefaults']['label']['class'])));
|
2014-03-18 09:34:04 +01:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
<legend><?=__("dreamjob.addresse");?></legend>
|
|
|
|
<?php
|
|
|
|
echo $this->Form->input('DreamjobUser.street',array('label'=>array('text'=>__("dreamjob.street"),"class"=>$default_Form['inputDefaults']['label']['class'])));
|
|
|
|
echo $this->Form->input('DreamjobUser.city',array('label'=>array('text'=>__("dreamjob.city"),"class"=>$default_Form['inputDefaults']['label']['class'])));
|
|
|
|
echo $this->Form->input('DreamjobUser.postcode',array('label'=>array('text'=>__("dreamjob.postcode"),"class"=>$default_Form['inputDefaults']['label']['class'])));
|
|
|
|
if($WORKER)
|
|
|
|
echo $this->Form->input('DreamjobWorker.country',array('label'=>array('text'=>__("dreamjob.country"),"class"=>$default_Form['inputDefaults']['label']['class'])));
|
2014-03-15 13:56:26 +01:00
|
|
|
?>
|
|
|
|
<div class="buttonrow">
|
2014-03-18 09:34:04 +01:00
|
|
|
<?=$this->Form->button(__('dreamjob.settings.save'),array('div' => false,'class'=>"btn btn-default ",'type' => 'submit'));?>
|
2014-03-15 13:56:26 +01:00
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
<?php echo $this->Form->end(); ?>
|
|
|
|
</div>
|