diff options
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/action_mailroom/inbound_emails/new.html.erb | 8 | ||||
-rw-r--r-- | app/views/layouts/action_mailroom.html.erb | 7 | ||||
-rw-r--r-- | app/views/layouts/rails/conductor.html.erb | 7 | ||||
-rw-r--r-- | app/views/rails/conductor/action_mailroom/inbound_emails/index.html.erb (renamed from app/views/action_mailroom/inbound_emails/index.html.erb) | 4 | ||||
-rw-r--r-- | app/views/rails/conductor/action_mailroom/inbound_emails/new.html.erb | 27 | ||||
-rw-r--r-- | app/views/rails/conductor/action_mailroom/inbound_emails/show.html.erb (renamed from app/views/action_mailroom/inbound_emails/show.html.erb) | 5 |
6 files changed, 41 insertions, 17 deletions
diff --git a/app/views/action_mailroom/inbound_emails/new.html.erb b/app/views/action_mailroom/inbound_emails/new.html.erb deleted file mode 100644 index dfd0bd7ea5..0000000000 --- a/app/views/action_mailroom/inbound_emails/new.html.erb +++ /dev/null @@ -1,8 +0,0 @@ -<% provide :title, "Deliver new inbound email" %> - -<h1>Deliver new inbound email</h1> - -<%= form_with(url: main_app.rails_inbound_emails_url, remote: false) do |form| %> - <%= form.file_field :message, size: "150x50", autofocus: true %><br> - <%= form.submit "Deliver inbound email" %> -<% end %> diff --git a/app/views/layouts/action_mailroom.html.erb b/app/views/layouts/action_mailroom.html.erb deleted file mode 100644 index 3efa8c3989..0000000000 --- a/app/views/layouts/action_mailroom.html.erb +++ /dev/null @@ -1,7 +0,0 @@ -<html> -<head> - <title><%= yield :title %></title> -</head> -<body> -<%= yield %> -</html> diff --git a/app/views/layouts/rails/conductor.html.erb b/app/views/layouts/rails/conductor.html.erb new file mode 100644 index 0000000000..75157feb78 --- /dev/null +++ b/app/views/layouts/rails/conductor.html.erb @@ -0,0 +1,7 @@ +<html> +<head> + <title>Rails Conductor: <%= yield :title %></title> +</head> +<body> +<%= yield %> +</html> diff --git a/app/views/action_mailroom/inbound_emails/index.html.erb b/app/views/rails/conductor/action_mailroom/inbound_emails/index.html.erb index 6636e351be..19c53984e2 100644 --- a/app/views/action_mailroom/inbound_emails/index.html.erb +++ b/app/views/rails/conductor/action_mailroom/inbound_emails/index.html.erb @@ -6,10 +6,10 @@ <tr><th>Message ID</th><th>Status</th></tr> <% @inbound_emails.each do |inbound_email| %> <tr> - <td><%= link_to inbound_email.message_id, main_app.rails_inbound_email_path(inbound_email) %></td> + <td><%= link_to inbound_email.message_id, main_app.rails_conductor_inbound_email_path(inbound_email) %></td> <td><%= inbound_email.status %></td> </tr> <% end %> </table> -<%= link_to "Deliver new inbound email", main_app.new_rails_inbound_email_path %>
\ No newline at end of file +<%= link_to "Deliver new inbound email", main_app.new_rails_conductor_inbound_email_path %>
\ No newline at end of file diff --git a/app/views/rails/conductor/action_mailroom/inbound_emails/new.html.erb b/app/views/rails/conductor/action_mailroom/inbound_emails/new.html.erb new file mode 100644 index 0000000000..be989ff0bc --- /dev/null +++ b/app/views/rails/conductor/action_mailroom/inbound_emails/new.html.erb @@ -0,0 +1,27 @@ +<% provide :title, "Deliver new inbound email" %> + +<h1>Deliver new inbound email</h1> + +<%= form_with(url: main_app.rails_conductor_inbound_emails_path, scope: :mail, local: true) do |form| %> + <div> + <%= form.label :from, "From" %><br> + <%= form.text_field :from %> + </div> + + <div> + <%= form.label :to, "To" %><br> + <%= form.text_field :to %> + </div> + + <div> + <%= form.label :subject, "Subject" %><br> + <%= form.text_field :subject %> + </div> + + <div> + <%= form.label :body, "Body" %><br> + <%= form.text_area :body, size: "40x20" %> + </div> + + <%= form.submit "Deliver inbound email" %> +<% end %> diff --git a/app/views/action_mailroom/inbound_emails/show.html.erb b/app/views/rails/conductor/action_mailroom/inbound_emails/show.html.erb index bc443775e4..e6f40b19e2 100644 --- a/app/views/action_mailroom/inbound_emails/show.html.erb +++ b/app/views/rails/conductor/action_mailroom/inbound_emails/show.html.erb @@ -6,3 +6,8 @@ <li>Retry</li> <li>Incinerate</li> </ul> + +<details> + <summary>Full email source</summary> + <pre><%= @inbound_email.source %></pre> +</details> |