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'), 'label' => array('class' => 'col-lg-3 control-label'),
'between' => '<div class="col-lg-9">', 'between' => '<div class="col-lg-9">',
'after' => '</div>', 'after' => '</div>',
'error' => array('attribute'=>array('wrap'=>'span','class'=>'help-block')),
'class' => 'form-control ')) 'class' => 'form-control '))
); );
} }

View File

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

View File

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

View File

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

View File

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

View File

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