2007-03-30 04:36:52 +00:00
|
|
|
<%
|
2012-04-03 20:29:58 +02:00
|
|
|
@initial_context_name = @context.name if @context
|
|
|
|
|
@initial_context_name ||= @project.default_context.name unless @project.nil? || @project.default_context.nil?
|
|
|
|
|
@initial_context_name ||= @contexts.active.first.name unless @contexts.active.first.nil?
|
2011-02-26 14:20:51 +01:00
|
|
|
@initial_context_name ||= @contexts.first.name unless @contexts.first.nil?
|
2009-03-27 17:03:18 +01:00
|
|
|
@initial_project_name = @project.name unless @project.nil?
|
2011-10-06 15:37:51 +02:00
|
|
|
@initial_tags ||= @default_tags
|
|
|
|
|
@initial_tags ||= @project.default_tags unless @project.nil?
|
2011-05-08 16:40:31 +02:00
|
|
|
reset_tab_index
|
2009-03-27 17:03:18 +01:00
|
|
|
-%>
|
2007-04-18 06:45:09 +00:00
|
|
|
<div id="todo_new_action_container">
|
2007-03-30 04:36:52 +00:00
|
|
|
|
2010-07-14 13:34:30 +02:00
|
|
|
<div id="toggle_forms" class="toggle_forms">
|
2011-02-09 20:41:34 +01:00
|
|
|
<a title="<%= t('shared.hide_action_form_title') %>" accesskey="n" href="#" id="toggle_action_new"><%= t('shared.hide_form') %></a> |
|
2010-10-31 21:27:13 +08:00
|
|
|
<a title="<%= t('shared.toggle_multi_title') %>" accesskey="m" href="#" id="toggle_multi"><%= t('shared.toggle_multi') %></a>
|
2007-11-18 08:05:39 +00:00
|
|
|
</div>
|
2007-03-30 04:36:52 +00:00
|
|
|
|
2010-12-17 16:01:22 +01:00
|
|
|
<%= render :partial => 'todos/new_todo_form', :object => Todo.new %>
|
|
|
|
|
<%= render :partial => 'todos/new_multi_todo_form', :object => Todo.new %>
|
2010-07-14 13:34:30 +02:00
|
|
|
|
2009-09-06 20:00:19 -04:00
|
|
|
</div>
|