dreamjob/app/View/Job/opening_edit.ctp

83 lines
5.2 KiB
Plaintext
Raw Normal View History

2014-02-23 11:12:08 +01:00
<?php
/*
*
*/
?>
<div class="box">
<?php
echo $this->Form->create('DreamjobJobOpening',$default_Form);
?>
<fieldset>
<legend>
<?php
2014-12-15 15:04:40 +01:00
2014-03-01 11:17:23 +01:00
echo $this->Form->hidden("DreamjobJobOpening.company_id");
2014-05-07 10:51:24 +02:00
if(!empty($this->request->data['DreamjobJobOpening']['title']))
2014-03-01 11:17:23 +01:00
echo $this->request->data['DreamjobJobOpening']['title'];
else
echo __("dreamjob.opening.addForm");
2014-02-23 11:12:08 +01:00
?>
</legend>
2014-04-28 12:53:13 +02:00
<?php echo $this->Form->input('DreamjobJobOpening.title',array('placeholder'=>__('dreamjob.opening.title.placeholder'),'label'=>array('text'=>__("dreamjob.title"),"class"=>$default_Form['inputDefaults']['label']['class'])));
2014-11-25 19:50:10 +01:00
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));
2014-12-15 15:04:40 +01:00
}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
2014-11-25 19:50:10 +01:00
if(isset($enddate_next) && !empty($enddate_no)){ ?>
<div class="form-group">
<label class="col-sm-3 control-label"><?=__("dreamjob.opening.addToEnddate");?></label>
<div class="col-sm-9" style="text-align:left;">
<?=$this->Form->checkbox('DreamjobJobOpening.addToEnddate',array("class"=>'form-control',"label"=>__("dreamjob.opening.addToEnddate")))?>
</div>
</div>
<?php }
2014-03-01 11:17:23 +01:00
echo $this->Form->input('DreamjobJobOpening.kindofjob_id',array('label'=>array('text'=>__("dreamjob.kindofjob"),"class"=>$default_Form['inputDefaults']['label']['class'])));
echo $this->Form->input('DreamjobJobOpening.graducation_id',array('label'=>array('text'=>__("dreamjob.graducation"),"class"=>$default_Form['inputDefaults']['label']['class'])));
2014-03-28 16:22:19 +01:00
echo $this->Form->input('DreamjobJobOpening.branch_id',array('label'=>array('text'=>__("dreamjob.branch"),"class"=>$default_Form['inputDefaults']['label']['class']))); ?>
2014-03-01 11:17:23 +01:00
<div class="form-group">
2014-03-16 12:20:20 +01:00
<label class="col-sm-3 control-label"><?=__("dreamjob.opening.active");?></label>
2014-03-16 12:22:29 +01:00
<div class="col-sm-9" style="text-align:left;">
2014-03-01 11:17:23 +01:00
<?=$this->Form->checkbox('DreamjobJobOpening.active',array("class"=>'form-control',"label"=>__("dreamjob.opening.active")))?>
2014-03-05 22:01:30 +01:00
</div>
2014-03-01 11:17:23 +01:00
</div>
2015-02-11 20:05:35 +01:00
<div class="form-group">
<label class="col-sm-3 control-label">
<?=$this->Html->link(__("dreamjob.agb.accept"),array('controller'=>'home','action'=>'agb'),array('data-target'=>'#popup','data-toggle'=>"modal",'title'=>__('dreamjob.agb'),"ref"=>"eventOff"));?>
</label>
<div class="col-sm-9" style="text-align:left;">
<?=$this->Form->checkbox('DreamjobJobOpening.agb',array("class"=>'form-control',"label"=>__("dreamjob.agb")))?>
</div>
</div>
<div class="form-group">
2015-02-15 16:29:38 +01:00
<label class="col-sm-3 control-label"><a href="http://info.dream-job.eu/preisliste/" rel="external" target="_blank"><?=__("dreamjob.cost.accept");?></a></label>
2015-02-11 20:05:35 +01:00
<div class="col-sm-9" style="text-align:left;">
<?=$this->Form->checkbox('DreamjobJobOpening.cost',array("class"=>'form-control',"label"=>__("dreamjob.cost")))?>
</div>
</div>
2014-03-01 11:17:23 +01:00
<legend><?=__("dreamjob.address");?></legend>
2014-04-28 12:53:13 +02:00
<?php echo $this->Form->input('DreamjobJobOpening.street',array('placeholder'=>__('dreamjob.street.placeholder'),'label'=>array('text'=>__("dreamjob.street"),"class"=>$default_Form['inputDefaults']['label']['class'])));
echo $this->Form->input('DreamjobJobOpening.postcode',array('placeholder'=>__('dreamjob.postcode.placeholder'),'label'=>array('text'=>__("dreamjob.postcode"),"class"=>$default_Form['inputDefaults']['label']['class'])));
2014-04-22 16:01:00 +02:00
echo $this->Form->input('DreamjobJobOpening.city_id',array("label" => array('text'=>__("dreamjob.city"),"class"=>$default_Form['inputDefaults']['label']['class']))); ?>
2014-03-01 11:17:23 +01:00
<legend><?=__("dreamjob.text");?></legend>
<div><?php echo $this->Form->textarea('DreamjobJobOpening.text',array("class"=>'form-control',"rows"=>10)); ?></div>
2014-03-05 22:01:30 +01:00
<div class="buttonrow">
2014-03-26 09:15:43 +01:00
<?=$this->Form->button(__('dreamjob.save'),array('div' => false,'class'=>"btn btn-primary",'type' => 'submit'));?>
2014-03-01 11:17:23 +01:00
</div>
2014-02-23 11:12:08 +01:00
</fieldset>
<?php echo $this->Form->end(); ?>
</div>