10 lines
556 B
Plaintext
10 lines
556 B
Plaintext
- if show_issue_change_author?(issue) && issue.safe_attribute?('author_id')
|
|
- author_options = author_options_for_select issue.project, issue
|
|
- if author_options.present?
|
|
p#change_author
|
|
= form.label_for_field :author_id
|
|
= link_to_function tag.span(l(:button_edit), class: 'icon icon-edit'), '$(this).hide(); $("#issue_author_id").show()'
|
|
= form.select :author_id, author_options, { required: true, no_label: true }, style: 'display: none;'
|
|
javascript:
|
|
$('#change_author').insertBefore($('#issue_tracker_id').parent());
|