| 1 |
|
<% content_for :header_tags do %>
|
| 2 |
|
<%= stylesheet_link_tag 'bibliography', :plugin => 'redmine_bibliography' %>
|
| 3 |
|
<% end %>
|
|
1 |
<%- content_for :header_tags do -%>
|
|
2 |
<%= stylesheet_link_tag 'bibliography', :plugin => 'redmine_bibliography' -%>
|
|
3 |
<%= javascript_include_tag 'bibliography', :plugin => 'redmine_bibliography' -%>
|
|
4 |
<%= javascript_tag "$('.author_save_btn').live('click', disable_fields);" -%>
|
|
5 |
<%= javascript_tag "$('.author_edit_btn').live('click', enable_fields);" -%>
|
|
6 |
<%- end -%>
|
| 4 |
7 |
|
| 5 |
8 |
<div id="authors" class="fields">
|
| 6 |
9 |
<div id="<%= form_tag_id( f.object_name, :search_author ) %>" style=<%= "display:none;" unless params[:action] == "new" %> >
|
| ... | ... | |
| 15 |
18 |
|
| 16 |
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 />
|
| 17 |
20 |
|
| 18 |
|
<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 />
|
| 19 |
|
</p>
|
|
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 |
</p>
|
| 20 |
23 |
</div>
|
| 21 |
24 |
|
| 22 |
25 |
<div class='author_edit' id="<%= form_tag_id( f.object_name, :edit_author_info ) %>">
|
| 23 |
|
<p>
|
| 24 |
|
<%= f.text_field :name_on_paper, {:class => ("readonly" unless params[:action] == "new") } %></p>
|
| 25 |
|
<p class='description' style=<%= "display:none;" unless params[:action] == "new" %>><%= h l("text_author_name_on_paper") %></p>
|
| 26 |
|
<p><%= f.text_field :institution, {:class => ("readonly" unless params[:action] == "new") } %></p>
|
| 27 |
|
<p class='description' style=<%= "display:none;" unless params[:action] == "new" %>><%= h l("text_author_institution") %></p>
|
| 28 |
|
<p><%= f.text_field :email, {:class => ("readonly" unless params[:action] == "new") } %></p>
|
| 29 |
|
<p class='description' style=<%= "display:none;" unless params[:action] == "new" %>><%= h l("text_author_email") %></p>
|
| 30 |
|
</p>
|
| 31 |
|
<%= 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 )) -%>
|
|
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>
|
| 32 |
28 |
|
| 33 |
|
<%= 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 )) -%>
|
|
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>
|
|
33 |
|
|
34 |
<%= 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 |
<%= 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 )) -%>
|
| 34 |
37 |
</div>
|
| 35 |
38 |
|
|
39 |
<div>
|
|
40 |
<p>
|
|
41 |
<%= button_to_function l(:label_save_author), '', :id => form_tag_id(f.object_name, :edit_save_button), :class => 'author_save_btn' -%>
|
| 36 |
42 |
|
| 37 |
|
<div class="box" id="<%= form_tag_id( f.object_name, :show_author_info ) %>" style="display: none">
|
|
43 |
<%= button_to_function l(:label_edit_author), '', :id => form_tag_id(f.object_name, :edit_button), :class => 'author_edit_btn' -%>
|
| 38 |
44 |
|
|
45 |
<%= link_to_remove_fields l("remove_author"), f %>
|
|
46 |
</p>
|
| 39 |
47 |
</div>
|
|
48 |
</div>
|
| 40 |
49 |
|
| 41 |
|
<p>
|
| 42 |
|
|
| 43 |
|
<%= button_to_function l(:label_save_author), {}, :id => form_tag_id( f.object_name, :edit_save_button ) %>
|
| 44 |
|
|
| 45 |
|
<%= link_to_remove_fields l("remove_author"), f %>
|
| 46 |
|
</p>
|
| 47 |
|
</div>
|
| 48 |
|
<br/>
|