# HG changeset patch # User luisf # Date 1353951708 0 # Node ID d6e59c6f10bdf633146085c7daf601766aa7c6dc # Parent 3d387b121e85521a1f7b943325a282db5df60586 design changes in the new publication forms diff -r 3d387b121e85 -r d6e59c6f10bd vendor/plugins/redmine_bibliography/app/views/publications/_form.html.erb --- a/vendor/plugins/redmine_bibliography/app/views/publications/_form.html.erb Mon Nov 26 17:39:51 2012 +0000 +++ b/vendor/plugins/redmine_bibliography/app/views/publications/_form.html.erb Mon Nov 26 17:41:48 2012 +0000 @@ -1,15 +1,13 @@ -<%= f.error_messages %> +<%= f.error_messages %> <%= stylesheet_link_tag 'bibliography', :plugin => 'redmine_bibliography' %> -

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

-

<%= l(:label_publication_other_details) %>

+
+

<%= l(:label_publication_other_details) %>

- <% f.fields_for :bibtex_entry do |builder| -%> - <%= render :partial => 'bibtex_fields', :locals => { :f => builder} %> - <%- end -%> +

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

+

-

<%= f.text_field :external_url, :size => 70 %>
<%= l(:text_external_url) %> @@ -19,15 +17,22 @@
<%= l(:text_doi) %>

+ <% f.fields_for :bibtex_entry do |builder| -%> + <%= render :partial => 'bibtex_fields', :locals => { :f => builder} %> + <%- end -%>
-

<%= l(:authors) %>

+ +
+ +
+

<%= l(:authors) %>

-
+
<% 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 diff -r 3d387b121e85 -r d6e59c6f10bd vendor/plugins/redmine_bibliography/app/views/publications/new.html.erb --- a/vendor/plugins/redmine_bibliography/app/views/publications/new.html.erb Mon Nov 26 17:39:51 2012 +0000 +++ b/vendor/plugins/redmine_bibliography/app/views/publications/new.html.erb Mon Nov 26 17:41:48 2012 +0000 @@ -7,17 +7,4 @@

<%=l(:label_publication_new)%>

-
-

To create a publication you can either parse a BibTeX entry or enter the publication details manually.

- - <%= render :partial => 'publications/new/bibtex' %> - - -

- -
- - <%= render :partial => 'publications/new/default' %> - - -
\ No newline at end of file +<%= render_tabs create_publication_tabs %> diff -r 3d387b121e85 -r d6e59c6f10bd vendor/plugins/redmine_bibliography/app/views/publications/new/_bibtex.html.erb --- a/vendor/plugins/redmine_bibliography/app/views/publications/new/_bibtex.html.erb Mon Nov 26 17:39:51 2012 +0000 +++ b/vendor/plugins/redmine_bibliography/app/views/publications/new/_bibtex.html.erb Mon Nov 26 17:41:48 2012 +0000 @@ -1,11 +1,17 @@ -
- <%= text_area_tag :bibtex_paste, "Please paste your bibtex entry here" , :class => "wiki", :style => 'width:90%' -%> - -
- - <%= link_to_remote "Parse BiBTeX", :url => { :project_id => @project, :action => :parse_bibtex}, :with => "'bibtex_paste=' + $('bibtex_paste').value" -%> +
+
+

Paste your bibtex entry

+
+ <%= text_area_tag :bibtex_paste, "Please paste your bibtex entry here" , :class => "wiki", :style => 'width:90%; height:100px;' -%> +
+ <%= link_to_remote "Parse BiBTeX", :url => { :project_id => @project, :action => :parse_bibtex}, :with => "'bibtex_paste=' + $('bibtex_paste').value" -%> +
+
-

Preview

+
+

Preview and correct

-

Authors

\ No newline at end of file +

Preview

+

Authors

+
\ No newline at end of file diff -r 3d387b121e85 -r d6e59c6f10bd vendor/plugins/redmine_bibliography/app/views/publications/new/_default.html.erb --- a/vendor/plugins/redmine_bibliography/app/views/publications/new/_default.html.erb Mon Nov 26 17:39:51 2012 +0000 +++ b/vendor/plugins/redmine_bibliography/app/views/publications/new/_default.html.erb Mon Nov 26 17:41:48 2012 +0000 @@ -1,5 +1,5 @@ <% form_for @publication, :url => { :project_id => @project, :action => :create }, :builder => TabularFormBuilder do |f| -%> -
+
<%= render :partial => 'form', :locals => { :f => f } %>