whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sam Ruby <ru...@apache.org>
Subject [whimsy.git] [29/50] Commit c908921: forgot a file
Date Fri, 22 Jan 2016 02:40:56 GMT
Commit c90892144c646b93141c1f125e6ed8a5c6b83d53:
    forgot a file


Branch: refs/heads/master
Author: Sam Ruby <rubys@intertwingly.net>
Committer: Sam Ruby <rubys@intertwingly.net>
Pusher: rubys <rubys@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

Mime
View raw message