To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / plugins / redmine_bibliography / app / views / publications / _authorship_fields.html.erb @ 1289:7fa299909144
History | View | Annotate | Download (3.32 KB)
| 1 | 1281:e9bfba17e791 | luis | <% content_for :header_tags do %>
|
|---|---|---|---|
| 2 | <%= stylesheet_link_tag 'bibliography', :plugin => 'redmine_bibliography' %>
|
||
| 3 | <% end %>
|
||
| 4 | 603:7b39f35803f3 | luis | |
| 5 | 481:dd242ea99fd3 | luis | <div id="authors" class="fields"> |
| 6 | 1281:e9bfba17e791 | luis | <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 | 573:aed210f6095b | chris | |
| 11 | 1281:e9bfba17e791 | luis | <p style="margin-bottom: -2.5em; padding-bottom; 0"><label><%= l(:identify_author_question) %></label></p> |
| 12 | 1289:7fa299909144 | luis | |
| 13 | 1281:e9bfba17e791 | luis | <p class="author_identify"> |
| 14 | <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 /> |
||
| 15 | 615:c4ddb9531f4c | chris | |
| 16 | 1281:e9bfba17e791 | luis | <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 /> |
| 17 | 1274:5ea1a213c7a5 | luis | |
| 18 | 707:065041087084 | luis | <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 /> |
| 19 | 597:70f0276fde9a | luis | </p>
|
| 20 | 1274:5ea1a213c7a5 | luis | </div>
|
| 21 | |||
| 22 | 623:a434a588f16c | chris | <div class='author_edit' id="<%= form_tag_id( f.object_name, :edit_author_info ) %>"> |
| 23 | 609:3221b2ab7804 | luis | <p>
|
| 24 | 623:a434a588f16c | chris | <%= 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 | 609:3221b2ab7804 | luis | </p>
|
| 31 | 1286:d0d6bbe9f2e0 | luis | <%= 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 )) -%>
|
| 32 | 1285:22551cc54749 | luis | |
| 33 | 1286:d0d6bbe9f2e0 | luis | <%= 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 | 601:1608b3cb50cd | luis | </div>
|
| 35 | 1274:5ea1a213c7a5 | luis | |
| 36 | 603:7b39f35803f3 | luis | |
| 37 | <div class="box" id="<%= form_tag_id( f.object_name, :show_author_info ) %>" style="display: none"> |
||
| 38 | 1274:5ea1a213c7a5 | luis | |
| 39 | 603:7b39f35803f3 | luis | </div>
|
| 40 | |||
| 41 | 623:a434a588f16c | chris | <p>
|
| 42 | 660:e40cd3570ebc | luis | |
| 43 | 705:b6f9f005c0b6 | luis | <%- if params[:action] == 'new' -%>
|
| 44 | <%= 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 )} %>
|
||
| 45 | <%- else -%>
|
||
| 46 | <%= 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 )} %>
|
||
| 47 | <%- end -%>
|
||
| 48 | 660:e40cd3570ebc | luis | |
| 49 | 603:7b39f35803f3 | luis | |
| 50 | 601:1608b3cb50cd | luis | <%= link_to_remove_fields l("remove_author"), f %>
|
| 51 | 623:a434a588f16c | chris | </p>
|
| 52 | 605:8fc59e8ddd63 | luis | </div>
|
| 53 | 619:4ede44d53f76 | chris | <br/> |