diff --git a/app/assets/stylesheets/legacy.scss b/app/assets/stylesheets/legacy.scss index b5cee16a..cc5f1916 100644 --- a/app/assets/stylesheets/legacy.scss +++ b/app/assets/stylesheets/legacy.scss @@ -14,7 +14,7 @@ div.depends_on label { float: left; } -div#input_box div#todo_new_action_container div#todo_multi_add form#todo-form-multi-new-action.inline-form label { +div#input_box div#todo_multi_add form#todo-form-multi-new-action.inline-form label { float: center; } @@ -900,11 +900,13 @@ input#go_to_project, input#context_hide { text-align:right; } -#todo-form-new-action label, .edit_todo_form label { +.edit_todo_form label { display: block; padding-bottom: 3px; } + + form.button-to { border: none; padding: 0px; diff --git a/app/views/shared/_add_new_item_form.html.erb b/app/views/shared/_add_new_item_form.html.erb index e592540a..6de33308 100644 --- a/app/views/shared/_add_new_item_form.html.erb +++ b/app/views/shared/_add_new_item_form.html.erb @@ -7,14 +7,14 @@ @initial_tags ||= @default_tags @initial_tags ||= @project.default_tags unless @project.nil? -%> -
+
- <%= render :partial => 'todos/new_todo_form', :object => Todo.new %> - <%= render :partial => 'todos/new_multi_todo_form', :object => Todo.new %> + <%= render :partial => 'todos/new_todo_form', :locals => {todo: Todo.new} %> + <%= render :partial => 'todos/new_multi_todo_form', :locals => {todo: Todo.new} %>
diff --git a/app/views/todos/_new_multi_todo_form.html.erb b/app/views/todos/_new_multi_todo_form.html.erb index 1e30579a..2ac4f94d 100644 --- a/app/views/todos/_new_multi_todo_form.html.erb +++ b/app/views/todos/_new_multi_todo_form.html.erb @@ -1,5 +1,3 @@ -<%- todo = new_multi_todo_form -%> - - - <%= text_area_tag( "todo[multiple_todos]", "", :cols => 29, :rows => 6 ) %> - - - - - - - - - - - <%= hidden_field_tag "initial_tag_list", @initial_tags%> - <%= text_field_tag "multi_tag_list", @initial_tags, :name=>:tag_list, :size => 30 %> - <%= content_tag("div", "", :id => "tag_list_auto_complete", :class => "auto_complete") %> - - <%= check_box_tag('todos_sequential', 'true', false) %> - - -
-
- -
+
+ + <%= text_area_tag( "todo[multiple_todos]", "", :cols => 29, :rows => 6, :class => "form-control" ) %>
+
+ + + +
+ +
+ + + +
+ +
+ + <%= hidden_field_tag "initial_tag_list", @initial_tags%> + <%= text_field_tag "multi_tag_list", @initial_tags, :name=>:tag_list, :size => 30, :class => "form-control input-sm" %> + <%= content_tag("div", "", :id => "tag_list_auto_complete", :class => "auto_complete") %> +
+ +
+ +
+ + <% end -%>
diff --git a/app/views/todos/_new_todo_form.html.erb b/app/views/todos/_new_todo_form.html.erb index 4f8ef0c2..aa02e6a6 100644 --- a/app/views/todos/_new_todo_form.html.erb +++ b/app/views/todos/_new_todo_form.html.erb @@ -1,5 +1,3 @@ -<%- todo = new_todo_form -%> -
<%= form_for(todo, :html=> { :id=>'todo-form-new-action', :name=>'todo', :class => 'inline-form new_todo_form' }) do |t|%> @@ -10,56 +8,66 @@ <%= get_list_of_error_messages_for(todo) %>
- - <%= image_tag("blank.png", :title =>t('todos.star_action'), :class => "todo_star", :style=> "float: right")%> - <%= t.text_field("description", "size" => 30, "maxlength" => 100, "autocomplete" => "off", :autofocus => true) %> - - - <%= t.text_area("notes", "cols" => 29, "rows" => 6) %> - - - - - - - - - - <%= hidden_field_tag "initial_tag_list", @initial_tags%> - <%= text_field_tag "tag_list", @initial_tags, :size => 30 %> - <%= content_tag("div", "", :id => "tag_list_auto_complete", :class => "auto_complete") %> - -
- - <%= t.text_field("due", "size" => 12, "class" => "Date", "autocomplete" => "off") %> +
+ + <%= image_tag("blank.png", :title =>t('todos.star_action'), :class => "todo_star", :style=> "float: right")%> + <%= t.text_field("description", "size" => 30, "maxlength" => 100, "autocomplete" => "off", :autofocus => true, :class => "form-control input-sm") %>
-
- - <%= t.text_field("show_from", "size" => 12, "class" => "Date", "autocomplete" => "off") %> +
+ + <%= t.text_area("notes", "cols" => 29, "rows" => 6, :class => "form-control input-sm") %> +
+ +
+ + + +
+ +
+ + +
+ +
+ + <%= hidden_field_tag "initial_tag_list", @initial_tags%> + <%= text_field_tag "tag_list", @initial_tags, :size => 30, :class => "form-control input-sm" %> + <%= content_tag("div", "", :id => "tag_list_auto_complete", :class => "auto_complete") %> +
+ +
+
+ + <%= t.text_field("due", "size" => 12, "class" => "Date form-control input-sm", "autocomplete" => "off") %> +
+ +
+ + <%= t.text_field("show_from", "size" => 12, "class" => "Date form-control input-sm", "autocomplete" => "off") %> +
- -
- +
+ +
+ +
+ + <%= text_field_tag "predecessor_input", nil, :size => 30, :class => "form-control input-sm" %>
- - <%= text_field_tag "predecessor_input", nil, :size => 30 %> <%= hidden_field_tag "predecessor_list", ""%>
<%= source_view_tag( @source_view ) %> <%= hidden_field_tag :_tag_name, @tag_name.underscore.gsub(/\s+/,'_') if source_view_is :tag %> -
-
- -
-
+ <% end # form_for -%>