#95 neuer Stellenausschreibungs Header
This commit is contained in:
parent
d29806c497
commit
ff219b2b02
|
@ -72,7 +72,7 @@
|
|||
Router::connect('/opening/add', array('controller' => 'job', 'action' => 'openingAdd'));
|
||||
Router::connect('/opening/edit/:id', array('controller' => 'job', 'action' => 'openingEdit'),array("id" => "[0-9]+"));
|
||||
Router::connect('/opening/:id', array('controller' => 'job', 'action' => 'openingGet'),array("id" => "[0-9]+"));
|
||||
Router::connect('/opening/:id/:favorite', array('controller' => 'job', 'action' => 'openingGet'), array("id" => "[0-9]+",'favorite' => '(?i:favorite)'));
|
||||
Router::connect('/opening/:id/:extra', array('controller' => 'job', 'action' => 'openingGet'), array("id" => "[0-9]+"));
|
||||
Router::connect('/opening/:id/application', array('controller' => 'job', 'action' => 'applicationByOpening'),array("id" => "[0-9]+"));
|
||||
|
||||
Router::connect('/application', array('controller' => 'job', 'action' => 'applicationList'));
|
||||
|
|
|
@ -168,7 +168,8 @@ class JobController extends AppController {
|
|||
|
||||
|
||||
if (!empty($this->request->params['id'])) {
|
||||
if (!empty($this->request->params['favorite']) and count($this->request->params['favorite']) > 0) {
|
||||
if (!empty($this->request->params['extra'])){
|
||||
if ($this->request->params['extra'] == 'favorite') {
|
||||
$WORKER = $this->MiconwareSession->getWorker();
|
||||
$fav = false;
|
||||
foreach ($WORKER['Favority'] as $val) {
|
||||
|
@ -185,7 +186,16 @@ class JobController extends AppController {
|
|||
$this->DreamjobJobFavority->save($data);
|
||||
$this->MiconwareSession->setFlash(__('dreamjob.opening.fav.add.success'), 'flash', array('alert' => 'success'));
|
||||
}
|
||||
$this->set('OPP_NORMAL',true);
|
||||
}elseif ($this->request->params['extra'] == 'openinginfo') {
|
||||
$this->set('OPP_OPENING',true);
|
||||
}elseif ($this->request->params['extra'] == 'companyinfo') {
|
||||
$this->set('OPP_COMPANY',true);
|
||||
}else{
|
||||
$this->set('OPP_NORMAL',true);
|
||||
}
|
||||
}else
|
||||
$this->set('OPP_NORMAL',true);
|
||||
$con = $this->MiconwareSession->getOpeningCondition();
|
||||
$con['DreamjobJobOpening.id'] = $this->request->params['id'];
|
||||
$opening = $this->DreamjobJobOpening->find('first', array('conditions' => $con));
|
||||
|
|
Binary file not shown.
|
@ -2,8 +2,60 @@
|
|||
/*
|
||||
*
|
||||
*/
|
||||
|
||||
$avatar = false;
|
||||
$url = '';
|
||||
if($opening['AppUser']['avatar']){
|
||||
$url = $MEDIA.DS.$opening['AppUser']['avatar'];
|
||||
$avatar = true;
|
||||
}
|
||||
$fav=false;
|
||||
$opening_in_app=false;
|
||||
if(isset($WORKER['Favority'])){
|
||||
foreach($WORKER['Favority'] as $val){
|
||||
if($val['id'] == $opening['DreamjobJobOpening']['id'])
|
||||
$fav=true;
|
||||
}
|
||||
foreach($WORKER['DreamjobJobApplication'] as $val){
|
||||
if($val['opening_id'] == $opening['DreamjobJobOpening']['id'])
|
||||
$opening_in_app=true;
|
||||
$opening_inApp=$val;
|
||||
}
|
||||
}
|
||||
?>
|
||||
<div class="box-title">
|
||||
<div class="opening-header">
|
||||
<h1><span><?=$opening['DreamjobJobOpening']['title'];?></span></h1>
|
||||
|
||||
|
||||
<?=$this->Html->image('openingBanner.jpg',array('class'=>'banner'));?>
|
||||
<?php if($avatar){ ?> <img src="<?=$url;?>" class="logo"/><?php } ?>
|
||||
<h3><?=$opening['AppUser']['nickname'];?></h3>
|
||||
<h1><?=$opening['DreamjobJobOpening']['title'];?></h1>
|
||||
|
||||
<div class="btn-group">
|
||||
<?php
|
||||
if(isset($WORKER) and is_array($WORKER) and count($WORKER) > 0){
|
||||
?>
|
||||
<?php
|
||||
//TODO bereits beworben
|
||||
if($opening_in_app)
|
||||
echo $this->Html->link(__('dreamjob.my.application'),array('controller'=>'job','action'=>'applicationGet','id'=>$opening_inApp['id']),array('class'=>'btn btn-default','style'=>'margin-left:10px;'));
|
||||
else{
|
||||
echo $this->Html->link(($fav)?$this->Html->image('favority_off.png'):$this->Html->image('favority_on.png'),array('controller'=>'job','action'=>'openingGet','id'=>$opening['DreamjobJobOpening']['id'],'extra'=>'favorite'),array('class'=>'btn btn-default fav','escape'=>false));
|
||||
}
|
||||
?>
|
||||
<?php } ?>
|
||||
<?=$this->Html->link(__('dreamjob.company.to'),array('controller'=>'user','action'=>'profil','id'=>$opening['AppUser']['id']),array('class'=>'btn btn-default'));?>
|
||||
<?php if(!empty($WORKER)){ ?>
|
||||
<?php
|
||||
echo $this->Html->link(__('dreamjob.applicate'),array('controller'=>'job', 'action'=>'applicationSend', 'id'=> $opening['DreamjobJobOpening']['id']),array("class" => "btn btn-primary"));
|
||||
?>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<ul class="nav nav-tabs">
|
||||
<li<?=(!empty($OPP_NORMAL))?' class="active"':'';?>><?=$this->Html->link(__("dreamjob.opening"),array('controller'=>'job','action'=>'openingGet','id'=>$opening['DreamjobJobOpening']['id']));?></a></li>
|
||||
<li<?=(!empty($OPP_OPENING))?' class="active"':'';?>><?=$this->Html->link(__("dreamjob.opening.titleinfo"),array('controller'=>'job','action'=>'openingGet','id'=>$opening['DreamjobJobOpening']['id'],'extra'=>'openinginfo'));?></a></li>
|
||||
<li<?=(!empty($OPP_COMPANY))?' class="active"':'';?>><?=$this->Html->link(__("dreamjob.company.titleinfo"),array('controller'=>'job','action'=>'openingGet','id'=>$opening['DreamjobJobOpening']['id'],'extra'=>'companyinfo'));?></a></li>
|
||||
</ul>
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
<?php
|
||||
/*
|
||||
*
|
||||
*/
|
||||
?>
|
||||
<p>
|
||||
<h4><?=__("dreamjob.opening.titleinfo");?></h4>
|
||||
<?=__("dreamjob.graducation.company");?>: <?=$opening['DreamjobListGraducation']['name'];?><br/>
|
||||
<?=__("dreamjob.branch");?>: <?=$opening['DreamjobListBranch']['name'];?><br/>
|
||||
<?=__("dreamjob.kindofjob");?>: <?=$opening['DreamjobListKindofjob']['name'];?><br/>
|
||||
<span<?php if( time() > strtotime($opening['DreamjobJobOpening']['enddate'])){ ?> class="opening_outdate"<?php } ?>><?=__("dreamjob.opening.enddate");?>: <?=$this->Time->format('d.m.Y', $opening['DreamjobJobOpening']['enddate']);?></span>
|
||||
</p>
|
||||
<br/>
|
||||
<p>
|
||||
<h4><?=__("dreamjob.company.titleinfo");?></h4>
|
||||
<?=__("dreamjob.company");?>: <?=$opening['AppUser']['nickname'];?><br/>
|
||||
<?=__("dreamjob.headcount");?>: <?=$opening['DreamjobCompany']['headcount'];?><br/>
|
||||
<?=__("dreamjob.owner");?>: <?=$opening['DreamjobCompany']['owner'];?>
|
||||
</p>
|
||||
<p>
|
||||
<?=__("dreamjob.address");?>: <br/>
|
||||
<?=$opening['DreamjobUser']['street'];?><br/>
|
||||
<?=$opening['DreamjobUser']['postcode']." ".$opening['DreamjobListCity']['name'];?>
|
||||
</p>
|
|
@ -33,9 +33,9 @@ if($opening['AppUser']['avatar']){
|
|||
<span style="float: right;margin-right:60px;">
|
||||
<?php
|
||||
if(!$opening_in_fav)
|
||||
echo $this->Html->image('favority_off.png',array('url' => array('controller'=>'job','action'=>'openingGet','id'=>$opening['DreamjobJobOpening']['id'],'favorite'=>'favorite')));
|
||||
echo $this->Html->image('favority_off.png',array('url' => array('controller'=>'job','action'=>'openingGet','id'=>$opening['DreamjobJobOpening']['id'],'extra'=>'favorite')));
|
||||
else
|
||||
echo $this->Html->link('<span class="glyphicon glyphicon-trash"></span>',array('controller'=>'job','action'=>'openingGet','id'=>$opening['DreamjobJobOpening']['id'],'favorite'=>'favorite'),array('style'=>'color:black;font-size:16px;margin-right:5px;','escape'=>false));
|
||||
echo $this->Html->link('<span class="glyphicon glyphicon-trash"></span>',array('controller'=>'job','action'=>'openingGet','id'=>$opening['DreamjobJobOpening']['id'],'extra'=>'favorite'),array('style'=>'color:black;font-size:16px;margin-right:5px;','escape'=>false));
|
||||
?>
|
||||
</span>
|
||||
<?php } ?>
|
||||
|
|
|
@ -2,53 +2,37 @@
|
|||
/*
|
||||
*
|
||||
*/
|
||||
$fav=false;
|
||||
$opening_in_app=false;
|
||||
if(isset($WORKER['Favority'])){
|
||||
foreach($WORKER['Favority'] as $val){
|
||||
if($val['id'] == $opening['DreamjobJobOpening']['id'])
|
||||
$fav=true;
|
||||
}
|
||||
foreach($WORKER['DreamjobJobApplication'] as $val){
|
||||
if($val['opening_id'] == $opening['DreamjobJobOpening']['id'])
|
||||
$opening_in_app=true;
|
||||
$opening_inApp=$val;
|
||||
}
|
||||
}
|
||||
?>
|
||||
<div>
|
||||
<span><?=$this->Html->link(__('dreamjob.company.to'),array('controller'=>'user','action'=>'profil','id'=>$opening['AppUser']['id']));?></span>
|
||||
<?php
|
||||
if(isset($WORKER) and is_array($WORKER) and count($WORKER) > 0){
|
||||
?>
|
||||
<span style="float: right;">
|
||||
<?php
|
||||
//TODO bereits beworben
|
||||
if($opening_in_app)
|
||||
echo $this->Html->link(__('dreamjob.my.application'),array('controller'=>'job','action'=>'applicationGet','id'=>$opening_inApp['id']));
|
||||
else{
|
||||
//TODO isFavority
|
||||
$link=__('dreamjob.favority.adding');
|
||||
if($fav)
|
||||
$link=__('dreamjob.favority.removeing');
|
||||
echo $this->Html->link($link,array('controller'=>'job','action'=>'openingGet','id'=>$opening['DreamjobJobOpening']['id'],'favorite'=>'favorite'));
|
||||
}
|
||||
?>
|
||||
</span>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="box">
|
||||
<?=$this->element('job_opening_head');?>
|
||||
<?=$this->element('job_opening_head_extra');?>
|
||||
<br/>
|
||||
<div>
|
||||
<?=strip_tags($opening['DreamjobJobOpening']['text'],$strip_tags);?>
|
||||
</div>
|
||||
<?php if(!empty($WORKER)){ ?>
|
||||
<div class="buttonrow">
|
||||
<?php
|
||||
echo $this->Html->link(__('dreamjob.applicate'),array('controller'=>'job', 'action'=>'applicationSend', 'id'=> $opening['DreamjobJobOpening']['id']),array("class" => "btn btn-primary"));
|
||||
if(!empty($OPP_NORMAL)){
|
||||
echo strip_tags($opening['DreamjobJobOpening']['text'],$strip_tags);
|
||||
}
|
||||
if(!empty($OPP_OPENING)){
|
||||
?>
|
||||
</div>
|
||||
<p>
|
||||
<?=__("dreamjob.graducation.company");?>: <?=$opening['DreamjobListGraducation']['name'];?><br/>
|
||||
<?=__("dreamjob.branch");?>: <?=$opening['DreamjobListBranch']['name'];?><br/>
|
||||
<?=__("dreamjob.kindofjob");?>: <?=$opening['DreamjobListKindofjob']['name'];?><br/>
|
||||
<span<?php if( time() > strtotime($opening['DreamjobJobOpening']['enddate'])){ ?> class="opening_outdate"<?php } ?>><?=__("dreamjob.opening.enddate");?>: <?=$this->Time->format('d.m.Y', $opening['DreamjobJobOpening']['enddate']);?></span>
|
||||
</p>
|
||||
<?php
|
||||
}
|
||||
if(!empty($OPP_COMPANY)){
|
||||
?>
|
||||
<p>
|
||||
<?=__("dreamjob.company");?>: <?=$opening['AppUser']['nickname'];?><br/>
|
||||
<?=__("dreamjob.headcount");?>: <?=$opening['DreamjobCompany']['headcount'];?><br/>
|
||||
<?=__("dreamjob.owner");?>: <?=$opening['DreamjobCompany']['owner'];?>
|
||||
</p>
|
||||
<p>
|
||||
<?=__("dreamjob.address");?>: <br/>
|
||||
<?=$opening['DreamjobUser']['street'];?><br/>
|
||||
<?=$opening['DreamjobUser']['postcode']." ".$opening['DreamjobListCity']['name'];?>
|
||||
</p>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -279,24 +279,53 @@ body.loading #container{
|
|||
min-height: 250px;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.box-title{
|
||||
background-color: #97c00e;
|
||||
.opening-header h1 > span{
|
||||
display:table-cell;
|
||||
vertical-align:middle;
|
||||
text-align:center;
|
||||
}
|
||||
.opening-header h1{
|
||||
background-color: #3276B1;
|
||||
margin-top:6px;
|
||||
margin-bottom: 24px;
|
||||
display:table;
|
||||
margin-bottom: 10px;
|
||||
padding:25px 0px;
|
||||
width:100%;
|
||||
}
|
||||
.box-title h1{
|
||||
text-align: center;
|
||||
color:white;
|
||||
font-weight: bolder;
|
||||
margin-bottom: 20px;
|
||||
display:table;
|
||||
overflow:hidden;
|
||||
}
|
||||
.box-title h3{
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
margin-top: 20px;
|
||||
.opening-header img.banner{
|
||||
min-height:120px;
|
||||
min-width:100%;
|
||||
}
|
||||
.opening-header img.logo{
|
||||
position:relative;
|
||||
top:-100px;
|
||||
left:20px;
|
||||
background:white;
|
||||
border:1px solid grey;
|
||||
border-radius:3px;
|
||||
height:150px;
|
||||
margin-bottom:-80px;
|
||||
}
|
||||
.opening-header h3{
|
||||
display:inline-block;
|
||||
position:relative;
|
||||
color:white;
|
||||
top:-90px;
|
||||
left:30px;
|
||||
}
|
||||
.opening-header img.banner+h3{
|
||||
top:-60px;
|
||||
}
|
||||
.opening-header div{
|
||||
display:inline-block;
|
||||
position:relative;
|
||||
top:10px;
|
||||
float:right;
|
||||
}
|
||||
.btn.fav img{
|
||||
height:20px;
|
||||
}
|
||||
.buttonrow{
|
||||
text-align:right;
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 63 KiB |
Loading…
Reference in New Issue