# HG changeset patch # User luisf # Date 1311959287 -3600 # Node ID a2c2b9f8380ba045d01362b3b466279a737af328 # Parent f05f3a9ef56908519134170b1470f4a734ea4114 Closes Bug #239. Changed "edit" partial's name to "form". Changed a few label names. diff -r f05f3a9ef569 -r a2c2b9f8380b vendor/plugins/redmine_bibliography/app/views/publications/_edit.html.erb --- a/vendor/plugins/redmine_bibliography/app/views/publications/_edit.html.erb Fri Jul 29 17:51:45 2011 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +0,0 @@ -<% content_for :header_tags do %> - <%= javascript_include_tag 'authors', :plugin => 'redmine_bibliography' %> -<% end %> - -
- <% form_for @publication, :url => { :project_id => @project_id, :action => :create }, :builder => TabularFormBuilder do |f| -%> - <%= f.error_messages %> -

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

- -

<%= l(:authors) %>

- <% f.fields_for :authorships do |builder| %> - <%= render "authorship_fields", :f => builder %> - <% end %> - -

<%= link_to_add_fields l(:label_add_another_author), f, :authorships %>

- - <%= f.submit %> - -
- -
-

Other Details

- <% f.fields_for :bibtex_entry do |builder| -%> - <%= render :partial => 'bibtex_fields', :locals => { :f => builder} %> - <%- end -%> -
- -<% end -%> - -<% content_for :sidebar do %> - - placeholder - -<% end %> - - diff -r f05f3a9ef569 -r a2c2b9f8380b vendor/plugins/redmine_bibliography/app/views/publications/_form.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vendor/plugins/redmine_bibliography/app/views/publications/_form.html.erb Fri Jul 29 18:08:07 2011 +0100 @@ -0,0 +1,32 @@ + +
+ <%= f.error_messages %> +

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

+ +

<%= l(:authors) %>

+ <% f.fields_for :authorships do |builder| %> + <%= render "authorship_fields", :f => builder %> + <% end %> + +

<%= link_to_add_fields l(:label_add_another_author), f, :authorships %>

+ + <%= f.submit %> + +
+ +
+

Other Details

+ <% f.fields_for :bibtex_entry do |builder| -%> + <%= render :partial => 'bibtex_fields', :locals => { :f => builder} %> + <%- end -%> +
+ +<% content_for :sidebar do %> + + placeholder + +<% end %> + + diff -r f05f3a9ef569 -r a2c2b9f8380b vendor/plugins/redmine_bibliography/app/views/publications/edit.html.erb --- a/vendor/plugins/redmine_bibliography/app/views/publications/edit.html.erb Fri Jul 29 17:51:45 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/app/views/publications/edit.html.erb Fri Jul 29 18:08:07 2011 +0100 @@ -1,7 +1,12 @@ -

Publications#edit

+<% content_for :header_tags do %> + <%= javascript_include_tag 'authors', :plugin => 'redmine_bibliography' %> +<% end %> -<%= render :partial => 'edit' %> +

<%=l(:label_publication_show)%>

+<% form_for @publication, :url => { :project_id => @project_id, :action => :update }, :builder => TabularFormBuilder do |f| -%> + <%= render :partial => 'form', :locals => { :f => f } %> +<% end %>

<%= link_to "Show", @publication %> | <%= link_to "View All", publications_path %> diff -r f05f3a9ef569 -r a2c2b9f8380b vendor/plugins/redmine_bibliography/app/views/publications/new.html.erb --- a/vendor/plugins/redmine_bibliography/app/views/publications/new.html.erb Fri Jul 29 17:51:45 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/app/views/publications/new.html.erb Fri Jul 29 18:08:07 2011 +0100 @@ -1,3 +1,9 @@ -

New Publication

+<% content_for :header_tags do %> + <%= javascript_include_tag 'authors', :plugin => 'redmine_bibliography' %> +<% end %> -<%= render :partial => 'edit' %> +

<%=l(:label_publication_new)%>

+ +<% form_for @publication, :url => { :project_id => @project_id, :action => :create }, :builder => TabularFormBuilder do |f| -%> + <%= render :partial => 'form', :locals => { :f => f } %> +<% end %> \ No newline at end of file diff -r f05f3a9ef569 -r a2c2b9f8380b vendor/plugins/redmine_bibliography/app/views/publications/show.html.erb --- a/vendor/plugins/redmine_bibliography/app/views/publications/show.html.erb Fri Jul 29 17:51:45 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/app/views/publications/show.html.erb Fri Jul 29 18:08:07 2011 +0100 @@ -1,4 +1,4 @@ -

Publication Details

+

<%=l(:label_publication_show)%>

Title

diff -r f05f3a9ef569 -r a2c2b9f8380b vendor/plugins/redmine_bibliography/config/locales/en.yml --- a/vendor/plugins/redmine_bibliography/config/locales/en.yml Fri Jul 29 17:51:45 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/config/locales/en.yml Fri Jul 29 18:08:07 2011 +0100 @@ -23,7 +23,9 @@ remove_author: "Remove this author" label_publications_plural: "Publications" - label_publication_new: "Add Publication" + label_publication_new: "Create New Publication" + label_publication_edit: "Edit Publication" + label_publication_show: "Publication Details" label_add_project_to_publication: "Add Project to Publication" label_project_search: "Search by name: "