debian-mirror-gitlab/app/views/projects/milestones/_form.html.haml

26 lines
1.3 KiB
Text
Raw Normal View History

2016-06-02 11:05:42 +05:30
= form_for [@project.namespace.becomes(Namespace), @project, @milestone], html: {class: 'form-horizontal milestone-form common-note-form js-quick-submit js-requires-input'} do |f|
= form_errors(@milestone)
2014-09-02 18:07:02 +05:30
.row
.col-md-6
.form-group
= f.label :title, "Title", class: "control-label"
.col-sm-10
2016-06-02 11:05:42 +05:30
= f.text_field :title, maxlength: 255, class: "form-control", required: true, autofocus: true
2015-04-26 12:48:37 +05:30
.form-group.milestone-description
2014-09-02 18:07:02 +05:30
= f.label :description, "Description", class: "control-label"
.col-sm-10
2017-08-17 22:00:37 +05:30
= render layout: 'projects/md_preview', locals: { url: preview_markdown_path(@project) } do
2016-06-02 11:05:42 +05:30
= render 'projects/zen', f: f, attr: :description, classes: 'note-textarea', placeholder: 'Write milestone description...'
2017-08-17 22:00:37 +05:30
= render 'shared/notes/hints'
2014-09-02 18:07:02 +05:30
.clearfix
.error-alert
2017-08-17 22:00:37 +05:30
= render "shared/milestones/form_dates", f: f
2014-09-02 18:07:02 +05:30
.form-actions
- if @milestone.new_record?
= f.submit 'Create milestone', class: "btn-create btn"
2017-09-10 17:25:29 +05:30
= link_to "Cancel", project_milestones_path(@project), class: "btn btn-cancel"
2017-08-17 22:00:37 +05:30
- else
2014-09-02 18:07:02 +05:30
= f.submit 'Save changes', class: "btn-save btn"
2017-09-10 17:25:29 +05:30
= link_to "Cancel", project_milestone_path(@project, @milestone), class: "btn btn-cancel"