view plugins/redmine_bibliography/app/views/publications/_authorship_fields.html.erb @ 1327:287f201c2802 redmine-2.2-integration

Add italic
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Wed, 19 Jun 2013 20:56:22 +0100
parents bb51e86fa182
children f0da42a09a3c
line wrap: on
line source
<% content_for :header_tags do %>
  <%= stylesheet_link_tag 'bibliography', :plugin => 'redmine_bibliography' %>
<% end %>

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

    <p style="margin-bottom: -2.5em; padding-bottom; 0"><label><%= l(:identify_author_question) %></label></p>

    <p class="author_identify">
      <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 />

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

        <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 />
      </p>
    </div>

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

        <%= 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 )) -%>
  </div>


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

  </div>

  <p>

  <%= button_to_function l(:label_save_author), {}, :id => form_tag_id( f.object_name, :edit_save_button ) %>

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