Milestones use new GLForm class
This commit is contained in:
parent
c45ca936c7
commit
d67c3e35c9
3 changed files with 5 additions and 6 deletions
|
@ -28,7 +28,7 @@ class Dispatcher
|
|||
new Todos()
|
||||
when 'projects:milestones:new', 'projects:milestones:edit'
|
||||
new ZenMode()
|
||||
new DropzoneInput($('.milestone-form'))
|
||||
new GLForm($('.milestone-form'))
|
||||
when 'groups:milestones:new'
|
||||
new ZenMode()
|
||||
when 'projects:compare:show'
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
This will create milestone in every selected project
|
||||
%hr
|
||||
|
||||
= form_for @milestone, url: group_milestones_path(@group), html: { class: 'form-horizontal milestone-form gfm-form js-quick-submit js-requires-input' } do |f|
|
||||
= form_for @milestone, url: group_milestones_path(@group), html: { class: 'form-horizontal milestone-form common-note-form js-quick-submit js-requires-input' } do |f|
|
||||
.row
|
||||
- if @milestone.errors.any?
|
||||
#error_explanation
|
||||
|
@ -27,7 +27,7 @@
|
|||
= f.label :description, "Description", class: "control-label"
|
||||
.col-sm-10
|
||||
= render layout: 'projects/md_preview', locals: { preview_class: "md-preview" } do
|
||||
= render 'projects/zen', f: f, attr: :description, classes: 'description form-control'
|
||||
= render 'projects/zen', f: f, attr: :description, classes: 'note-textarea'
|
||||
.clearfix
|
||||
.error-alert
|
||||
.form-group
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
= form_for [@project.namespace.becomes(Namespace), @project, @milestone], html: {class: 'form-horizontal milestone-form gfm-form js-quick-submit js-requires-input'} do |f|
|
||||
= 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)
|
||||
|
||||
.row
|
||||
.col-md-6
|
||||
.form-group
|
||||
|
@ -11,7 +10,7 @@
|
|||
= f.label :description, "Description", class: "control-label"
|
||||
.col-sm-10
|
||||
= render layout: 'projects/md_preview', locals: { preview_class: "md-preview" } do
|
||||
= render 'projects/zen', f: f, attr: :description, classes: 'description form-control'
|
||||
= render 'projects/zen', f: f, attr: :description, classes: 'note-textarea'
|
||||
= render 'projects/notes/hints'
|
||||
.clearfix
|
||||
.error-alert
|
||||
|
|
Loading…
Reference in a new issue