mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-30 18:58:39 -04:00
23 lines
851 B
Plaintext
23 lines
851 B
Plaintext
= bootstrap_form_tag url: '/messages' do |f|
|
|
- if @conversation.present?
|
|
= f.hidden_field :conversation_id, value: @conversation.id
|
|
- elsif @recipient.present?
|
|
%p
|
|
To
|
|
= link_to @recipient, @recipient
|
|
= render 'members/tiny', member: @recipient
|
|
= f.hidden_field :recipient_id, value: @recipient.id
|
|
- if @seed
|
|
= f.hidden_field :seed_id, value: @seed.id
|
|
%p
|
|
About
|
|
= link_to "#{@seed.crop_name} seeds", seed_path(@seed)
|
|
= f.text_field :subject, value: @subject, class: 'form-control', maxlength: 255, required: true
|
|
|
|
= f.text_area :body, rows: 12, label: "Type your message here", required: true
|
|
%span.form-text= render partial: "shared/markdown_help"
|
|
|
|
.card-footer
|
|
= link_to 'cancel', conversations_path, class: 'btn'
|
|
.float-end= f.submit "Send", class: 'btn btn-primary'
|