To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / vendor / plugins / redmine_bibliography / app / views / publications / _identify_author_form.html.erb @ 1060:70fa02f56de7
History | View | Annotate | Download (791 Bytes)
| 1 |
<legend><%= "Identify Authors in the system…" %></legend> |
|---|---|
| 2 |
|
| 3 |
<%= link_to_remote "It's me!",
|
| 4 |
{ :url => { :controller => 'publications',
|
| 5 |
:action => 'add_me_as_author',
|
| 6 |
:project_id => @project }, :method => 'post'},
|
| 7 |
{ :class => 'icon icon-add', :id => "add_me_as_author" } %>
|
| 8 |
|
| 9 |
<p>
|
| 10 |
<%= label_tag "author_search", l(:label_project_search) %><%= text_field_tag 'author_search', nil %> |
| 11 |
</p>
|
| 12 |
|
| 13 |
<%= observe_field( form_tag_id(f.object_name, :name),
|
| 14 |
:frequency => 0.5,
|
| 15 |
:update => :identify_author,
|
| 16 |
:url => { :controller => 'publications', :action => 'autocomplete_for_author' },
|
| 17 |
:with => 'q')
|
| 18 |
%>
|
| 19 |
|
| 20 |
<div id="identify_author"> |
| 21 |
<% if params[:q] && params[:q].length > 1 %>
|
| 22 |
<%= select_author_links 'author[author_ids][]', @authors %>
|
| 23 |
<% end %>
|
| 24 |
</div>
|
| 25 |
|