Make header project selection work
This commit is contained in:
@@ -28,8 +28,14 @@
|
|||||||
<h1><?=anchor('', img('assets/images/logo.png'))?></h1>
|
<h1><?=anchor('', img('assets/images/logo.png'))?></h1>
|
||||||
<div class="status">
|
<div class="status">
|
||||||
<select name="activeProject">
|
<select name="activeProject">
|
||||||
<option value="<?=site_url('');?>">Beispielprojekt</option>
|
<?php
|
||||||
<option value="<?=site_url('projects');?>">Projekte verwalten</option>
|
$projects = $this->project->getAll();
|
||||||
|
foreach ($projects as $project):
|
||||||
|
?>
|
||||||
|
<option value="<?=site_url('projects/detail/' . $project['id'] . '?active_project=' . $project['id']);?>"<?=($this->input->get('active_project') == $project['id']) ? ' selected' : '';?>><?=$project['name'];?></option>
|
||||||
|
<?php
|
||||||
|
endforeach;
|
||||||
|
?>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="menu"><?= _('Hello,') ?> <a href="<?=site_url('');?>"><?=$this->user->profile()->firstname;?> <?=$this->user->profile()->lastname;?></a>! | <?=lang_select('assets/images');?> | <a href="#"><?=_('Help')?></a> | <?=anchor('auth/settings', _('Settings'));?> | <?=anchor('auth/logout', _('Logout'));?></div>
|
<div class="menu"><?= _('Hello,') ?> <a href="<?=site_url('');?>"><?=$this->user->profile()->firstname;?> <?=$this->user->profile()->lastname;?></a>! | <?=lang_select('assets/images');?> | <a href="#"><?=_('Help')?></a> | <?=anchor('auth/settings', _('Settings'));?> | <?=anchor('auth/logout', _('Logout'));?></div>
|
||||||
|
|||||||
Reference in New Issue
Block a user