# HG changeset patch # User luisf # Date 1315933986 -3600 # Node ID 97815d819fd3cf1ea1a2957fe45d282e535c350d # Parent ec6c2f6a33c4b42fe94a0139d2de8738c86c2134 New approach for Feature #238, based on partials. diff -r ec6c2f6a33c4 -r 97815d819fd3 vendor/plugins/redmine_bibliography/app/views/bibtex_entries/_article.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vendor/plugins/redmine_bibliography/app/views/bibtex_entries/_article.html.erb Tue Sep 13 18:13:06 2011 +0100 @@ -0,0 +1,20 @@ +

+ <%= f.text_field :journal, :class => 'bibtex' %> +

+

+ <%= f.text_field :year, :size => 4, :class => 'bibtex' %> +

+ + +

+ <%= f.text_field :volume, :class => 'bibtex' %> +

+

+ <%= f.text_field :number, :class => 'bibtex' %> +

+

+ <%= f.text_field :pages, :class => 'bibtex' %> +

+

+ <%= f.text_field :month, :class => 'bibtex' %> +

diff -r ec6c2f6a33c4 -r 97815d819fd3 vendor/plugins/redmine_bibliography/app/views/bibtex_entries/_book.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vendor/plugins/redmine_bibliography/app/views/bibtex_entries/_book.html.erb Tue Sep 13 18:13:06 2011 +0100 @@ -0,0 +1,69 @@ + + +

+ <%= f.text_field :year, :size => 4, :class => 'bibtex' %> +

+

+ <%= f.text_field :chapter, :size => 15, :class => 'bibtex' %> +

+

+ <%= f.text_field :editor, :size => 33, :class => 'bibtex' %> +

+

+ <%= f.text_field :booktitle, :size => 33, :class => 'bibtex' %> +

+

+ <%= f.text_field :publisher,:size => 33, :class => 'bibtex' %> +

+

+ <%= f.text_field :pages, :size => 12, :class => 'bibtex' %> +

+

+ <%= f.text_field :address, :class => 'bibtex' %> +

+

+ <%= f.text_field :annote, :class => 'bibtex' %> +

+

+ <%= f.text_field :crossref, :class => 'bibtex' %> +

+

+ <%= f.text_field :edition, :class => 'bibtex' %> +

+

+ <%= f.text_field :eprint, :class => 'bibtex' %> +

+

+ <%= f.text_field :howpublished, :class => 'bibtex' %> +

+

+ <%= f.text_field :journal, :class => 'bibtex' %> +

+

+ <%= f.text_field :key, :class => 'bibtex' %> +

+

+ <%= f.text_field :note, :class => 'bibtex' %> +

+

+ <%= f.text_field :number, :class => 'bibtex' %> +

+

+ <%= f.text_field :organization, :class => 'bibtex' %> +

+

+ <%= f.text_field :school, :class => 'bibtex' %> +

+

+ <%= f.text_field :series, :class => 'bibtex' %> +

+

+ <%= f.text_field :type, :class => 'bibtex' %> +

+

+ <%= f.text_field :url, :class => 'bibtex' %> +

+

+ <%= f.text_field :volume, :class => 'bibtex' %> +

+ diff -r ec6c2f6a33c4 -r 97815d819fd3 vendor/plugins/redmine_bibliography/app/views/publications/_bibtex_fields.html.erb --- a/vendor/plugins/redmine_bibliography/app/views/publications/_bibtex_fields.html.erb Tue Sep 13 17:18:00 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/app/views/publications/_bibtex_fields.html.erb Tue Sep 13 18:13:06 2011 +0100 @@ -8,70 +8,7 @@ :onChange => remote_function( :url => { :controller => :publications, :action => :get_bibtex_required_fields}, :with => "'value=' + value" ) %>

-

- <%= f.text_field :year, :size => 4, :class => 'bibtex' %> -

-

- <%= f.text_field :chapter, :size => 15, :class => 'bibtex' %> -

-

- <%= f.text_field :editor, :size => 33, :class => 'bibtex' %> -

-

- <%= f.text_field :booktitle, :size => 33, :class => 'bibtex' %> -

-

- <%= f.text_field :publisher,:size => 33, :class => 'bibtex' %> -

-

- <%= f.text_field :pages, :size => 12, :class => 'bibtex' %> -

-

- <%= f.text_field :address, :class => 'bibtex' %> -

-

- <%= f.text_field :annote, :class => 'bibtex' %> -

-

- <%= f.text_field :crossref, :class => 'bibtex' %> -

-

- <%= f.text_field :edition, :class => 'bibtex' %> -

-

- <%= f.text_field :eprint, :class => 'bibtex' %> -

-

- <%= f.text_field :howpublished, :class => 'bibtex' %> -

-

- <%= f.text_field :journal, :class => 'bibtex' %> -

-

- <%= f.text_field :key, :class => 'bibtex' %> -

-

- <%= f.text_field :note, :class => 'bibtex' %> -

-

- <%= f.text_field :number, :class => 'bibtex' %> -

-

- <%= f.text_field :organization, :class => 'bibtex' %> -

-

- <%= f.text_field :school, :class => 'bibtex' %> -

-

- <%= f.text_field :series, :class => 'bibtex' %> -

-

- <%= f.text_field :type, :class => 'bibtex' %> -

-

- <%= f.text_field :url, :class => 'bibtex' %> -

-

- <%= f.text_field :volume, :class => 'bibtex' %> -

+<%- if params[:action] == "edit" || params[:action] == 'create' -%> + <%= render :partial => 'bibtex_entries/article', :locals => { :f => f } %> +<%- end -%> \ No newline at end of file