2014-11-27 23:00:10 +00:00
|
|
|
h3
|
|
|
|
= t('layout.comments.new_header')
|
|
|
|
|
2014-12-04 17:11:50 +00:00
|
|
|
= simple_form_for Comment.new, url: '', html: { method: :post } do |f|
|
2014-11-27 23:00:10 +00:00
|
|
|
.panel.panel-info ng-controller = 'IssueController as issueCtrl' ng-cloak = true
|
|
|
|
.panel-heading
|
|
|
|
h3.panel-title
|
|
|
|
= f.label :body
|
2014-11-28 14:28:59 +00:00
|
|
|
.pull-right= render 'projects/comments/button_md_help'
|
2014-11-27 23:00:10 +00:00
|
|
|
.panel-body
|
2014-12-04 17:11:50 +00:00
|
|
|
= render 'projects/comments/body', f: f, id: 'new-comment', ctrl: 'commentsCtrl',
|
|
|
|
ang_model: 'commentsCtrl.new_body'
|
2014-11-27 23:00:10 +00:00
|
|
|
hr
|
2014-12-04 17:11:50 +00:00
|
|
|
button.btn.btn-primary[ ng-disabled = 'commentsCtrl.isDisabledNewCommentButton()'
|
|
|
|
ng-click = 'commentsCtrl.add()' ]
|
|
|
|
= t('layout.create')
|
2014-11-27 23:00:10 +00:00
|
|
|
.panel-footer
|
|
|
|
=> t('layout.comments.notifications_are')
|
2014-12-04 17:11:50 +00:00
|
|
|
|
|
|
|
== render 'projects/subscribes/subscribe_status', project: @project, commentable: @issue
|