Files
growstuff/app/views/updates/edit.html.haml
2012-12-02 11:59:31 +11:00

11 lines
343 B
Plaintext

= content_for :title, "Edit update"
- if user_signed_in?
= form_for @update do |f|
= label_tag :subject, "Subject"
= f.text_field :subject, :class => 'input-block-level'
= f.text_area :body, :rows => 12, :class => 'input-block-level'
= f.submit "Post"
- else
.alert You're not logged in. Only logged in users can do this.