todos
This commit is contained in:
@@ -1,21 +1,24 @@
|
|||||||
<article>
|
<article>
|
||||||
<header>
|
<header>
|
||||||
<nav>
|
<nav>
|
||||||
<ul>
|
<ul>
|
||||||
<li><strong>TODOS</strong></li>
|
<li><strong>TODOS</strong></li>
|
||||||
</ul>
|
</ul>
|
||||||
<ul>
|
<ul>
|
||||||
<li><?=anchor("todo/?filter=all",'All',['role'=>($filter=='all'?'button':'')])?></li>
|
<li><?=anchor("todo/?filter=all",'All', ['role'=>($filter=='all'?'button':'')])?></li>
|
||||||
<li><?=anchor("todo/?filter=active",'Active',['role'=>($filter=='active'?'button':'')])?></li>
|
<li><?=anchor("todo/?filter=active",'Active', ['role'=>($filter=='active'?'button':'')])?></li>
|
||||||
<li><?=anchor("todo/?filter=done",'Done',['role'=>($filter=='done'?'button':'')])?></li>
|
<li><?=anchor("todo/?filter=done",'Done', ['role'=>($filter=='done'?'button':'')])?></li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
<?=form_open('todo/add')?>
|
<?=form_open('todo/add')?>
|
||||||
<input type="text" placeholder="todo" name="todo">
|
<fieldset role="group">
|
||||||
</form>
|
<input type="text" placeholder="Buy milk and eggs..." name="todo">
|
||||||
|
<button><i class="fa fa-plus"></i></button>
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<?php foreach($todos as $todo): ?>
|
<?php foreach($todos as $todo): ?>
|
||||||
<?php if ($todo->done): ?>
|
<?php if ($todo->done): ?>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -35,5 +38,5 @@
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td></tr>
|
</td></tr>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</table>
|
</table>
|
||||||
</article>
|
</article>
|
||||||
|
|||||||
Reference in New Issue
Block a user