startseite + cv anzeigen

This commit is contained in:
Martin Müller 2014-03-12 17:42:02 +01:00
parent f138ce8a22
commit f5147a3564
6 changed files with 21 additions and 7 deletions

View File

@ -34,6 +34,7 @@ class MiconwareSessionComponent extends Component {
'label' => array('class' => 'col-lg-3 control-label'),
'between' => '<div class="col-lg-9">',
'after' => '</div>',
'error' => array('attribute'=>array('wrap'=>'span','class'=>'help-block')),
'class' => 'form-control '))
);
}

View File

@ -10,7 +10,7 @@ class UserController extends AppController {
* @var array
*/
public $uses = array('DreamjobListGraducation','DreamjobWorker','DreamjobCompany','DreamjobPageText','DreamjobPageImage','DreamjobJobOpening');
public $uses = array('DreamjobListGraducation','DreamjobWorker','DreamjobCompany','DreamjobPageText','DreamjobPageImage','DreamjobJobOpening','DreamjobCvCategory');
/**
* Displays a view
@ -64,6 +64,11 @@ class UserController extends AppController {
$page = $this->DreamjobPageImage->find('first',
array('conditions' => array("DreamjobPageInh.id" => $this->request->params['page'],'DreamjobPageInh.user_id' => $profil['AppUser']['id']))
);
}else{
if(isset($profil['DreamjobWorker'])){
$cv = $this->DreamjobCvCategory->find('all',array('conditions' => array('worker_id'=> $profil['AppUser']['id'])));
$this->set("cv",$cv);
}
}
}
}else

View File

@ -41,7 +41,8 @@
<div class="box" style="margin-top:100px;">
Test Profile
<p><?php echo $this->Html->link("Miconware", '/user/24/'); ?>mail:imberg@miconware.de - PW:sebi</p>
<p><?php echo $this->Html->link("Sebi", '/user/4/'); ?>mail:- - PW:-</p>
<p><?php echo $this->Html->link("Martin", '/user/3/'); ?>mail:mueller@miconware.de - PW:sebi</p>
<p><?php echo $this->Html->link("sebi", '/user/4/'); ?>mail:mueller@mic-soft.com - PW:-</p>
<?php echo $this->Html->link(__('forget password'), '/password/forgot/'); ?>
<?php echo $this->Html->link(__('register'), '/register/'); ?>

View File

@ -45,10 +45,8 @@ if(( !empty($COMPANY) and is_array($COMPANY) and count($COMPANY) > 0 and ($COMPA
if(!empty($page)){
echo $this->element('user_page');
}else{
?>
<h3><?=__("dreamjob.cv");?></h3>
<?php
}
echo $this->element('user_worker_cv');
}
?>
<!-- /tab -->
</div>

View File

@ -378,6 +378,14 @@ body.loading #container{
font-weight:bold;
font-size:16px;
}
.cv{
width:100%;
color:black;
}
.cv td{
width:50%;
}
.infofield{
color:black;
}

View File

@ -999,7 +999,8 @@ class FormHelper extends AppHelper {
if ($type !== 'hidden' && $error !== false) {
$errMsg = $this->error($fieldName, $error);
if ($errMsg) {
$divOptions = $this->addClass($divOptions, 'error');
$divOptions = $this->addClass($divOptions, 'has-error');
$divOptions = $this->addClass($divOptions, 'has-feedback');
if ($errorMessage) {
$out['error'] = $errMsg;
}