This commit is contained in:
Martin Müller 2014-04-15 22:16:09 +02:00
parent 4208400e10
commit 114474bf40
2 changed files with 5 additions and 5 deletions

View File

@ -39,7 +39,7 @@ class SearchController extends AppController {
$this->render('/Search/searchopenings'); $this->render('/Search/searchopenings');
} }
/*
public function listopening() { public function listopening() {
$this->MiconwareSession->init($this); $this->MiconwareSession->init($this);
@ -55,5 +55,5 @@ class SearchController extends AppController {
$this->set("openings",$openings); $this->set("openings",$openings);
$this->render('/Search/listopenings'); $this->render('/Search/listopenings');
} }
} }*/
} }

View File

@ -8,9 +8,9 @@
<div class="box"> <div class="box">
<h1><?=__('dreamjob.search');?></h1> <h1><?=__('dreamjob.search');?></h1>
<div class="searchform"> <div class="searchform">
<?php echo $this->Form->create(null,array('inputDefaults'=> array('div' => false,'label'=>false,'class' => 'form-control'),'url'=>array('controller'=>'home', 'action'=>'home'))); ?> <?php echo $this->Form->create(null,array('inputDefaults'=> array('div' => false,'label'=>false,'class' => 'form-control'),'url'=>array('controller'=>'search', 'action'=>'openings'),'type'=>'get')); ?>
<div class="input-group"> <div class="input-group">
<?php echo $this->Form->input('textsearch');?> <?php echo $this->Form->input('DreamjobJobOpening.title');?>
<span class="input-group-btn"> <span class="input-group-btn">
<?php echo $this->Form->button('<span class="glyphicon glyphicon-search"></span>',array('div' => false,'class'=>"btn btn-default",'type' => 'submit')); ?> <?php echo $this->Form->button('<span class="glyphicon glyphicon-search"></span>',array('div' => false,'class'=>"btn btn-default",'type' => 'submit')); ?>
</span> </span>
@ -23,7 +23,7 @@
echo "<br/>"; echo "<br/>";
echo "<br/>"; echo "<br/>";
} }
echo $this->Html->link(__('dreamjob.search.to'),array('controller'=>'home', 'action'=>'home'),array("class" => "btn btn-primary")); echo $this->Html->link(__('dreamjob.search.to'),array('controller'=>'search', 'action'=>'opening'),array("class" => "btn btn-primary"));
?> ?>
</div> </div>
</div> </div>