_form.html.haml 961 Bytes
Newer Older
1
%div.issue-form-holder
2
  %h3.page-title= @issue.new_record? ? "New Issue" : "Edit Issue ##{@issue.iid}"
3
  %hr
4
  - if @repository.exists? && !@repository.empty? && @repository.contribution_guide && !@issue.persisted?
5
    - contribution_guide_url = project_blob_path(@project, tree_join(@repository.root_ref, @repository.contribution_guide.name))
6 7 8 9
    .row
      .col-sm-10.col-sm-offset-2
        .alert.alert-info
          = "Please review the <strong>#{link_to "guidelines for contribution", contribution_guide_url}</strong> to this repository.".html_safe
10

11
  = form_for [@project, @issue], html: { class: 'form-horizontal issue-form gfm-form' } do |f|
12
    = render 'projects/issuable_form', f: f, issuable: @issue
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
13 14

:javascript
15
  $('.assign-to-me-link').on('click', function(e){
16
    $('#issue_assignee_id').val("#{current_user.id}").trigger("change");
17 18
    e.preventDefault();
  });
19 20

  window.project_image_path_upload = "#{upload_image_project_path @project}";