activeadmin-selleo-cms 0.0.48 → 0.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/app/mailers/activeadmin_selleo_cms/form_mailer.rb +1 -3
- data/app/views/activeadmin_selleo_cms/form_mailer/form_submission.html.erb +2 -2
- data/app/views/forms/_form.html.erb +1 -1
- data/app/views/forms/download.html.erb +3 -0
- data/app/views/forms/download.pdf.erb +1 -0
- data/lib/activeadmin-selleo-cms/version.rb +1 -1
- metadata +1 -1
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
module ActiveadminSelleoCms
|
|
2
2
|
class FormMailer < ActionMailer::Base
|
|
3
|
-
default from: "web-form@jips.org"
|
|
4
|
-
|
|
5
3
|
def form_submission(form, form_uuid)
|
|
6
4
|
@form = form
|
|
7
5
|
@form_uuid = form_uuid
|
|
8
|
-
mail(
|
|
6
|
+
mail(subject: "New form submission")
|
|
9
7
|
end
|
|
10
8
|
end
|
|
11
9
|
end
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />
|
|
5
5
|
</head>
|
|
6
6
|
<body>
|
|
7
|
-
<h3>
|
|
7
|
+
<h3>A new form "<%= @form.title %>" has been submitted!</h3>
|
|
8
8
|
<p>
|
|
9
|
-
<%= link_to "Click here for details.", "/forms/#{@form.id}/download?form_uuid=#{@form_uuid}" %>
|
|
9
|
+
<%= link_to "Click here for details.", "http://#{ActionMailer::Base.default_url_options[:host]}/forms/#{@form.id}/download?form_uuid=#{@form_uuid}" %>
|
|
10
10
|
</p>
|
|
11
11
|
</body>
|
|
12
12
|
</html>
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
function print(form_id, form_dom_id){
|
|
51
|
-
window.open('/forms/'+form_id+'/download?form_uuid='+localStorage[form_dom_id]);
|
|
51
|
+
window.open('/forms/'+form_id+'/download?print=true&form_uuid='+localStorage[form_dom_id]);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
function deliver(form_id, form_dom_id) {
|