BigW Consortium Gitlab

_form.html.haml 475 Bytes
Newer Older
1
%div.issue-form-holder
2
  %h3.page-title= @issue.new_record? ? "Create Issue" : "Edit Issue ##{@issue.iid}"
3
  %hr
4

Vinnie Okada committed
5
  = form_for [@project.namespace.becomes(Namespace), @project, @issue], html: { class: 'form-horizontal issue-form gfm-form' } do |f|
6
    = render 'shared/issuable/form', f: f, issuable: @issue
7 8

:javascript
9
  $('.assign-to-me-link').on('click', function(e){
10
    $('#issue_assignee_id').val("#{current_user.id}").trigger("change");
11 12
    e.preventDefault();
  });