Using checkboxes & add/remove icons, prettier

This commit is contained in:
Tyler Renelle 2012-02-11 11:58:42 -05:00
parent c979d24dac
commit d25710a760
3 changed files with 4 additions and 4 deletions

BIN
app/assets/images/add.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

View file

@ -1,16 +1,16 @@
<!-- Habits -->
<% if (habit_type==1) { %>
<a href="#" class="vote-up">+</a>
<a href="#" class="vote-down">-</a>
<a href="#" class="vote-up"><img src="assets/add.png" /></a>
<a href="#" class="vote-down"><img src="assets/remove.png" /></a>
<%= name %>
<% } else { %>
<!-- Daily & Todos -->
<% if (done) { %>
<a href="#" class="vote-down">[X]</a>
<input class="vote-down" type="checkbox" checked="checked"/>
<strike><%= name %></strike>
<% } else { %>
<a href="#" class="vote-up">[ ]</a>
<input class="vote-up" type="checkbox"/>
<%= name %>
<% } %>
<% } %>