Revision 1387:765e83814c28 plugins/redmine_bibliography/app/views

View differences:

plugins/redmine_bibliography/app/views/publications/_authorship_fields.html.erb
6 6
<%- end -%>
7 7

  
8 8
<div id="authors" class="fields">
9
  <div id="<%= form_tag_id( f.object_name, :search_author ) %>" style=<%= "display:none;" unless params[:action] == "new" %> >
9
  <div id="<%= form_tag_id( f.object_name, :search_author ) %>" >
10 10
    <p>
11 11
      <%= f.text_field :search_name, :size => 25, :class => "author_search" %>
12 12
    </p>
......
16 16
    <p class="author_identify">
17 17
      <label class='inline'><%= 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 )) %> <%= l(:identify_author_yes) %> </label><br />
18 18

  
19
    <label class='inline'><%= radio_button_tag(:identify_author, "correct", false, :name => form_tag_name(f.object_name,:identify_author ), :id => form_tag_id( f.object_name, :identify_author_corrections )) %> <%= l(:identify_author_correct) %> </label><br />
19
      <label class='inline'><%= radio_button_tag(:identify_author, "correct", false, :name => form_tag_name(f.object_name,:identify_author ), :id => form_tag_id( f.object_name, :identify_author_corrections )) %> <%= l(:identify_author_correct) %> </label><br />
20 20

  
21
    <label class='inline'><%= 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 )) %> <%= l(:identify_author_no) %> </label><br />
21
      <label class='inline'><%= 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 )) %> <%= l(:identify_author_no) %> </label><br />
22 22
    </p>
23
    </div>
23
  </div>
24 24

  
25 25
  <div class='author_edit' id="<%= form_tag_id( f.object_name, :edit_author_info ) %>">
26
    <p><%= f.text_field :name_on_paper, {:class => ("readonly" unless params[:action] == "new") } %></p>
27
    <p class='description' style=<%= "display:none;" unless params[:action] == "new" %>><%= h l("text_author_name_on_paper") %></p>
26
    <p><%= f.text_field :name_on_paper -%></p>
27
    <p class="description"><%= h l("text_author_name_on_paper") -%></p>
28 28

  
29
    <p><%= f.text_field :institution, {:class => ("readonly" unless params[:action] == "new") }  %></p>
30
    <p class='description' style=<%= "display:none;" unless params[:action] == "new" %>><%= h l("text_author_institution") %></p>
31
    <p><%= f.text_field :email, {:class => ("readonly" unless params[:action] == "new") }  %></p>
32
    <p class='description' style=<%= "display:none;" unless params[:action] == "new" %>><%= h l("text_author_email") %></p>
29
    <p><%= f.text_field :institution -%></p>
30
    <p class="description"><%= h l("text_author_institution") %></p>
31

  
32
    <p><%= f.text_field :email -%></p>
33
    <p class="description"><%= h l("text_author_email") %></p>
33 34

  
34 35
    <%= hidden_field_tag(:search_author_class, '', :name => form_tag_name(f.object_name,:search_author_class ), :id => form_tag_id( f.object_name, :search_author_class )) -%>
35

  
36 36
    <%= hidden_field_tag(:search_author_id, '', :name => form_tag_name(f.object_name,:search_author_id ), :id => form_tag_id( f.object_name, :search_author_id )) -%>
37 37
  </div>
38 38

  

Also available in: Unified diff