-
<%= link_to 'Edit', edit_maily_email_path(mailer: params[:mailer], email: params[:email], part: params[:part]) %>
-
<% if Maily.available_locales.present? %>
-
Languages:
<% Maily.available_locales.each do |locale| %>
- <%= link_to locale.upcase, url_for(params.merge(locale: locale)) %>
<% end %>
<% end %>
- |
-
<%= form_tag(deliver_maily_email_path(mailer: params[:mailer], email: params[:email], locale: params[:locale]), method: :post, class: 'maily_send') do %>
- Send to:
- <%= email_field_tag :to, nil, class: 'maily_textfield', placeholder: "Enter email", required: true %>
- <%= submit_tag 'Send', class: 'maily_button' %>
<% end %>
<% if @email.subject %>- Subject <%= @email.subject %>
<% end %>
<% if @email.from %>- From <%= @email.from.join(', ') %>
<% end %>
<% if @email.to %>- To <%= @email.to.join(', ') %>
<% end %>
<% if @email.cc %>- Cc <%= @email.cc.join(', ') %>
<% end %>
<% if @email.bcc %>- Bcc <%= @email.bcc.join(', ') %>
<% end %>
<% if @email.html_part && @email.text_part %>
<% end %>
<% if @email.html_part || @email.text_part || @email.body.present? %>
<% end %>
<% if @email.attachments.present? %>
- Attachments:
-
<% @email.attachments.each do |attachment| %>
- <%= link_to attachment.filename, attachment_maily_email_path(mailer: params[:mailer], email: params[:email], attachment: attachment.filename) %>
<% end %>
<% end %>