changeset 660:e40cd3570ebc feature_36

Fixes Bug #275.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Fri, 09 Sep 2011 16:00:34 +0100
parents d2a371616088
children 6246ad0f9e98
files vendor/plugins/redmine_bibliography/app/views/publications/_authorship_fields.rhtml vendor/plugins/redmine_bibliography/config/locales/en.yml
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
   </div>
 
   <p>
-  <%= 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 %>
   </p>
--- 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"