aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/messages/_form.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/messages/_form.html.haml')
-rw-r--r--app/views/messages/_form.html.haml6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/messages/_form.html.haml b/app/views/messages/_form.html.haml
new file mode 100644
index 0000000..78ccaa0
--- /dev/null
+++ b/app/views/messages/_form.html.haml
@@ -0,0 +1,6 @@
+.message_form
+ = form_for Message.new, :url => discussion_messages_path(@discussion.id), :method => :post do |f|
+ = f.text_area :body
+ = f.submit "Отправить"
+
+= link_to "Выйти из переписки", leave_discussion_path(@discussion), :method => :post unless @discussion.private? \ No newline at end of file