To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / plugins / redmine_bibliography / app / views / publications / _authorship_fields.html.erb @ 1283:006057cf8f16

History | View | Annotate | Download (2.97 KB)

1
<% content_for :header_tags do %>
2
  <%= stylesheet_link_tag 'bibliography', :plugin => 'redmine_bibliography' %>
3
<% end %>
4

    
5
<div id="authors" class="fields">
6
  <div id="<%= form_tag_id( f.object_name, :search_author ) %>" style=<%= "display:none;" unless params[:action] == "new" %> >
7
    <p>
8
      <%= f.text_field :search_name, :size => 25, :class => "author_search" %>
9
    </p>
10

    
11
    <p style="margin-bottom: -2.5em; padding-bottom; 0"><label><%= l(:identify_author_question) %></label></p>
12
    <p class="author_identify">
13
      <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 ), :onchange => "identify_author_status($(this).value, #{form_object_id(f.object_name) });") %> <%= l(:identify_author_yes) %> </label><br />
14

    
15
    <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 ), :onchange => "identify_author_status($(this).value, #{form_object_id(f.object_name) });") %> <%= l(:identify_author_correct) %> </label><br />
16

    
17
        <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 ), :onchange => "identify_author_status($(this).value, #{form_object_id(f.object_name) });") %> <%= l(:identify_author_no) %> </label><br />
18
      </p>
19
    </div>
20

    
21
  <div class='author_edit' id="<%= form_tag_id( f.object_name, :edit_author_info ) %>">
22
    <p>
23
      <%= f.text_field :name_on_paper, {:class => ("readonly" unless params[:action] == "new") } %></p>
24
      <p class='description' style=<%= "display:none;" unless params[:action] == "new" %>><%= h l("text_author_name_on_paper") %></p>
25
      <p><%= f.text_field :institution, {:class => ("readonly" unless params[:action] == "new") }  %></p>
26
      <p class='description' style=<%= "display:none;" unless params[:action] == "new" %>><%= h l("text_author_institution") %></p>
27
      <p><%= f.text_field :email, {:class => ("readonly" unless params[:action] == "new") }  %></p>
28
      <p class='description' style=<%= "display:none;" unless params[:action] == "new" %>><%= h l("text_author_email") %></p>
29
    </p>
30
  </div>
31

    
32

    
33
  <div class="box" id="<%= form_tag_id( f.object_name, :show_author_info ) %>" style="display: none">
34

    
35
  </div>
36

    
37
  <p>
38

    
39
  <%- if params[:action] == 'new' -%>
40
    <%= button_to_function l(:label_save_author), {}, { :onclick => "toggle_save_author(#{form_object_id(f.object_name)}); return false;", :id => form_tag_id( f.object_name, :edit_save_button )} %>
41
  <%- else -%>
42
    <%= button_to_function l(:label_edit_author), {}, { :onclick => "toggle_save_author(#{form_object_id(f.object_name)}); return false;", :id => form_tag_id( f.object_name, :edit_save_button )} %>
43
  <%- end -%>
44

    
45

    
46
  <%= link_to_remove_fields l("remove_author"), f %>
47
  </p>
48
</div>
49
<br/>