2014-03-15 01:52:07 +01:00
<?php
/*
*
*/
2014-04-01 20:58:36 +02:00
$default_hForm['url']=array('controller'=>'user','action'=>'profil_edit');
echo $this->Form->create('DreamjobCvEntry',$default_hForm);
2014-03-15 01:52:07 +01:00
?>
2014-04-01 21:06:55 +02:00
<h3>
<?php
echo __("dreamjob.cv")." ";
$text ='<span class="label label-default edit" style="font-size:12px;"><span class="glyphicon glyphicon-edit"></span> '.__('dreamjob.edit.end').'</span>';
echo $this->Html->link($text,array('controller'=>'user','action'=>'profil'),array('escape' => false));
?>
</h3>
2014-03-15 01:52:07 +01:00
<?php
2014-04-01 20:58:36 +02:00
$i = 0;
foreach($cvc as $cvc_item){
2014-03-15 01:52:07 +01:00
?>
2014-04-01 20:58:36 +02:00
<h4><?=$cvc_item['DreamjobListCvCategory']['name'];?></h4>
<table class="cv table table-striped">
<tbody>
2014-04-13 20:06:35 +02:00
<?php if($cvc_item['DreamjobListCvCategory']['position'] == 0){ ?>
<tr>
<td><?=__("dreamjob.bday");?></td>
<td>
<?php
if($profil['AppUser']['take_systemwide'])
echo $this->Time->format('d.m.Y', $profil['User']['bday']);
else
echo $this->Time->format('d.m.Y', $profil['AppUser']['bday']);
?>
</td>
2014-05-06 17:08:37 +02:00
<td></td>
2014-04-13 20:06:35 +02:00
</tr>
<tr>
<td><?=__("dreamjob.workexperience");?></td>
2014-04-23 17:18:47 +02:00
<td><?=$profil['DreamjobWorker']['workexperience'].' '.__('dreamjob.years');?></td>
2014-05-06 17:08:37 +02:00
<td></td>
2014-04-13 20:06:35 +02:00
</tr>
<tr>
<td><?=__("dreamjob.graducation.worker");?></td>
<td><?=$profil['DreamjobListGraducation']['name'];?></td>
2014-05-06 17:08:37 +02:00
<td></td>
2014-04-13 20:06:35 +02:00
</tr>
2014-04-22 16:01:00 +02:00
<tr>
<td><?=__("dreamjob.city");?></td>
<td><?=$profil['DreamjobListCity']['name'];?></td>
2014-05-06 17:08:37 +02:00
<td></td>
2014-04-22 16:01:00 +02:00
</tr>
2014-04-13 20:06:35 +02:00
<tr>
<td><?=__("dreamjob.country.worker");?></td>
<td><?=$profil['DreamjobWorker']['country'];?></td>
2014-05-06 17:08:37 +02:00
<td></td>
2014-04-13 20:06:35 +02:00
</tr>
<?php } ?>
2014-04-01 20:58:36 +02:00
<?php
while(count($cve) > $i and $cvc_item['DreamjobListCvCategory']['id']==$cve[$i]['DreamjobCvEntry']['category_id']){
?>
<tr data="set">
<?php
if($cvc_item['DreamjobListCvCategory']['startdate'] and $cvc_item['DreamjobListCvCategory']['enddate'] and $cvc_item['DreamjobListCvCategory']['place']){
?>
2014-06-03 16:51:20 +02:00
<td><span class="label"><?=__('dreamjob.between');?>:</span><?=$this->Form->input('DreamjobCvEntry.'.$i.'.startdate',array('empty'=>__('dreamjob.chooseOne.date'),'dateFormat' => 'DMY','minYear' => date('Y') - 100, 'maxYear' => date('Y'),'required'=>false));?><span class="label"><?=__('dreamjob.between.till');?>:</span><?=$this->Form->input('DreamjobCvEntry.'.$i.'.enddate',array('empty'=>__('dreamjob.chooseOne.date'),'dateFormat' => 'DMY','minYear' => date('Y') - 100,'maxYear' => date('Y'),'required'=>false));?></td>
<td><?=$this->Form->input('DreamjobCvEntry.'.$i.'.title',array('placeholder'=>$cvc_item['DreamjobListCvCategory']['title_str'],'required'=>false));?><span><?=$this->Form->input('DreamjobCvEntry.'.$i.'.place',array('placeholder'=>$cvc_item['DreamjobListCvCategory']['place_str'],'required'=>false));?></span></td>
2014-03-15 01:52:07 +01:00
<?php
2014-04-01 20:58:36 +02:00
}else if($cvc_item['DreamjobListCvCategory']['place']){
if($cvc_item['DreamjobListCvCategory']['startdate']){
2014-03-15 01:52:07 +01:00
?>
2014-06-03 16:51:20 +02:00
<td><?=$this->Form->input('DreamjobCvEntry.'.$i.'.startdate',array('empty'=>__('dreamjob.chooseOne.date'),'dateFormat' => 'DMY','minYear' => date('Y') - 100, 'maxYear' => date('Y'),'required'=>false));?></td>
2014-04-01 20:58:36 +02:00
<?php
}else if($cvc_item['DreamjobListCvCategory']['enddate']){
?>
2014-06-03 16:51:20 +02:00
<td><?=$this->Form->input('DreamjobCvEntry.'.$i.'.enddate',array('empty'=>__('dreamjob.chooseOne.date'),'dateFormat' => 'DMY','minYear' => date('Y') - 100, 'maxYear' => date('Y'),'required'=>false));?></td>
2014-04-01 20:58:36 +02:00
<?php
}else{
?>
2014-06-03 16:51:20 +02:00
<td><?=$this->Form->input('DreamjobCvEntry.'.$i.'.title',array('placeholder'=>$cvc_item['DreamjobListCvCategory']['title_str'],'required'=>false));?></td>
<td><?=$this->Form->input('DreamjobCvEntry.'.$i.'.place',array('placeholder'=>$cvc_item['DreamjobListCvCategory']['place_str'],'required'=>false));?></td>
2014-04-01 20:58:36 +02:00
<?php
}
?>
2014-03-15 01:52:07 +01:00
<?php
2014-04-01 20:58:36 +02:00
if($cvc_item['DreamjobListCvCategory']['startdate'] or $cvc_item['DreamjobListCvCategory']['enddate']){
?>
2014-06-03 16:51:20 +02:00
<td><?=$this->Form->input('DreamjobCvEntry.'.$i.'.title',array('placeholder'=>$cvc_item['DreamjobListCvCategory']['title_str'],'required'=>false));?><span><?=$this->Form->input('DreamjobCvEntry.'.$i.'.place',array('placeholder'=>$cvc_item['DreamjobListCvCategory']['place_str'],'required'=>false));?></span></td>
2014-04-01 20:58:36 +02:00
<?php
}
}else{
if($cvc_item['DreamjobListCvCategory']['startdate'] and $cvc_item['DreamjobListCvCategory']['enddate']){
2014-03-15 01:52:07 +01:00
?>
2014-11-11 10:13:05 +01:00
<td><span class="label"><?=__('dreamjob.between');?>:</span><?=$this->Form->input('DreamjobCvEntry.'.$i.'.startdate',array('empty'=>__('dreamjob.chooseOne.date'),'dateFormat' => 'DMY','minYear' => date('Y') - 100, 'maxYear' => date('Y'),'required'=>false));?><span class="label"><?=__('dreamjob.between.till');?>:</span><?=$this->Form->input('DreamjobCvEntry.'.$i.'.enddate',array('empty'=>__('dreamjob.chooseOne.date'),'dateFormat' => 'DMY','minYear' => date('Y') - 100, 'maxYear' => date('Y'),'required'=>false));?></td>
2014-03-15 01:52:07 +01:00
<?php
2014-04-01 20:58:36 +02:00
}else if($cvc_item['DreamjobListCvCategory']['startdate']){
?>
2014-06-03 16:51:20 +02:00
<td><?=$this->Form->input('DreamjobCvEntry.'.$i.'.startdate',array('empty'=>__('dreamjob.chooseOne.date'),'dateFormat' => 'DMY','minYear' => date('Y') - 100, 'maxYear' => date('Y'),'required'=>false));?></td>
2014-04-01 20:58:36 +02:00
<?php
}else if($cvc_item['DreamjobListCvCategory']['enddate']){
?>
2014-06-03 16:51:20 +02:00
<td><?=$this->Form->input('DreamjobCvEntry.'.$i.'.enddate',array('empty'=>__('dreamjob.chooseOne.date'),'dateFormat' => 'DMY','minYear' => date('Y') - 100, 'maxYear' => date('Y'),'required'=>false));?></td>
2014-03-15 01:52:07 +01:00
<?php
}else{
2014-04-01 20:58:36 +02:00
?>
ERROR
<?php
}
?>
2014-06-03 16:51:20 +02:00
<td><?=$this->Form->input('DreamjobCvEntry.'.$i.'.title',array('placeholder'=>$cvc_item['DreamjobListCvCategory']['title_str'],'required'=>false));?></td>
2014-04-01 20:58:36 +02:00
<?php
}
?>
2014-05-06 17:08:37 +02:00
<td><a class="btn btn-default btn-del rmEvnt" ref="eventOff"><span class="glyphicon glyphicon-trash"></span></a></td>
2014-04-01 20:58:36 +02:00
<?=$this->Form->input('DreamjobCvEntry.'.$i.'.category_id',array('type'=>'hidden'));?>
<?=$this->Form->input('DreamjobCvEntry.'.$i.'.id',array('type'=>'hidden'));?>
</tr>
<?php
$i++;
}
?>
<tr class="new">
<?php
if($cvc_item['DreamjobListCvCategory']['startdate'] and $cvc_item['DreamjobListCvCategory']['enddate'] and $cvc_item['DreamjobListCvCategory']['place']){
?>
2014-06-03 16:51:20 +02:00
<td><span class="label"><?=__('dreamjob.between');?>:</span><?=$this->Form->input('DreamjobCvEntry..startdate',array('empty'=>__('dreamjob.chooseOne.date'),'dateFormat' => 'DMY','minYear' => date('Y') - 100, 'maxYear' => date('Y'),'required'=>false));?><span class="label"><?=__('dreamjob.between.till');?>:</span><?=$this->Form->input('DreamjobCvEntry..enddate',array('empty'=>__('dreamjob.chooseOne.date'),'dateFormat' => 'DMY','minYear' => date('Y') - 100, 'maxYear' => date('Y'),'required'=>false));?></td>
<td><?=$this->Form->input('DreamjobCvEntry..title',array('placeholder'=>$cvc_item['DreamjobListCvCategory']['title_str'],'required'=>false));?><span><?=$this->Form->input('DreamjobCvEntry..place',array('placeholder'=>$cvc_item['DreamjobListCvCategory']['place_str'],'required'=>false));?></span></td>
2014-04-01 20:58:36 +02:00
<?php
}else if($cvc_item['DreamjobListCvCategory']['place']){
if($cvc_item['DreamjobListCvCategory']['startdate']){
?>
2014-06-03 16:51:20 +02:00
<td><?=$this->Form->input('DreamjobCvEntry..startdate',array('empty'=>__('dreamjob.chooseOne.date'),'dateFormat' => 'DMY','minYear' => date('Y') - 100, 'maxYear' => date('Y'),'required'=>false));?></td>
2014-04-01 20:58:36 +02:00
<?php
}else if($cvc_item['DreamjobListCvCategory']['enddate']){
?>
2014-06-03 16:51:20 +02:00
<td><?=$this->Form->input('DreamjobCvEntry..enddate',array('empty'=>__('dreamjob.chooseOne.date'),'dateFormat' => 'DMY','minYear' => date('Y') - 100, 'maxYear' => date('Y'),'required'=>false));?></td>
2014-04-01 20:58:36 +02:00
<?php
}else{
?>
2014-06-03 16:51:20 +02:00
<td><?=$this->Form->input('DreamjobCvEntry..title',array('placeholder'=>$cvc_item['DreamjobListCvCategory']['title_str'],'required'=>false));?></td>
<td><?=$this->Form->input('DreamjobCvEntry..place',array('placeholder'=>$cvc_item['DreamjobListCvCategory']['place_str'],'required'=>false));?></td>
2014-04-01 20:58:36 +02:00
<?php
}
?>
<?php
if($cvc_item['DreamjobListCvCategory']['startdate'] or $cvc_item['DreamjobListCvCategory']['enddate']){
?>
2014-06-03 16:51:20 +02:00
<td><?=$this->Form->input('DreamjobCvEntry..title',array('placeholder'=>$cvc_item['DreamjobListCvCategory']['title_str']));?><span><?=$this->Form->input('DreamjobCvEntry..place',array('placeholder'=>$cvc_item['DreamjobListCvCategory']['place_str'],'required'=>false));?></span></td>
2014-04-01 20:58:36 +02:00
<?php
}
}else{
if($cvc_item['DreamjobListCvCategory']['startdate'] and $cvc_item['DreamjobListCvCategory']['enddate']){
?>
2014-06-03 16:51:20 +02:00
<td><span class="label"><?=__('dreamjob.between');?>:</span><?=$this->Form->input('DreamjobCvEntry..startdate',array('empty'=>__('dreamjob.chooseOne.date'),'dateFormat' => 'DMY','minYear' => date('Y') - 100, 'maxYear' => date('Y'),'required'=>false));?><span class="label"> <?=__('dreamjob.between.till');?>:</span><?=$this->Form->input('DreamjobCvEntry..enddate',array('empty'=>__('dreamjob.chooseOne.date'),'dateFormat' => 'DMY','minYear' => date('Y') - 100, 'maxYear' => date('Y'),'required'=>false));?></td>
2014-04-01 20:58:36 +02:00
<?php
}else if($cvc_item['DreamjobListCvCategory']['startdate']){
?>
2014-06-03 16:51:20 +02:00
<td><?=$this->Form->input('DreamjobCvEntry..startdate',array('empty'=>__('dreamjob.chooseOne.date'),'dateFormat' => 'DMY','minYear' => date('Y') - 100, 'maxYear' => date('Y'),'required'=>false));?></td>
2014-04-01 20:58:36 +02:00
<?php
}else if($cvc_item['DreamjobListCvCategory']['enddate']){
?>
2014-06-03 16:51:20 +02:00
<td><?=$this->Form->input('DreamjobCvEntry..enddate',array('empty'=>__('dreamjob.chooseOne.date'),'dateFormat' => 'DMY','minYear' => date('Y') - 100, 'maxYear' => date('Y'),'required'=>false));?></td>
2014-04-01 20:58:36 +02:00
<?php
}else{
?>
ERROR
2014-03-15 01:52:07 +01:00
<?php
}
?>
2014-06-03 16:51:20 +02:00
<td><?=$this->Form->input('DreamjobCvEntry..title',array('placeholder'=>$cvc_item['DreamjobListCvCategory']['title_str'],'required'=>false));?></td>
2014-03-15 01:52:07 +01:00
<?php
}
?>
2014-05-06 17:08:37 +02:00
<td><a class="btn btn-default btn-del rmEvnt" ref="eventOff"><span class="glyphicon glyphicon-trash"></span></a></td>
2014-06-03 16:51:20 +02:00
<?=$this->Form->input('DreamjobCvEntry..category_id',array('type'=>'hidden','value'=>$cvc_item['DreamjobListCvCategory']['id'],'required'=>false));?>
2014-04-01 20:58:36 +02:00
</tr>
</tbody>
</table>
2014-03-15 01:52:07 +01:00
<?php
}
2014-06-03 16:51:20 +02:00
?>
<div class="buttonrow">
2014-08-12 11:37:37 +02:00
<?=$this->Form->button('<span class="glyphicon glyphicon-floppy-disk"></span> '.__('dreamjob.save'),array('div' => false,'class'=>"btn btn-primary ",'type' => 'submit'));?>
2014-06-03 16:51:20 +02:00
</div>
<?php
2014-03-15 01:52:07 +01:00
echo $this->Form->end();
?>