2007-03-30 04:36:52 +00:00
|
|
|
<%
|
|
|
|
|
@todo = todo
|
2007-11-27 05:51:38 +00:00
|
|
|
suppress_context ||= false
|
|
|
|
|
suppress_project ||= false
|
2008-05-22 08:33:15 +00:00
|
|
|
suppress_edit_button ||= false
|
2007-03-30 04:36:52 +00:00
|
|
|
%>
|
|
|
|
|
<div id="<%= dom_id(todo) %>" class="item-container">
|
|
|
|
|
<div id="<%= dom_id(todo, 'line') %>">
|
|
|
|
|
<%= remote_delete_icon %>
|
2008-05-22 08:33:15 +00:00
|
|
|
<%= remote_edit_icon unless suppress_edit_button %>
|
2007-05-25 19:01:08 +00:00
|
|
|
<%= remote_star_icon %>
|
2007-03-30 04:36:52 +00:00
|
|
|
<%= remote_toggle_checkbox unless source_view_is :deferred %>
|
|
|
|
|
<div class="description<%= staleness_class( todo ) %>">
|
2008-09-07 06:58:08 -07:00
|
|
|
<% unless @todo.completed? %><span class="defer-container"><%= defer_link(1) %> <%= defer_link(7) %></span><% end %>
|
2008-04-10 20:05:55 +00:00
|
|
|
<%= date_span -%>
|
2008-07-04 14:04:33 +02:00
|
|
|
<span class="todo.descr"><%= h sanitize(todo.description) %></span>
|
2008-07-19 20:27:45 +02:00
|
|
|
<%= link_to(image_tag("recurring16x16.png"), {:controller => "recurring_todos", :action => "index"}, :class => "recurring_icon") if @todo.from_recurring_todo? %>
|
2007-03-30 04:36:52 +00:00
|
|
|
<%= tag_list %>
|
|
|
|
|
<%= deferred_due_date %>
|
2007-11-27 05:51:38 +00:00
|
|
|
<%= project_and_context_links( parent_container_type, :suppress_context => suppress_context, :suppress_project => suppress_project ) %>
|
2007-03-30 04:36:52 +00:00
|
|
|
<%= render(:partial => "todos/toggle_notes", :locals => { :item => todo }) if todo.notes? %>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="<%= dom_id(todo, 'edit') %>" class="edit-form" style="display:none">
|
|
|
|
|
<% form_remote_tag_edit_todo do -%>
|
|
|
|
|
<% #note: edit form will load here remotely -%>
|
|
|
|
|
<div class="placeholder"> </div>
|
|
|
|
|
<% end -%>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2008-08-01 17:16:11 +02:00
|
|
|
<%= apply_behaviour ".date_clear:click","var selector_x = this.getAttribute('id').replace('_x', ''); $(selector_x).value='';" %>
|