diff --git a/tracks/app/views/shared/_add_new_item_form.rhtml b/tracks/app/views/shared/_add_new_item_form.rhtml index 8869ecf0..7d469a20 100644 --- a/tracks/app/views/shared/_add_new_item_form.rhtml +++ b/tracks/app/views/shared/_add_new_item_form.rhtml @@ -18,7 +18,7 @@ {:title => "Hide next action form", :accesskey => "n"}) %> -
+
<% form_remote_tag( diff --git a/tracks/app/views/todos/_edit_form.rhtml b/tracks/app/views/todos/_edit_form.rhtml index eee22403..5f511800 100644 --- a/tracks/app/views/todos/_edit_form.rhtml +++ b/tracks/app/views/todos/_edit_form.rhtml @@ -3,57 +3,65 @@ <%= hidden_field( "todo", "id" ) %> <%= source_view_tag( @source_view ) %> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <% if controller.controller_name == "project" || @todo.deferred? -%> - - <% end -%> - - - -
<%= text_field( "todo", "description", "tabindex" => 8) %>
<%= text_area( "todo", "notes", "cols" => 20, "rows" => 5, "tabindex" => 9) %>
- - -
-
<%= text_field_tag "tag_list", @todo.tags.collect{|t| t.name}.join(", "), :size => 40, :tabindex => 12 %>
- Cancel
+ +<%= text_field( "todo", "description", "size" => 30, "tabindex" => 8) %> + +<%= text_area( "todo", "notes", "cols" => 29, "rows" => 4, "tabindex" => 9) %> + +
+ + + + + +
+ +
+ + + + + +
+ + +<%= text_field_tag dom_id(@todo, 'tag_list'), nil, :size => 30, :tabindex => 12 %> + +
+ +<%= text_field("todo", "due", "size" => 12, "id" => dom_id(@todo, 'due'), "class" => "Date", "onfocus" => "Calendar.setup", "tabindex" => 13, "autocomplete" => "off") %> +
+ +
+ + <%= text_field("todo", "show_from", "size" => 12, "id" => dom_id(@todo, 'show_from'), "class" => "Date", "onfocus" => "Calendar.setup", "tabindex" => 14, "autocomplete" => "off") %> +
+ +<% if controller.controller_name == "project" || @todo.deferred? -%> + +<% end -%> + +
+Cancel +
+ <%= calendar_setup( dom_id(@todo, 'due') ) %> <%= calendar_setup( dom_id(@todo, 'show_from') ) %> diff --git a/tracks/public/stylesheets/standard.css b/tracks/public/stylesheets/standard.css index 0441833e..04e970b3 100644 --- a/tracks/public/stylesheets/standard.css +++ b/tracks/public/stylesheets/standard.css @@ -248,7 +248,7 @@ div#input_box { #input_box ul {list-style-type: circle; font-size: 0.9em;} -#input_box .show_from_input, #input_box .due_input { +.show_from_input, .due_input, .project_input, .context_input { float:left; } @@ -661,12 +661,25 @@ form { background-repeat: repeat-x; background-position: top; } +.edit_todo_form { + padding:5px; + width:100%; +} +.edit_todo_form input, .edit_todo_form textarea { + width:95%; +} #todo_new_action_container input, #todo_new_action_container textarea { width:260px; } #todo_new_action_container .show_from_input input { width:120px; } +.edit_todo_form .show_from_input input, .edit_todo_form .context_input input { + width:45%; +} +.edit_todo_form .show_from_input, .edit_todo_form .context_input { + margin-left:5%; +} #todo_new_action_container .show_from_input { margin-left:15px; } @@ -674,6 +687,19 @@ form { #todo_new_action_container .due_input input { width:120px; } +.edit_todo_form .tag_list_label { + clear:both; +} +.edit_todo_form .due_input, .edit_todo_form .show_from_input, .edit_todo_form .project_input, .edit_todo_form .context_input { + width:45%; +} +.edit_todo_form .due_input input, .edit_todo_form .show_from_input input, .edit_todo_form .project_input input, .edit_todo_form .context_input input { + width:100%; +} +.edit_todo_form .submit_box { + width:95%; + text-align:center; +} #todo-form-new-action .submit_box { width:260px; text-align:center; @@ -681,10 +707,13 @@ form { #todo-form-new-action .submit_box input { width:50%; } +.edit_todo_form .submit_box input { + width:120px; +} #hide_todo_new_action { text-align:right; } -#todo-form-new-action label { +#todo-form-new-action label, .edit_todo_form label { display:block; }