rosa-build/app/views/projects/comments/_add.html.slim

21 lines
767 B
Plaintext
Raw Normal View History

2014-11-27 23:00:10 +00:00
h3
= t('layout.comments.new_header')
= simple_form_for Comment.new, url: '', html: { method: :post } do |f|
.panel.panel-info
2014-11-27 23:00:10 +00:00
.panel-heading
h3.panel-title
= f.label :body
.pull-right= render 'projects/comments/button_md_help'
2014-11-27 23:00:10 +00:00
.panel-body
= 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
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')
== render 'projects/subscribes/subscribe_status', project: @project, commentable: @issue