diff --git a/app/views/recurring_todos/_edit_form.html.erb b/app/views/recurring_todos/_edit_form.html.erb index e3ffb011..4430982d 100644 --- a/app/views/recurring_todos/_edit_form.html.erb +++ b/app/views/recurring_todos/_edit_form.html.erb @@ -12,7 +12,7 @@
<%= - text_field_tag( "recurring_todo[description]", @recurring_todo.description, "size" => 30, "tabindex" => 1) -%> + text_field_tag( "recurring_todo[description]", @recurring_todo.description, "size" => 30, "tabindex" => 1, "maxlength" => 100) -%> <%= text_area_tag( "recurring_todo[notes]", @recurring_todo.notes, {:cols => 29, :rows => 6, :tabindex => 2}) -%> diff --git a/app/views/recurring_todos/_recurring_todo_form.erb b/app/views/recurring_todos/_recurring_todo_form.erb index a9709e45..e119e040 100644 --- a/app/views/recurring_todos/_recurring_todo_form.erb +++ b/app/views/recurring_todos/_recurring_todo_form.erb @@ -11,7 +11,7 @@
<%= - text_field_tag( "recurring_todo[description]", "", "size" => 30, "tabindex" => 1) -%> + text_field_tag( "recurring_todo[description]", "", "size" => 30, "tabindex" => 1, "maxlength" => 100) -%> <%= text_area_tag( "recurring_todo[notes]", nil, {:cols => 29, :rows => 6, :tabindex => 2}) -%> diff --git a/app/views/shared/_add_new_item_form.rhtml b/app/views/shared/_add_new_item_form.rhtml index c84e0580..3c3b6f8a 100644 --- a/app/views/shared/_add_new_item_form.rhtml +++ b/app/views/shared/_add_new_item_form.rhtml @@ -29,7 +29,7 @@
<%= error_messages_for("item", :object_name => 'action') %>
-<%= text_field( "todo", "description", "size" => 30, "tabindex" => 1) %> +<%= text_field( "todo", "description", "size" => 30, "tabindex" => 1, "maxlength" => 100) %> <%= text_area( "todo", "notes", "cols" => 29, "rows" => 6, "tabindex" => 2) %> @@ -112,4 +112,4 @@ $('todo_context_name').projectDefaultContextsMap = eval('(' + <%= @default_proje <%= calendar_setup( "todo_due" ) %> <%= calendar_setup( "todo_show_from" ) %>
-
\ No newline at end of file +
diff --git a/app/views/todos/_edit_form.rhtml b/app/views/todos/_edit_form.rhtml index fc7b5c8d..10b9e3ed 100644 --- a/app/views/todos/_edit_form.rhtml +++ b/app/views/todos/_edit_form.rhtml @@ -5,7 +5,7 @@ <%= "" unless @tag_name.nil? -%> -<%= text_field( "todo", "description", "size" => 30, "tabindex" => 8) %> +<%= text_field( "todo", "description", "size" => 30, "tabindex" => 8, "maxlength" => 100) %> <%= text_area( "todo", "notes", "cols" => 29, "rows" => 4, "tabindex" => 9) %> diff --git a/app/views/todos/_edit_mobile.rhtml b/app/views/todos/_edit_mobile.rhtml index ef1de808..75abb40f 100644 --- a/app/views/todos/_edit_mobile.rhtml +++ b/app/views/todos/_edit_mobile.rhtml @@ -8,7 +8,7 @@ if parent_container_type == 'show_mobile' -%>

 <%= check_box_tag("done", 1, @todo && @todo.completed?, "tabindex" => 1) %>

<% end -%>

-<%= text_field( "todo", "description", "tabindex" => 2) %> +<%= text_field( "todo", "description", "tabindex" => 2, "maxlength" => 100) %>

<%= text_area( "todo", "notes", "cols" => 30, "rows" => 2, "tabindex" => 3) %>