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 @ 1276:20a6b12d1aba

History | View | Annotate | Download (3.05 KB)

1
<%= stylesheet_link_tag 'bibliography', :plugin => 'redmine_bibliography' %>
2

    
3

    
4
<div id="authors" class="fields">
5
<!--  <h4><%= l("label_author_1") %></h4> -->
6

    
7
  <div id="<%= form_tag_id( f.object_name, :search_author ) %>" style=<%= "display:none;" unless params[:action] == "new" %> >
8
      <p>
9
        <%= f.text_field :search_name, :size => 25 %>
10
      <p>
11
        <%= f.select :search_results, options_for_select(@author_options) %>
12
            </p>
13

    
14
      <p style="margin-bottom: -2.5em; padding-bottom; 0"><label><%= l(:identify_author_question) %></label></p>
15
      <p class="author_identify">
16
        <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 />
17

    
18
        <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 />
19

    
20
        <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 />
21
      </p>
22
    </div>
23

    
24
  <div class='author_edit' id="<%= form_tag_id( f.object_name, :edit_author_info ) %>">
25
    <p>
26
      <%= 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>
28
      <p><%= f.text_field :institution, {:class => ("readonly" unless params[:action] == "new") }  %></p>
29
      <p class='description' style=<%= "display:none;" unless params[:action] == "new" %>><%= h l("text_author_institution") %></p>
30
      <p><%= f.text_field :email, {:class => ("readonly" unless params[:action] == "new") }  %></p>
31
      <p class='description' style=<%= "display:none;" unless params[:action] == "new" %>><%= h l("text_author_email") %></p>
32
    </p>
33
  </div>
34

    
35

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

    
38
  </div>
39

    
40
  <p>
41

    
42
  <%- if params[:action] == 'new' -%>
43
    <%= 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 )} %>
44
  <%- else -%>
45
    <%= 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 )} %>
46
  <%- end -%>
47

    
48

    
49
  <%= link_to_remove_fields l("remove_author"), f %>
50
  </p>
51
</div>
52
<br/>