#102 design - datum opening
This commit is contained in:
parent
d269f2659a
commit
8e02294810
|
@ -10,16 +10,7 @@ echo $this->Form->create('DreamjobJobOpening',$default_Form);
|
|||
<fieldset>
|
||||
<legend>
|
||||
<?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");
|
||||
if(!empty($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'])));
|
||||
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));
|
||||
}else
|
||||
echo $startdate;
|
||||
echo (empty($enddate))?__('dreamjob.opening.enddatum_description'):__('dreamjob.opening.enddatum_description (%s)',$enddate);
|
||||
}else{
|
||||
?>
|
||||
<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)){ ?>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label"><?=__("dreamjob.opening.addToEnddate");?></label>
|
||||
|
|
Loading…
Reference in New Issue