Skip to content

Commit

Permalink
added search to the admin default dashboard, refs #41
Browse files Browse the repository at this point in the history
  • Loading branch information
rdiaztushman committed Jun 28, 2014
1 parent 4549cb6 commit d29b9b1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Admin/Controllers/Home.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function display()
{
$this->app->set('meta.title', 'Home');

echo \Dsc\System::instance()->get('theme')->renderTheme('Admin/Views::home/default.php');
echo \Dsc\System::instance()->get('theme')->renderTheme('Admin/Views::home/index.php');
}
}
?>
Empty file removed src/Admin/Views/home/default.php
Empty file.
16 changes: 16 additions & 0 deletions src/Admin/Views/home/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php if (class_exists('\Search\Factory')) { ?>
<div class="row">
<div class="col-md-12">
<div class="well well-sm search">
<form method="get" action="./admin/search" role="search">
<div class="input-group">
<input name="q" type="text" class="form-control" placeholder="Search..." />
<span class="input-group-btn">
<button class="btn btn-primary" type="submit" tabindex="3">Search</button>
</span>
</div>
</form>
</div>
</div>
</div>
<?php } ?>

0 comments on commit d29b9b1

Please sign in to comment.