changeset 545:a2c2b9f8380b feature_36

Closes Bug #239. Changed "edit" partial's name to "form". Changed a few label names.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Fri, 29 Jul 2011 18:08:07 +0100
parents f05f3a9ef569
children 7c4b96efa402
files vendor/plugins/redmine_bibliography/app/views/publications/_edit.html.erb vendor/plugins/redmine_bibliography/app/views/publications/_form.html.erb vendor/plugins/redmine_bibliography/app/views/publications/edit.html.erb vendor/plugins/redmine_bibliography/app/views/publications/new.html.erb vendor/plugins/redmine_bibliography/app/views/publications/show.html.erb vendor/plugins/redmine_bibliography/config/locales/en.yml
diffstat 6 files changed, 51 insertions(+), 44 deletions(-) [+]
line wrap: on
line diff
--- 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 %>
-
-<div class="splitcontentleft">
-  <% form_for @publication, :url => { :project_id  => @project_id, :action => :create }, :builder => TabularFormBuilder do |f| -%>
-    <%= f.error_messages %>  
-    <p>
-      <%= f.text_field :title, :required => true, :size => 60 %>
-    </p>
-
-    <h3><%= l(:authors) %></h3>    
-    <% f.fields_for :authorships do |builder| %>
-      <%= render "authorship_fields", :f => builder %>
-    <% end %>
-
-    <p><%= link_to_add_fields l(:label_add_another_author), f, :authorships %></p>
-
-    <%= f.submit %>
-
-</div>
-
-<div class="splitcontentright">      
-  <h3>Other Details</h3>
-  <% f.fields_for :bibtex_entry do |builder| -%>
-    <%= render :partial => 'bibtex_fields', :locals => { :f => builder}  %>
-  <%- end -%>
-</div>
-
-<% end -%>
-
-<% content_for :sidebar do %>
-
-  placeholder
-
-<% end %>
-
-
--- /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 @@
+
+<div class="splitcontentleft">
+    <%= f.error_messages %>  
+    <p>
+      <%= f.text_field :title, :required => true, :size => 60 %>
+    </p>
+
+    <h3><%= l(:authors) %></h3>    
+    <% f.fields_for :authorships do |builder| %>
+      <%= render "authorship_fields", :f => builder %>
+    <% end %>
+
+    <p><%= link_to_add_fields l(:label_add_another_author), f, :authorships %></p>
+
+    <%= f.submit %>
+
+</div>
+
+<div class="splitcontentright">      
+  <h3>Other Details</h3>
+  <% f.fields_for :bibtex_entry do |builder| -%>
+    <%= render :partial => 'bibtex_fields', :locals => { :f => builder}  %>
+  <%- end -%>
+</div>
+
+<% content_for :sidebar do %>
+
+  placeholder
+
+<% end %>
+
+
--- 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 @@
-<h2>Publications#edit</h2>
+<% content_for :header_tags do %>
+    <%= javascript_include_tag 'authors', :plugin => 'redmine_bibliography' %>
+<% end %>
 
-<%= render :partial => 'edit' %>
+<h2><%=l(:label_publication_show)%></h2>
 
+<% form_for @publication, :url => { :project_id  => @project_id, :action => :update }, :builder => TabularFormBuilder do |f| -%>
+  <%= render :partial => 'form', :locals => { :f => f }  %>
+<% end %>
 <p>
   <%= link_to "Show", @publication %> |
   <%= link_to "View All", publications_path %>
--- 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 @@
-<h1>New Publication</h1>
+<% content_for :header_tags do %>
+    <%= javascript_include_tag 'authors', :plugin => 'redmine_bibliography' %>
+<% end %>
 
-<%= render :partial => 'edit' %>
+<h2><%=l(:label_publication_new)%></h2>
+
+<% 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
--- 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 @@
-<h2>Publication Details</h2>
+<h2><%=l(:label_publication_show)%></h2>
 
 <div class="splitcontentleft">
 <h4>Title</h4>
--- 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: "