forked from gitlabhq/gitlabhq
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request gitlabhq#7678 from cirosantilli/factor-new-issue-e…
…dit-mr Factor new issue and edit MR forms.
- Loading branch information
Showing
3 changed files
with
41 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
.form-group | ||
= f.label :title, class: 'control-label' do | ||
%strong= 'Title *' | ||
.col-sm-10 | ||
= f.text_field :title, maxlength: 255, autofocus: true, | ||
class: 'form-control pad js-gfm-input', required: true | ||
.form-group | ||
= f.label :description, 'Description', class: 'control-label' | ||
.col-sm-10 | ||
= f.text_area :description, rows: 14, | ||
class: 'form-control js-gfm-input markdown-area' | ||
.col-sm-12.hint | ||
.pull-left | ||
Parsed with | ||
#{link_to 'GitLab Flavored Markdown', help_page_path('markdown', 'markdown'), target: '_blank'}. | ||
.pull-right | ||
Attach images (JPG, PNG, GIF) by dragging & dropping | ||
or #{link_to 'selecting them', '#', class: 'markdown-selector' }. | ||
.clearfix | ||
.error-alert | ||
%hr | ||
.form-group | ||
.issue-assignee | ||
= f.label :assignee_id, class: 'control-label' do | ||
%i.icon-user | ||
Assign to | ||
.col-sm-10 | ||
= project_users_select_tag("#{issuable.class.model_name.param_key}[assignee_id]", | ||
placeholder: 'Select a user', class: 'custom-form-control', | ||
selected: issuable.assignee_id) | ||
| ||
= link_to 'Assign to me', '#', class: 'btn assign-to-me-link' | ||
.form-group | ||
.issue-milestone | ||
= f.label :milestone_id, class: 'control-label' do | ||
%i.icon-time | ||
Milestone | ||
.col-sm-10= f.select(:milestone_id, milestone_options(issuable), | ||
{ include_blank: 'Select milestone' }, { class: 'select2' }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters