#102 design - datum opening

This commit is contained in:
Geno 2014-12-15 15:04:40 +01:00
parent d269f2659a
commit 8e02294810
1 changed files with 17 additions and 13 deletions

View File

@ -10,16 +10,7 @@ echo $this->Form->create('DreamjobJobOpening',$default_Form);
<fieldset> <fieldset>
<legend> <legend>
<?php <?php
/*
<c:choose>
<c:when test="${empty opening.id}">
<spring:message code="dreamjob.opening"/>
</c:when>
<c:otherwise>
<c:out value="${opening.title}"/>
</c:otherwise>
</c:choose>
*/
echo $this->Form->hidden("DreamjobJobOpening.company_id"); echo $this->Form->hidden("DreamjobJobOpening.company_id");
if(!empty($this->request->data['DreamjobJobOpening']['title'])) if(!empty($this->request->data['DreamjobJobOpening']['title']))
echo $this->request->data['DreamjobJobOpening']['title']; echo $this->request->data['DreamjobJobOpening']['title'];
@ -30,9 +21,22 @@ echo $this->Form->create('DreamjobJobOpening',$default_Form);
<?php echo $this->Form->input('DreamjobJobOpening.title',array('placeholder'=>__('dreamjob.opening.title.placeholder'),'label'=>array('text'=>__("dreamjob.title"),"class"=>$default_Form['inputDefaults']['label']['class']))); <?php echo $this->Form->input('DreamjobJobOpening.title',array('placeholder'=>__('dreamjob.opening.title.placeholder'),'label'=>array('text'=>__("dreamjob.title"),"class"=>$default_Form['inputDefaults']['label']['class'])));
if(empty($enddate_no)){ if(empty($enddate_no)){
echo $this->Form->input('DreamjobJobOpening.startdate',array('label'=>array('text'=>__("dreamjob.opening.startdate"),"class"=>$default_Form['inputDefaults']['label']['class']),"style"=>'width:20%;display:inline-block;','dateFormat' => 'DMY','minYear' => date('Y') - 10, 'maxYear' => date('Y')+10)); echo $this->Form->input('DreamjobJobOpening.startdate',array('label'=>array('text'=>__("dreamjob.opening.startdate"),"class"=>$default_Form['inputDefaults']['label']['class']),"style"=>'width:20%;display:inline-block;','dateFormat' => 'DMY','minYear' => date('Y') - 10, 'maxYear' => date('Y')+10));
}else }else{
echo $startdate; ?>
echo (empty($enddate))?__('dreamjob.opening.enddatum_description'):__('dreamjob.opening.enddatum_description (%s)',$enddate); <div class="form-group">
<label class="col-sm-3 control-label"><?=__("dreamjob.opening.enddate");?></label>
<div class="col-sm-9" style="text-align:left;"><?=$this->Time->format('d.m.Y',$startdate);?></div>
</div>
<?php } ?>
<div class="form-group">
<label class="col-sm-3 control-label"><?=__("dreamjob.opening.enddate");?></label>
<div class="col-sm-9" style="text-align:left;">
<?php
echo (empty($enddate))?__('dreamjob.opening.enddatum_description'):__('dreamjob.opening.enddatum_description (%s)',$this->Time->format('d.m.Y',$enddate));
?>
</div>
</div>
<?php
if(isset($enddate_next) && !empty($enddate_no)){ ?> if(isset($enddate_next) && !empty($enddate_no)){ ?>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label"><?=__("dreamjob.opening.addToEnddate");?></label> <label class="col-sm-3 control-label"><?=__("dreamjob.opening.addToEnddate");?></label>