mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-27 04:18:49 +01:00
17 lines
860 B
Text
17 lines
860 B
Text
<%
|
|
@initial_context_name = @context.name unless @context.nil?
|
|
@initial_context_name ||= @project.default_context.name unless @project.nil? || @project.default_context.nil?
|
|
@initial_context_name ||= current_user.contexts.first.name unless current_user.contexts.first.nil?
|
|
@initial_project_name = @project.name unless @project.nil?
|
|
-%>
|
|
<div id="todo_new_action_container">
|
|
|
|
<div id="toggle_forms" class="toggle_forms">
|
|
<a title="<%= t('shared.hide_action_form_title') %>" accesskey="n" href="#" id="toggle_action_new">« <%= t('shared.hide_form') %></a>
|
|
<a title="<%= t('shared.toggle_multi_title') %>" accesskey="m" href="#" id="toggle_multi"><%= t('shared.toggle_multi') %></a>
|
|
</div>
|
|
|
|
<%= render :partial => 'todos/new_todo_form', :object => Todo.new %>
|
|
<%= render :partial => 'todos/new_multi_todo_form', :object => Todo.new %>
|
|
|
|
</div>
|