Files
growstuff/app/views/notifications/_form.html.haml
Skud 36290c82ed Added a reply link to the notifications/show page
- sets subject "Re: whatever" for PMs
- also removed "sender=N" from PM link (wtf! -- it wasn't doing anything
    but it looked bad.)
2013-04-29 18:09:55 +10:00

23 lines
740 B
Plaintext

= form_for @notification do |f|
- if @notification.errors.any?
#error_explanation
%h2= "#{pluralize(@post.errors.count, "error")} prohibited this message from being sent:"
%ul
- @notification.errors.full_messages.each do |msg|
%li= msg
.field
= f.hidden_field :recipient_id, :value => @recipient.id
%p
To:
= link_to @recipient, @recipient
= label_tag :notification, "Subject:"
= f.text_field :subject, :value => @subject, :class => 'input-block-level'
= label_tag :body, "Type your message here:"
= f.text_area :body, :rows => 12, :class => 'input-block-level'
%span.help-block
= render :partial => "shared/markdown_help"
= f.submit "Send", :class => 'btn btn-primary'