Revision 1289:7fa299909144 plugins/redmine_bibliography/app
| plugins/redmine_bibliography/app/views/publications/_authorship_fields.html.erb | ||
|---|---|---|
| 9 | 9 |
</p> |
| 10 | 10 |
|
| 11 | 11 |
<p style="margin-bottom: -2.5em; padding-bottom; 0"><label><%= l(:identify_author_question) %></label></p> |
| 12 |
|
|
| 12 | 13 |
<p class="author_identify"> |
| 13 | 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 />
|
| 14 | 15 |
|
| plugins/redmine_bibliography/app/views/publications/autocomplete_for_author.html.erb | ||
|---|---|---|
| 1 | 1 |
<%= raw @results.map {|result| {
|
| 2 |
'label' => "#{result.name} (#{result.mail.partition('@')[2]})",
|
|
| 3 |
'value' => result.name, |
|
| 4 |
'search_author_class' => result.class.name, |
|
| 5 |
'search_author_id' => result.id, |
|
| 6 |
'institution' => result.institution, |
|
| 7 |
'email' => result.mail, |
|
| 8 |
} |
|
| 9 |
}.to_json |
|
| 10 |
%> |
|
| 2 |
'label' => "#{result.name} <em>#{result.mail.partition('@')[2]}</em>",
|
|
| 3 |
'value' => result.name, |
|
| 4 |
'search_author_class' => result.class.name, |
|
| 5 |
'search_author_id' => result.id, |
|
| 6 |
'name' => result.name, |
|
| 7 |
'institution' => result.institution, |
|
| 8 |
'email' => result.mail, |
|
| 9 |
} |
|
| 10 |
}.to_json %> |
|
Also available in: Unified diff