# HG changeset patch # User luisf # Date 1315580434 -3600 # Node ID e40cd3570ebcfaf975ff8b32e4ebd1472f206d30 # Parent d2a3716160880b672790b5243218e08128ccdcfa Fixes Bug #275. diff -r d2a371616088 -r e40cd3570ebc vendor/plugins/redmine_bibliography/app/views/publications/_authorship_fields.rhtml --- a/vendor/plugins/redmine_bibliography/app/views/publications/_authorship_fields.rhtml Fri Sep 09 15:34:56 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/app/views/publications/_authorship_fields.rhtml Fri Sep 09 16:00:34 2011 +0100 @@ -44,7 +44,14 @@

- <%= button_to_function l(:label_save_author), {}, { :onclick => "toggle_save_author(#{form_object_id(f.object_name)}); return false;", :id => form_tag_id( f.object_name, :edit_save_button )} %> + + <% if params[:action] == 'new' %> + <%= button_to_function l(:label_save_author), {}, { :onclick => "toggle_save_author(#{form_object_id(f.object_name)}); return false;", :id => form_tag_id( f.object_name, :edit_save_button )} %> + <% else %> +<%= button_to_function l(:label_edit_author), {}, { :onclick => "toggle_save_author(#{form_object_id(f.object_name)}); return false;", :id => form_tag_id( f.object_name, :edit_save_button )} %> + + <% end %> + <%= link_to_remove_fields l("remove_author"), f %>

diff -r d2a371616088 -r e40cd3570ebc vendor/plugins/redmine_bibliography/config/locales/en.yml --- a/vendor/plugins/redmine_bibliography/config/locales/en.yml Fri Sep 09 15:34:56 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/config/locales/en.yml Fri Sep 09 16:00:34 2011 +0100 @@ -43,6 +43,7 @@ field_search_name: "Search by name" field_search_results: "" label_save_author: "Save author" + label_edit_author: "Edit author" label_author_information: "Author Information" remove_author: "Remove this author"