Add reply_to and group_id to messages schema
This commit is contained in:
parent
3a3119f274
commit
55e8ff481c
7 changed files with 41 additions and 18 deletions
|
|
@ -22,6 +22,11 @@
|
|||
- title t('.title')
|
||||
|
||||
= simple_form_for @message do |f|
|
||||
= f.hidden_field :reply_to
|
||||
|
||||
- if @message.reply_to
|
||||
%p= t('.reply_to', link: link_to(t('.message'), message_path(@message.reply_to))).html_safe
|
||||
|
||||
- if FoodsoftConfig[:mailing_list].blank?
|
||||
= f.input :sent_to_all, :as => :boolean
|
||||
- else
|
||||
|
|
|
|||
|
|
@ -8,6 +8,14 @@
|
|||
%tr
|
||||
%td= t '.to'
|
||||
%td= @message.recipients.map {|e| e.name}.join(', ')
|
||||
- if @message.group
|
||||
%tr
|
||||
%td= t '.group'
|
||||
%td= @message.group.name
|
||||
- if @message.reply_to
|
||||
%tr
|
||||
%td= t '.reply_to'
|
||||
%td= link_to @message.reply_to_message.subject, message_path(@message.reply_to)
|
||||
%tr
|
||||
%td= t '.subject'
|
||||
%td
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue