Class: CertificateProgram
Instance Method Summary
collapse
aggregate_of, all_except, defaults, #delete, #destroy!, enum_prefixed_translations_for, numbered, organic_on, resource_fields, #save, #save_and_notify!, #save_and_notify_changes!, serialize_symbolized_hash_array, teaser_on, #update_and_notify!, update_or_create!, whitelist_attributes
Instance Method Details
#friendly ⇒ Object
5
6
7
|
# File 'app/models/certificate_program.rb', line 5
def friendly
title
end
|
#template_html_erb ⇒ Object
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# File 'app/models/certificate_program.rb', line 9
def template_html_erb
self[:template_html_erb] ||= "<style>\n.qr-code {\n bottom: 5px;\n right: 5px;\n height: 15mm;\n width: 15mm;\n}\n.name {\n position: absolute;\n width: 100%;\n top: 380px;\n text-align: center;\n}\n</style>\n<!-- You can use interpolations like --\n<%#= certificate.start_date %>\n<%#= certificate.end_date %>\n<%#= user.formal_first_name %>\n<%#= user.formal_last_name %>\n<%#= user.formal_full_name %>\n<%#= certificate_program.title %>\n<%#= certificate_program.description %>\n<%#= organization.name %>\n<%#= organization.display_name %>\n-- -->\n<section class=\"name\">\n <h1><%= user.formal_full_name %></h1>\n</section>\n"
end
|