mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-22 05:50:47 +02:00
fix #1114. also update locales for last merges/commits
This commit is contained in:
parent
6aa8b8d2f9
commit
eb2f071c80
13 changed files with 1494 additions and 1453 deletions
|
@ -1,4 +1,3 @@
|
||||||
<label>Edit Recurring Todo</label><br/>
|
|
||||||
<div class="recurring_container">
|
<div class="recurring_container">
|
||||||
<% #form_remote_tag(
|
<% #form_remote_tag(
|
||||||
#url => recurring_todo_path(@recurring_todo), :method => :put,
|
#url => recurring_todo_path(@recurring_todo), :method => :put,
|
||||||
|
@ -99,17 +98,5 @@
|
||||||
<%= radio_button_tag('recurring_todo[recurring_target]', 'show_from_date', @recurring_todo.target == 'show_from_date', {:tabindex => next_tab_index})%> <%= t('todos.recurrence.from_tickler') %><br/>
|
<%= radio_button_tag('recurring_todo[recurring_target]', 'show_from_date', @recurring_todo.target == 'show_from_date', {:tabindex => next_tab_index})%> <%= t('todos.recurrence.from_tickler') %><br/>
|
||||||
<br/>
|
<br/>
|
||||||
</div>
|
</div>
|
||||||
<div class="recurring_submit_box">
|
|
||||||
<div class="widgets">
|
|
||||||
<button type="submit" class="positive" id="recurring_todo_edit_action_submit" tabindex="<%=next_tab_index%>">
|
|
||||||
<%=image_tag("accept.png", :alt => "") %>
|
|
||||||
<%= t('common.update') %>
|
|
||||||
</button>
|
|
||||||
<button type="button" class="positive" id="recurring_todo_edit_action_cancel" tabindex="<%=next_tab_index%>">
|
|
||||||
<%=image_tag("cancel.png", :alt => "") %>
|
|
||||||
<%= t('common.cancel') %>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
$('#new-recurring-todo').hide();
|
|
||||||
$('#edit-recurring-todo').html(html_for_edit_form());
|
$('#edit-recurring-todo').html(html_for_edit_form());
|
||||||
$('#edit-recurring-todo').show();
|
$('#edit-recurring-todo').dialog( "open" );
|
||||||
RecurringTodosPage.toggle_overlay();
|
|
||||||
enable_rich_interaction();
|
|
||||||
|
|
||||||
function html_for_edit_form() {
|
function html_for_edit_form() {
|
||||||
return "<%= escape_javascript(render(:partial => 'edit_form')) %>"
|
return "<%= escape_javascript(render(:partial => 'edit_form')) %>";
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,6 +29,6 @@
|
||||||
<div id="new-recurring-todo" class="new-form" title="<%= t('todos.add_new_recurring') %>">
|
<div id="new-recurring-todo" class="new-form" title="<%= t('todos.add_new_recurring') %>">
|
||||||
<%= render :partial => "recurring_todo_form" %>
|
<%= render :partial => "recurring_todo_form" %>
|
||||||
</div>
|
</div>
|
||||||
<div id="edit-recurring-todo" class="edit-form" style="display:none">
|
<div id="edit-recurring-todo" class="edit-form" style="display:none" title="<%= t('todos.edit_recurring_todo') %>">
|
||||||
<div class='placeholder'>This should not be visible</div>
|
<div class='placeholder'>This should not be visible</div>
|
||||||
</div>
|
</div>
|
|
@ -1,5 +1,5 @@
|
||||||
<%- if @saved -%>
|
<%- if @saved -%>
|
||||||
RecurringTodosPage.toggle_overlay();
|
$( "#edit-recurring-todo" ).dialog( "close" );
|
||||||
TracksPages.page_notify('notice', text_for_status_message(), 5);
|
TracksPages.page_notify('notice', text_for_status_message(), 5);
|
||||||
replace_old_recurring_todo_with_updated();
|
replace_old_recurring_todo_with_updated();
|
||||||
<%- else -%>
|
<%- else -%>
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -560,6 +560,7 @@ en:
|
||||||
due_date: with a due date %{due_date} or earlier
|
due_date: with a due date %{due_date} or earlier
|
||||||
overdue: Overdue
|
overdue: Overdue
|
||||||
add_new_recurring: Add a new recurring action
|
add_new_recurring: Add a new recurring action
|
||||||
|
edit_recurring_todo: Edit repeating action
|
||||||
no_incomplete_actions: There are no incomplete actions
|
no_incomplete_actions: There are no incomplete actions
|
||||||
notes:
|
notes:
|
||||||
delete_confirmation: Are you sure that you want to delete the note '%{id}'?
|
delete_confirmation: Are you sure that you want to delete the note '%{id}'?
|
||||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -1,5 +1,6 @@
|
||||||
Given /^I have a repeat pattern called "([^"]*)"$/ do |pattern_name|
|
Given /^I have a repeat pattern called "([^"]*)"$/ do |pattern_name|
|
||||||
context = @current_user.contexts.first
|
context = @current_user.contexts.first
|
||||||
|
|
||||||
@recurring_todo = @current_user.recurring_todos.create!(
|
@recurring_todo = @current_user.recurring_todos.create!(
|
||||||
:description => pattern_name,
|
:description => pattern_name,
|
||||||
:context_id => context.id,
|
:context_id => context.id,
|
||||||
|
@ -44,10 +45,10 @@ When /^I edit the name of the pattern "([^\"]*)" to "([^\"]*)"$/ do |pattern_nam
|
||||||
wait_for_ajax
|
wait_for_ajax
|
||||||
|
|
||||||
fill_in "edit_recurring_todo_description", :with => new_name
|
fill_in "edit_recurring_todo_description", :with => new_name
|
||||||
selenium.click "recurring_todo_edit_action_submit"
|
selenium.click "recurring_todo_edit_update_button"
|
||||||
|
|
||||||
wait_for do
|
wait_for do
|
||||||
!selenium.is_visible("overlay")
|
!selenium.is_visible("edit-recurring-todo")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -1011,12 +1011,8 @@ var RecurringTodosPage = {
|
||||||
width: 750,
|
width: 750,
|
||||||
modal: true,
|
modal: true,
|
||||||
buttons: {
|
buttons: {
|
||||||
"Create": function() {
|
"Create": function() { submit_with_ajax_and_block_element('form.#recurring-todo-form-new-action', $(this).parents(".ui-dialog")); },
|
||||||
submit_with_ajax_and_block_element('form.#recurring-todo-form-new-action', $(this));
|
Cancel: function() { $( this ).dialog( "close" ); }
|
||||||
},
|
|
||||||
Cancel: function() {
|
|
||||||
$( this ).dialog( "close" );
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
show: "fade",
|
show: "fade",
|
||||||
hide: "fade",
|
hide: "fade",
|
||||||
|
@ -1041,12 +1037,12 @@ var RecurringTodosPage = {
|
||||||
width: 750,
|
width: 750,
|
||||||
modal: true,
|
modal: true,
|
||||||
buttons: {
|
buttons: {
|
||||||
"Create": function() {
|
"Update": {
|
||||||
submit_with_ajax_and_block_element('form#recurring-todo-form-edit-action', $(this));
|
text: "Update",
|
||||||
|
id: 'recurring_todo_edit_update_button',
|
||||||
|
click: function() { submit_with_ajax_and_block_element('form#recurring-todo-form-edit-action', $(this).parents(".ui-dialog")); }
|
||||||
},
|
},
|
||||||
Cancel: function() {
|
Cancel: function() { $( this ).dialog( "close" ); }
|
||||||
$( this ).dialog( "close" );
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
show: "fade",
|
show: "fade",
|
||||||
hide: "fade",
|
hide: "fade",
|
||||||
|
|
|
@ -211,14 +211,6 @@ a.show_successors:hover, a.link_to_successors:hover {background-image: url(../im
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.recurring_submit_box {
|
|
||||||
height: 25px;
|
|
||||||
padding: 5px 0;
|
|
||||||
text-align: center;
|
|
||||||
clear: both;
|
|
||||||
border: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Navigation links at the top */
|
/* Navigation links at the top */
|
||||||
|
|
||||||
#navcontainer {
|
#navcontainer {
|
||||||
|
|
|
@ -20,6 +20,7 @@ begin
|
||||||
t.sequence(:description) { |n| "testtodo#{n}" }
|
t.sequence(:description) { |n| "testtodo#{n}" }
|
||||||
t.association :context
|
t.association :context
|
||||||
end
|
end
|
||||||
|
|
||||||
rescue FactoryGirl::DuplicateDefinitionError
|
rescue FactoryGirl::DuplicateDefinitionError
|
||||||
# No problem, apparently this file was included already.
|
# No problem, apparently this file was included already.
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue