This commit is contained in:
Sebastian Imberg 2014-05-01 11:50:28 +02:00
commit 8e9df391bc
8 changed files with 35 additions and 8 deletions

View File

@ -1107,6 +1107,14 @@ msgstr ""
msgid "dreamjob.avatar" msgid "dreamjob.avatar"
msgstr "" msgstr ""
#
msgid "dreamjob.favority.adding"
msgstr ""
#
msgid "dreamjob.favority.removeing"
msgstr ""
# #
# Generierte Fehlermeldungen eigenarbeit! # Generierte Fehlermeldungen eigenarbeit!
# #

View File

@ -1,4 +1,6 @@
<?php <?php
echo $this->Html->link(__('dreamjob.regisration.active.link'),array('controller' => 'registration', 'action' => 'active','code'=>$key, $url = $this->Html->url(array('controller' => 'registration', 'action' => 'active','code'=>$key,
'?'=>array('mail'=>$data['User']['mail']),'full_base' => true) ); '?'=>array('mail'=>$data['User']['mail']),'full_base' => true) );
echo $this->Html->link($url, $url);
?> ?>

View File

@ -11,11 +11,20 @@
<?php echo $this->Form->create('DreamjobJobApplication',$default_Form); ?> <?php echo $this->Form->create('DreamjobJobApplication',$default_Form); ?>
<fieldset> <fieldset>
<legend><?=__("dreamjob.application.form");?></legend> <legend><?=__("dreamjob.application.form");?></legend>
<?=$WORKER['AppUser']['first_name'].' '.$WORKER['AppUser']['last_name'];?><br/>
<?=$WORKER['DreamjobUser']['street'];?><br/>
<?=$WORKER['DreamjobUser']['postcode'].' '.$WORKER['DreamjobListCity']['name'];?><br/>
<br/>
<br/>
<?=$opening['AppUser']['nickname'];?><br/>
<?=$opening['DreamjobUser']['street'];?><br/>
<?=$opening['DreamjobUser']['postcode'].' '.$opening['DreamjobListCity']['name'];?><br/>
<br/>
<?php <?php
//echo $this->Form->hidden('DreamjobJobApplication.id'); //echo $this->Form->hidden('DreamjobJobApplication.id');
echo $this->Form->hidden('DreamjobJobApplication.opening_id'); echo $this->Form->hidden('DreamjobJobApplication.opening_id');
echo $this->Form->hidden('DreamjobJobApplication.worker_id'); echo $this->Form->hidden('DreamjobJobApplication.worker_id');
echo $this->Form->input('DreamjobJobApplication.subject',array('placeholder'=>__('dreamjob.opening.subject.placeholder'),'label'=>array('text'=>__("dreamjob.application.subject"),"class"=>$default_Form['inputDefaults']['label']['class']))).'<br/>'; echo $this->Form->text('DreamjobJobApplication.subject',array('label'=>false,'placeholder'=>__('dreamjob.opening.subject.placeholder'),'class'=>'form-control')).'<br/>';
echo $this->Form->textarea('DreamjobJobApplication.text',array("class"=>'form-control',"rows"=>10)); echo $this->Form->textarea('DreamjobJobApplication.text',array("class"=>'form-control',"rows"=>10));
?> ?>

View File

@ -28,10 +28,10 @@
echo $this->Html->link(__('dreamjob.my.application'),array('controller'=>'job','action'=>'applicationGet','id'=>$opening_inApp['id'])); echo $this->Html->link(__('dreamjob.my.application'),array('controller'=>'job','action'=>'applicationGet','id'=>$opening_inApp['id']));
else{ else{
//TODO isFavority //TODO isFavority
$link='dreamjob.favority.adding'; $link=__('dreamjob.favority.adding');
if($fav) if($fav)
$link='dreamjob.favority.removeing'; $link=__('dreamjob.favority.removeing');
echo $this->Html->link(__($link),array('controller'=>'job','action'=>'openingGet','id'=>$opening['DreamjobJobOpening']['id'],'favorite'=>'favorite')); echo $this->Html->link($link,array('controller'=>'job','action'=>'openingGet','id'=>$opening['DreamjobJobOpening']['id'],'favorite'=>'favorite'));
} }
?> ?>
</span> </span>

View File

@ -19,7 +19,7 @@
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h4 class="modal-title"></h4> <h3 class="modal-title"></h3>
</div> </div>
<div class="modal-body"></div> <div class="modal-body"></div>
<div class="modal-footer"> <div class="modal-footer">

View File

@ -28,7 +28,15 @@ $tcpdf->AddPage();
$tcpdf->SetY(35); $tcpdf->SetY(35);
$tcpdf->SetTextColor(0, 0, 0); $tcpdf->SetTextColor(0, 0, 0);
$tcpdf->SetFont($tcpdf->font); $tcpdf->SetFont($tcpdf->font);
$tcpdf->Image(WWW_ROOT.DS.'uploads'.DS.$WORKER['AppUser']['avatar'],0,40,0,140,'','','','',300,'L');
$url=WWW_ROOT.DS.'img'.DS'icon_user.png';
if($WORKER['AppUser']['take_systemwide']){
if($WORKER['User']['avatar'])
$url = WWW_ROOT.DS.'uploads'.DS.$WORKER['User']['avatar'];
}else
if($profil['AppUser']['avatar'])
$url = WWW_ROOT.DS.'uploads'.DS.$WORKER['AppUser']['avatar'];
$tcpdf->Image($url,0,40,0,140,'','','','',300,'L');
$tcpdf->SetY(185); $tcpdf->SetY(185);
$tcpdf->SetFont($tcpdf->font,'B',$tcpdf->fontsize+4); $tcpdf->SetFont($tcpdf->font,'B',$tcpdf->fontsize+4);
$tcpdf->Cell(0,0, __('dreamjob.application.mappe'), 0,1,'L'); $tcpdf->Cell(0,0, __('dreamjob.application.mappe'), 0,1,'L');

View File

@ -8,7 +8,7 @@
<?php <?php
$default_Form['type']='file'; $default_Form['type']='file';
echo $this->Form->create('AppUser',$default_Form); echo $this->Form->create('AppUser',$default_Form);
echo $this->Form->input('AppUser.avatar',array('type'=>'file','label'=>array('text'=>__("dreamjob.avatar"),"class"=>$default_Form['inputDefaults']['label']['class'])); echo $this->Form->input('AppUser.avatar',array('type'=>'file','label'=>array('text'=>__("dreamjob.avatar"),"class"=>$default_Form['inputDefaults']['label']['class'])));
?> ?>
<div class="buttonrow"> <div class="buttonrow">
<?=$this->Form->button('<span class="glyphicon glyphicon-floppy-disk"></span> '.__('dreamjob.settings.save'),array('div' => false,'class'=>"btn btn-primary ",'type' => 'submit'));?> <?=$this->Form->button('<span class="glyphicon glyphicon-floppy-disk"></span> '.__('dreamjob.settings.save'),array('div' => false,'class'=>"btn btn-primary ",'type' => 'submit'));?>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 20 KiB