changeset 618:18e0709fd0d9 feature_36

changed the radio buttons to "hand made tags" so that the labels are correct.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Wed, 24 Aug 2011 12:33:43 +0100
parents c1866eed921e
children 4ede44d53f76 df7551a82bbe
files vendor/plugins/redmine_bibliography/app/views/publications/_authorship_fields.rhtml vendor/plugins/redmine_bibliography/config/locales/en.yml
diffstat 2 files changed, 10 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/vendor/plugins/redmine_bibliography/app/views/publications/_authorship_fields.rhtml	Wed Aug 24 11:56:41 2011 +0100
+++ b/vendor/plugins/redmine_bibliography/app/views/publications/_authorship_fields.rhtml	Wed Aug 24 12:33:43 2011 +0100
@@ -19,9 +19,12 @@
 
       <h5>Is it this author?</h5>
       <p class='identify_author'>
-        <%= f.radio_button :identify_author, "yes", :onClick => "identify_author_status($(this).value, #{form_object_id(f.object_name) });" %><%= f.label :identify_author_yes %><br />
-        <%= f.radio_button :identify_author, "correct", :onClick => "identify_author_status($(this).value, #{form_object_id(f.object_name) });" %><%= f.label :identify_author_correct %><br />
-        <%= f.radio_button :identify_author, "no", :onClick => "identify_author_status($(this).value, #{form_object_id(f.object_name) });", :checked => "checked" %><%= f.label :identify_author_no %>
+        <label><%= radio_button_tag(:identify_author, "yes", false, :name => form_tag_name(f.object_name,:identify_author ), :id => form_tag_id( f.object_name, :identify_author_yes ), :onclick => "identify_author_status($(this).value, #{form_object_id(f.object_name) });") %> <%= l(:identify_author_yes) %> </label><br />
+        
+        <label><%= radio_button_tag(:identify_author, "corrections", false, :name => form_tag_name(f.object_name,:identify_author ), :id => form_tag_id( f.object_name, :identify_author_corrections ), :onclick => "identify_author_status($(this).value, #{form_object_id(f.object_name) });") %> <%= l(:identify_author_corrections) %> </label><br />
+        
+        
+        <label><%= radio_button_tag(:identify_author, "no", true, :name => form_tag_name(f.object_name,:identify_author ), :id => form_tag_id( f.object_name, :identify_author_no ), :onclick => "identify_author_status($(this).value, #{form_object_id(f.object_name) });") %> <%= l(:identify_author_no) %> </label><br />
       </p>
     </div>	
   
--- a/vendor/plugins/redmine_bibliography/config/locales/en.yml	Wed Aug 24 11:56:41 2011 +0100
+++ b/vendor/plugins/redmine_bibliography/config/locales/en.yml	Wed Aug 24 12:33:43 2011 +0100
@@ -7,6 +7,10 @@
   year: "Year"
   publications_box: "My Publications"
   label_my_publications_box: "My Publications"
+  
+  identify_author_yes: "Yes"
+  identify_author_no: "No"
+  identify_author_corrections: "Corrections"
 
   label_all_publications: All Publications
   label_all_publications_for_project: Publications associated with %{project}