# HG changeset patch # User luisf # Date 1380043221 -3600 # Node ID 765e83814c28320d709adbe8b6204aaf604b2c1f # Parent e4c393cebb1a50c22ae1d67d1b5d3001023c870c Removes logic from view. diff -r e4c393cebb1a -r 765e83814c28 plugins/redmine_bibliography/app/views/publications/_authorship_fields.html.erb --- a/plugins/redmine_bibliography/app/views/publications/_authorship_fields.html.erb Tue Sep 24 16:25:05 2013 +0100 +++ b/plugins/redmine_bibliography/app/views/publications/_authorship_fields.html.erb Tue Sep 24 18:20:21 2013 +0100 @@ -6,7 +6,7 @@ <%- end -%>
-
> +

<%= f.text_field :search_name, :size => 25, :class => "author_search" %>

@@ -16,23 +16,23 @@


-
+
-
+

-
+
-

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

-

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

+

<%= f.text_field :name_on_paper -%>

+

<%= 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") %>

+

<%= f.text_field :institution -%>

+

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

+ +

<%= f.text_field :email -%>

+

<%= 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 )) -%>