# HG changeset patch # User luisf # Date 1377951740 -3600 # Node ID f0da42a09a3c006c1e181d470c4029dbdca95084 # Parent 6ba24edae331e8c76a9c02d2be2b32ae442c2c48 Properly closed some html tags; removed unnecessary tags. diff -r 6ba24edae331 -r f0da42a09a3c plugins/redmine_bibliography/app/views/publications/_authorship_fields.html.erb --- a/plugins/redmine_bibliography/app/views/publications/_authorship_fields.html.erb Fri Aug 30 17:33:05 2013 +0100 +++ b/plugins/redmine_bibliography/app/views/publications/_authorship_fields.html.erb Sat Aug 31 13:22:20 2013 +0100 @@ -1,6 +1,6 @@ -<% content_for :header_tags do %> - <%= stylesheet_link_tag 'bibliography', :plugin => 'redmine_bibliography' %> -<% end %> +<%- content_for :header_tags do -%> + <%= stylesheet_link_tag 'bibliography', :plugin => 'redmine_bibliography' -%> +<%- end -%>
> @@ -15,34 +15,29 @@
-
-

+
+

-

- <%= f.text_field :name_on_paper, {:class => ("readonly" unless params[:action] == "new") } %>

-

><%= h l("text_author_name_on_paper") %>

-

<%= f.text_field :institution, {:class => ("readonly" unless params[:action] == "new") } %>

-

><%= h l("text_author_institution") %>

-

<%= f.text_field :email, {:class => ("readonly" unless params[:action] == "new") } %>

-

><%= h l("text_author_email") %>

-

- <%= hidden_field_tag(:search_author_class, '', :name => form_tag_name(f.object_name,:search_author_class ), :id => form_tag_id( f.object_name, :search_author_class )) -%> +

<%= f.text_field :name_on_paper, {:class => ("readonly" unless params[:action] == "new") } %>

+

><%= h l("text_author_name_on_paper") %>

- <%= hidden_field_tag(:search_author_id, '', :name => form_tag_name(f.object_name,:search_author_id ), :id => form_tag_id( f.object_name, :search_author_id )) -%> +

<%= f.text_field :institution, {:class => ("readonly" unless params[:action] == "new") } %>

+

><%= h l("text_author_institution") %>

+

<%= f.text_field :email, {:class => ("readonly" unless params[:action] == "new") } %>

+

><%= h l("text_author_email") %>

+ + <%= hidden_field_tag(:search_author_class, '', :name => form_tag_name(f.object_name,:search_author_class ), :id => form_tag_id( f.object_name, :search_author_class )) -%> + + <%= hidden_field_tag(:search_author_id, '', :name => form_tag_name(f.object_name,:search_author_id ), :id => form_tag_id( f.object_name, :search_author_id )) -%>
+
+

+ <%= button_to_function l(:label_save_author), '', :id => form_tag_id( f.object_name, :edit_save_button ) -%> + <%= link_to_remove_fields l("remove_author"), f %> +

+
+
- - -

- - <%= button_to_function l(:label_save_author), {}, :id => form_tag_id( f.object_name, :edit_save_button ) %> - - <%= link_to_remove_fields l("remove_author"), f %> -

- -