startseite

This commit is contained in:
Martin Müller 2014-03-05 19:01:44 +01:00
parent 5d8504944e
commit 5a7c86cff8
4 changed files with 48 additions and 11 deletions

View File

@ -20,12 +20,12 @@ class HomeController extends AppController {
* @throws NotFoundException When the view file could not be found
* or MissingViewException in debug mode.
*/
private $home_opening_condition = array('contitions'=>array('active'=>true),'order'=>'DreamjobJobOpening.id DESC','limit'=>3);
public function home() {
$this->MiconwareSession->init($this);
$this->MiconwareSession->initWeb($this);
$this->MiconwareSession->setFlash('In Entwicklung','flash',array('alert'=>'info'));
$openings = $this->DreamjobJobOpening->find('all',array('contitions'=>array('active'=>true),'order'=>'DreamjobJobOpening.id DESC','limit'=>3));
$openings = $this->DreamjobJobOpening->find('all',$this->home_opening_condition);
$this->set('openings',$openings);
$this->set('title', 'dreamjob.startpage');
$this->set('MENU_START', true);
@ -52,7 +52,8 @@ class HomeController extends AppController {
$this->MiconwareSession->initWeb($this);
$openings = $this->DreamjobJobOpening->find('all',$this->home_opening_condition);
$this->set('openings',$openings);
$this->set('title', 'dreamjob.startpage');
$this->set('MENU_START', true);
$this->render('/Home/home');
@ -67,7 +68,8 @@ class HomeController extends AppController {
$this->MiconwareSession->setFlash('dreamjob.loggingoutError','flash',array('alert'=>'danger'));
$this->MiconwareSession->initWeb($this);
$openings = $this->DreamjobJobOpening->find('all',$this->home_opening_condition);
$this->set('openings',$openings);
$this->set('title', 'dreamjob.startpage');
$this->set('MENU_START', true);
$this->render('/Home/home');
@ -76,7 +78,6 @@ class HomeController extends AppController {
public function contact() {
$this->MiconwareSession->init($this);
sleep(1);
$this->MiconwareSession->initWeb($this);
$this->set('title', 'dreamjob.contact');
$this->render('/Home/contact');

View File

@ -3,15 +3,15 @@
*
*/
?>
<div class="box" style="text-align:center;">
<img src="http://openhatch.org/blog/wp-content/uploads/2014/01/osctc-columbia.jpg" style="width:500;height:250px;float:left;margin-right:20px;"/>
<div style="display:inline-block;width:380px;height:250px;background-color:red; padding-top:40px;">
<h1 style="color:white;"><?=__('dreamjob.search');?></h1>
<div style="display:inline-block;width:80%;">
<div class="box start-search-box" style="text-align:center;">
<?=$this->Html->image('start-beside-search.jpg'); ?>
<div class="box">
<h1><?=__('dreamjob.search');?></h1>
<div class="searchform">
<div class="input-group">
<input type="text" class="form-control">
<span class="input-group-btn">
<button class="btn btn-default" type="button" style="background-color:orange;">Go!</button>
<button class="btn btn-default" type="button">Go!</button>
</span>
</div>
</div>

View File

@ -322,6 +322,42 @@ body.loading #container{
padding: 40px 0;
text-align: center;
}
/*
* Startseite
*/
.start-search-box{
text-align:center;
}
.start-search-box img{
float:left;
margin-right:20px;
}
.start-search-box .box{
display:inline-block;
width:465px;
height:282px;
background-color:#9d1c16;
padding-top:40px;
}
.start-search-box .box h1{
color:white;
}
.start-search-box .box .searchform{
display:inline-block;
margin:auto;
width:80%;
}
.start-search-box .box .searchform .form-control{
background-color:grey;
border:1px solid #FF8800;
}
.start-search-box .box .searchform .btn.btn-default{
background-color:orange;
border:1px solid #FF8800;
}
/*
* Messages
*/
.msg legend{
margin:0px 0px 5px 0px;
font-size:14px;

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB