company profil umstellung #89

This commit is contained in:
Geno 2015-01-18 17:56:28 +01:00
parent 07b8487bf5
commit f4fd3dbd40
3 changed files with 55 additions and 90 deletions

View File

@ -3,7 +3,7 @@
* *
*/ */
if($isLoggedin){ if(!empty($isLoggedin)){
?> ?>

View File

@ -5,81 +5,61 @@
$avatar = false; $avatar = false;
if($profil['AppUser']['avatar']) if($profil['AppUser']['avatar'])
$avatar = true; $avatar = true;
?> ?>
<div class="box-extra"> <div class="box company-header">
<?php if($avatar or $edit){ ?> <?php if($avatar or $edit){ ?>
<div class="box-extra-left infofield"> <div class="logo">
<div class="box"> <i>
<?php <?php
$url = $MEDIA.DS.$profil['AppUser']['avatar']; $url = $MEDIA.DS.$profil['AppUser']['avatar'];
if($edit and !isset($url)) if($edit and !isset($url))
$url = 'img/icon_company.png'; $url = 'img/icon_company.png';
?> ?>
<img src="<?=$url;?>"/> <img src="<?=$url;?>"/>
<?php if($edit): ?> <?php if($edit): ?>
<div class="imgsubtitle edit"> <div class="imgsubtitle edit">
<?php <?php
$link = '<span class="glyphicon glyphicon-picture"></span>'.__('dreamjob.image.edit'); $link = '<span class="glyphicon glyphicon-picture"></span>'.__('dreamjob.image.edit');
echo $this->Html->link($link,array('controller' => 'user', 'action' => 'avatar_upload'),array('data-target'=>'#popup','data-toggle'=>"modal",'title'=>__('dreamjob.image.edit'),"ref"=>"eventOff",'escape'=>false)); echo $this->Html->link($link,array('controller' => 'user', 'action' => 'avatar_upload'),array('data-target'=>'#popup','data-toggle'=>"modal",'title'=>__('dreamjob.image.edit'),"ref"=>"eventOff",'escape'=>false));
?> ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div> </i>
<?php if(!empty($profil['DreamjobCompany']['website'])){?> </div>
<p>
<?=__("dreamjob.website");?><br/> <?php } ?>
<a href="<?=$profil['DreamjobCompany']['website'];?>" rel="external" target="_blank">
<?=$profil['DreamjobCompany']['website'];?>
</a> <h1><?=$profil['AppUser']['nickname'];?></h1>
</p> <div class="columns">
<?php } ?> <div class="bar">
<?php if(!empty($profil['DreamjobCompany']['website'])){?>
<p>
<?=__("dreamjob.website");?><br/>
<a href="<?=$profil['DreamjobCompany']['website'];?>" rel="external" target="_blank">
<?=$profil['DreamjobCompany']['website'];?>
</a>
</p>
<?php } ?>
<p> <p>
<?=__("dreamjob.mail");?><br/> <?=__("dreamjob.mail");?><br/>
<a href="mailto:<?=$profil['User']['mail'];?>"> <a href="mailto:<?=$profil['User']['mail'];?>"><?=__('dreamjob.mail.contact');?></a>
<?=__('dreamjob.mail.contact');?>
</a>
</p> </p>
<br/>
</div> </div>
<?php } ?> <div class="bar">
<div class="box"> <p>
<?=__("dreamjob.owner");?>:<br/>
<h1><?=$profil['AppUser']['nickname'];?></h1> <?=$profil['DreamjobCompany']['owner'];?>
<div class="columns"> </p>
<?php if(!$avatar and !$edit){ ?> <p>
<div class="bar"> <?=__("dreamjob.branch");?>:<br/>
<?php if(!empty($profil['DreamjobCompany']['website'])){?> <?=$profil['DreamjobListBranch']['name'];?>
<p> </p>
<?=__("dreamjob.website");?><br/> </div>
<a href="<?=$profil['DreamjobCompany']['website'];?>" rel="external" target="_blank"> <div class="bar">
<?=$profil['DreamjobCompany']['website'];?> <h3><?=__("dreamjob.address");?></h3>
</a> <?=$profil['DreamjobUser']['street'];?><br/>
</p> <?=$profil['DreamjobUser']['postcode']." ".$profil['DreamjobListCity']['name'];?>
<?php } ?>
<p>
<?=__("dreamjob.mail");?><br/>
<a href="mailto:<?=$profil['User']['mail'];?>">
<?=__('dreamjob.mail.contact');?>
</a>
</p>
</div>
<?php } ?>
<div class="bar">
<p>
<?=__("dreamjob.owner");?>:<br/>
<?=$profil['DreamjobCompany']['owner'];?>
</p>
<p>
<?=__("dreamjob.branch");?>:<br/>
<?=$profil['DreamjobListBranch']['name'];?>
</p>
</div>
<div class="bar">
<h3><?=__("dreamjob.address");?></h3>
<?=$profil['DreamjobUser']['street'];?><br/>
<?=$profil['DreamjobUser']['postcode']." ".$profil['DreamjobListCity']['name'];?>
</div>
</div> </div>
</div> </div>
</div> </div>

View File

@ -251,34 +251,19 @@ body.loading #container{
/* /*
* Extra * Extra
*/ */
.box-extra{ .company-header .logo{
display:table;
margin-bottom: 15px;
}
.box-extra-left{
display:table-cell;
width:290px;
min-height: 270px;
float:left; float:left;
} }
.box-extra-left > .box{ .company-header .logo+h1{
width:250px; display:inline-block;
height: 250px; margin-left:30px;
padding: 10px; margin-top:55px;
vertical-align: middle;
display:table-cell;
} }
.box-extra-left > .box > img{ .company-header .imgsubtitle.edit{
max-height: 250px; width:150px;
max-width: 250px; margin-top:0px;
} }
.box-extra-left+.box{
display:table-cell;
width: 100%;
min-height: 250px;
vertical-align: top;
}
.opening-header h1 > span{ .opening-header h1 > span{
display:table-cell; display:table-cell;
vertical-align:middle; vertical-align:middle;
@ -298,7 +283,7 @@ body.loading #container{
min-height:120px; min-height:120px;
min-width:100%; min-width:100%;
} }
.opening-header .logo i{ .opening-header .logo i,.company-header .logo i{
width:150px; width:150px;
height:150px; height:150px;
vertical-align:middle; vertical-align:middle;