aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/messages/_form.html.haml
diff options
context:
space:
mode:
authorKir2011-10-31 21:43:34 +0400
committerKir2011-10-31 21:43:34 +0400
commit48c144ed34e2d5977bb8e5af8a9c7e8dfc253361 (patch)
treea672937fb96b955f3c2d4364195926b3b14d01cb /app/views/messages/_form.html.haml
parent3ddd221f5f235e34afb9d4bbc7a4fc05228f73a4 (diff)
downloadinboxes-48c144ed34e2d5977bb8e5af8a9c7e8dfc253361.tar.bz2
Small changed
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