# HG changeset patch # User luisf # Date 1344251608 -3600 # Node ID 12f729c9f47d446859c3f9fd0496035e7b0dee96 # Parent 010291c90b0b09a096eb8d717c8640ba211af663 the "authors" div was not closing correctly - fixed now. diff -r 010291c90b0b -r 12f729c9f47d vendor/plugins/redmine_bibliography/app/views/publications/_authorship_fields.html.erb --- a/vendor/plugins/redmine_bibliography/app/views/publications/_authorship_fields.html.erb Fri Aug 03 18:33:08 2012 +0100 +++ b/vendor/plugins/redmine_bibliography/app/views/publications/_authorship_fields.html.erb Mon Aug 06 12:13:28 2012 +0100 @@ -1,6 +1,4 @@ -<%= stylesheet_link_tag 'bibliography', :plugin => 'redmine_bibliography' %> - -
+
>

<%= f.text_field :search_name, :size => 25 %> @@ -9,10 +7,10 @@ <%# link_to_function l(:label_author_is_me), "update_author_info(this," + User.current.get_author_info.to_json + ")", :id => "add_me_as_author" %>

- <%= f.select :search_results, options_for_select(@author_options), {}, {:size => 5, - :onChange => remote_function( :url => { :controller => :publications, :action => :get_user_info, :object_id => form_object_id(f.object_name) }, :with => "'value=' + - value" )} %> -

+ <%= f.select :search_results, options_for_select(@author_options), {}, {:size => 5, + :onChange => remote_function( :url => { :controller => :publications, :action => :get_user_info, :object_id => form_object_id(f.object_name) }, :with => "'value=' + + value" )} %> +

@@ -22,7 +20,7 @@

-
+

@@ -35,23 +33,18 @@

- +

- - <%- 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 -%> - + <%- 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 010291c90b0b -r 12f729c9f47d vendor/plugins/redmine_bibliography/app/views/publications/_form.html.erb --- a/vendor/plugins/redmine_bibliography/app/views/publications/_form.html.erb Fri Aug 03 18:33:08 2012 +0100 +++ b/vendor/plugins/redmine_bibliography/app/views/publications/_form.html.erb Mon Aug 06 12:13:28 2012 +0100 @@ -1,4 +1,5 @@ -<%= f.error_messages %> +<%= f.error_messages %> +<%= stylesheet_link_tag 'bibliography', :plugin => 'redmine_bibliography' %>

<%= f.text_field :title, :required => true, :size => 70 %>

@@ -16,11 +17,14 @@

<%= l(:authors) %>

-
-
- <% f.fields_for :authorships do |builder| -%> - <%= render "authorship_fields", :f => builder %> +
+
+ + <% f.fields_for :authorships do |builder| -%> + <%= render "authorship_fields", :f => builder %> <%- end -%> + + <%= link_to_add_author_fields l(:label_add_an_author), f, :authorships, params[:action] %> +
- <%= link_to_add_author_fields l(:label_add_an_author), f, :authorships, params[:action] %> -
+
\ No newline at end of file