You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by Sam Ruby <ru...@apache.org> on 2016/01/22 03:40:56 UTC
[whimsy.git] [29/50] Commit c908921: forgot a file
Commit c90892144c646b93141c1f125e6ed8a5c6b83d53:
forgot a file
Branch: refs/heads/master
Author: Sam Ruby <ru...@intertwingly.net>
Committer: Sam Ruby <ru...@intertwingly.net>
Pusher: rubys <ru...@apache.org>
------------------------------------------------------------
views/add-comment.rb | ++++++++
------------------------------------------------------------
32 changes: 32 additions, 0 deletions.
------------------------------------------------------------
diff --git a/views/add-comment.rb b/views/add-comment.rb
new file mode 100644
index 0000000..4f810b6
--- /dev/null
+++ b/views/add-comment.rb
@@ -0,0 +1,32 @@
+class AddComment < React
+ def render
+ _button.btn.btn_primary 'add comment', type: 'button',
+ data_toggle: 'modal', data_target: '#comment-form'
+
+ _div.modal.fade.comment_form! do
+ _div.modal_dialog do
+ _div.modal_content do
+ _div.modal_header.commented do
+ _button.close 'x', type: 'button', data_dismiss: 'modal'
+ _h4.modal_title 'Enter a comment'
+ end
+ _div.modal_body do
+ _div.form_group do
+ _label 'Initials', for: 'comment-initials'
+ _input.comment_initials!.form_control label: 'Initials',
+ placeholder: 'initials'
+ end
+ _div.form_group do
+ _label 'Comment', for: 'comment-text'
+ _textarea.comment_text!.form_control label: 'Comment',
+ placeholder: 'comment', rows: 5
+ end
+ end
+ _div.modal_footer do
+ _button.btn.btn_default 'Cancel'
+ end
+ end
+ end
+ end
+ end
+end