diff options
author | Jon Kristensen <info@jonkri.se> | 2017-06-28 23:48:42 +0200 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-07-07 22:02:03 +0100 |
commit | 8e44bc941b85f3a2e453c7434434e40755931a1b (patch) | |
tree | 169e07b75a46e082b484bde537d00d6740ca2eac /templates | |
parent | a16583df5416925b0da4ab158fc494671939e4fe (diff) |
[FixaMinGata] Consolidate with upstream.
Add hook for post-title field content in report form.
Update translations.
Diffstat (limited to 'templates')
44 files changed, 699 insertions, 37 deletions
diff --git a/templates/email/fixamingata/_email_bottom.html b/templates/email/fixamingata/_email_bottom.html new file mode 100644 index 000000000..dab4486cd --- /dev/null +++ b/templates/email/fixamingata/_email_bottom.html @@ -0,0 +1,17 @@ + </tr> + <tr> + <th colspan="[% email_columns %]" style="[% td_style %][% hint_style %]" class="hint"> + [%~ IF email_footer %] + [% email_footer %] + [%~ ELSE %] + Det går inte att svara på detta mail + [%~ END %] + </th> + </tr> + </table> + </th> + <th></th> + </tr> + </table> +</body> +</html> diff --git a/templates/email/fixamingata/_email_color_overrides.html b/templates/email/fixamingata/_email_color_overrides.html new file mode 100644 index 000000000..5deaf5f88 --- /dev/null +++ b/templates/email/fixamingata/_email_color_overrides.html @@ -0,0 +1,15 @@ +[% + +color_fixamingata_grey = '#eee' +color_fixamingata_blue = '#00b1da' + +header_background_color = color_fixamingata_grey + +secondary_column_background_color = color_fixamingata_grey + +button_background_color = color_fixamingata_blue + +logo_width = "207" # pixel measurement, but without 'px' suffix +logo_height = "35" # pixel measurement, but without 'px' suffix + +%] diff --git a/templates/email/fixamingata/_email_comment_list.html b/templates/email/fixamingata/_email_comment_list.html new file mode 100644 index 000000000..efbb3e8da --- /dev/null +++ b/templates/email/fixamingata/_email_comment_list.html @@ -0,0 +1,14 @@ +[% FOR update IN data %] + <div style="[% list_item_style %]"> + [%~ IF update.item_photo %] + <a href="[% problem_url %]"> + <img style="[% list_item_photo_style %]" src="[% inline_image(update.get_first_image_fp) %]" alt=""> + </a> + [%~ END %] + <p style="[% list_item_p_style %]">“[% update.item_text | html %]”</p> + <p style="[% list_item_date_style %]"> + [%~ update.item_name | html IF update.item_name AND NOT update.item_anonymous -%] + [% '(' _ cobrand.prettify_dt(update.confirmed) _ ') ' IF cobrand.include_time_in_update_alerts -%] + </p> + </div> +[% END %] diff --git a/templates/email/fixamingata/_email_report_list.html b/templates/email/fixamingata/_email_report_list.html new file mode 100644 index 000000000..5f7f67864 --- /dev/null +++ b/templates/email/fixamingata/_email_report_list.html @@ -0,0 +1,19 @@ +[% FOR report IN data %] +<div style="[% list_item_style %]"> +[% IF report.photo %] + <a href="[% cobrand.base_url_for_report( report ) %]/report/[% report.id %]"> + <img style="[% list_item_photo_style %]" src="[% inline_image(report.get_first_image_fp) %]" alt=""> + </a> +[% END %] + <h2 style="[% list_item_h2_style %]"> + <a href="[% cobrand.base_url_for_report( report ) %]/report/[% report.id %]"> + [%~ report.title | html ~%] + </a> + </h2> + <p style="[% list_item_p_style %]">[% report.detail | html %]</p> + <p style="[% list_item_date_style %]"> + [% cobrand.prettify_dt( report.confirmed ) %]. + [% report.nearest %] + </p> +</div> +[% END %] diff --git a/templates/email/fixamingata/alert-confirm.html b/templates/email/fixamingata/alert-confirm.html new file mode 100644 index 000000000..43b09fc24 --- /dev/null +++ b/templates/email/fixamingata/alert-confirm.html @@ -0,0 +1,21 @@ +[% + +email_summary = "Bekräfta din bevakning på FixaMinGata"; +email_columns = 1; + +PROCESS '_email_settings.html'; + +INCLUDE '_email_top.html'; + +%] + +<th style="[% td_style %][% only_column_style %]"> + <h1 style="[% h1_style %]">Bekräfta din bevakning på FixaMinGata</h1> + <p style="[% p_style %]">Vänligen klicka på knappen nedan för att bekräfta din prenumerationsbevakning på FixaMinGata:</p> + <p style="margin: 20px auto; text-align: center"> + <a style="[% button_style %]" href="[% token_url %]">Aktivera bevakning</a> + </p> + <p style="[% p_style %]">Om du inte vill aktivera din bevakning så behöver du inte göra något.</p> +</th> + +[% INCLUDE '_email_bottom.html' %] diff --git a/templates/email/fixamingata/alert-confirm.txt b/templates/email/fixamingata/alert-confirm.txt index c2a32b051..8f17765b6 100644 --- a/templates/email/fixamingata/alert-confirm.txt +++ b/templates/email/fixamingata/alert-confirm.txt @@ -1,9 +1,9 @@ -Subject: Bekräfta din bevakning på [% INCLUDE 'site-name.txt' | trim %] +Subject: Bekräfta din bevakning på FixaMinGata Hej, -vänligen klicka på länken nedan för att bekräfta den bevakning du -just valde att prenumerera till på [% INCLUDE 'site-name.txt' | trim %]: +Vänligen klicka på länken nedan för att bekräfta den bevakning du +just valde att prenumerera till på FixaMinGata: [% token_url %] diff --git a/templates/email/fixamingata/alert-problem-area.html b/templates/email/fixamingata/alert-problem-area.html new file mode 100644 index 000000000..45e1b7db5 --- /dev/null +++ b/templates/email/fixamingata/alert-problem-area.html @@ -0,0 +1,19 @@ +[% + +email_summary = "Nya rapporter i " _ area_name _ " på FixaMinGata"; +email_columns = 1; + +PROCESS '_email_settings.html'; + +INCLUDE '_email_top.html'; + +%] + +<th style="[% td_style %][% only_column_style %]"> + <h1 style="[% h1_style %]">Nya rapporter inom [% area_name %]</h1> + [%~ INCLUDE '_email_report_list.html' %] + + <p style="[% p_style %]"><a href="[% unsubscribe_url %]">Avsluta min prenumeration på nya rapporter i [% area_name %]</a></p> +</th> + +[% INCLUDE '_email_bottom.html' %] diff --git a/templates/email/fixamingata/alert-problem-council.html b/templates/email/fixamingata/alert-problem-council.html new file mode 100644 index 000000000..4f4df5820 --- /dev/null +++ b/templates/email/fixamingata/alert-problem-council.html @@ -0,0 +1,19 @@ +[% + +email_summary = "Nya rapporter i ${ area_name } på FixaMinGata"; +email_columns = 1; + +PROCESS '_email_settings.html'; + +INCLUDE '_email_top.html'; + +%] + +<th style="[% td_style %][% only_column_style %]"> + <h1 style="[% h1_style %]">Nya rapporter inom [% area_name %]</h1> + [%~ INCLUDE '_email_report_list.html' %] + + <p style="[% p_style %]"><a href="[% unsubscribe_url %]">Avsluta min prenumeration på nya rapporter i [% area_name %]</a></p> +</th> + +[% INCLUDE '_email_bottom.html' %] diff --git a/templates/email/fixamingata/alert-problem-nearby.html b/templates/email/fixamingata/alert-problem-nearby.html new file mode 100644 index 000000000..19e086a1a --- /dev/null +++ b/templates/email/fixamingata/alert-problem-nearby.html @@ -0,0 +1,19 @@ +[% + +email_summary = "Nya rapporter på FixaMinGata"; +email_columns = 1; + +PROCESS '_email_settings.html'; + +INCLUDE '_email_top.html'; + +%] + +<th style="[% td_style %][% only_column_style %]"> + <h1 style="[% h1_style %]">Nya rapporter i din närhet</h1> + [%~ INCLUDE '_email_report_list.html' %] + + <p style="[% p_style %]"><a href="[% unsubscribe_url %]">Avsluta min prenumeration på den här typen av rapporter</a></p> +</th> + +[% INCLUDE '_email_bottom.html' %] diff --git a/templates/email/fixamingata/alert-problem-nearby.txt b/templates/email/fixamingata/alert-problem-nearby.txt index e278e0b7b..358032ed5 100644 --- a/templates/email/fixamingata/alert-problem-nearby.txt +++ b/templates/email/fixamingata/alert-problem-nearby.txt @@ -1,6 +1,6 @@ Subject: Nya rapporter på FixaMinGata -Följande rapporter har nyligen lagts till på: +Följande rapporter har nyligen lagts till i din närhet: [% INCLUDE '_email_report_list.txt' %] diff --git a/templates/email/fixamingata/alert-problem-ward.html b/templates/email/fixamingata/alert-problem-ward.html new file mode 100644 index 000000000..b189d56a4 --- /dev/null +++ b/templates/email/fixamingata/alert-problem-ward.html @@ -0,0 +1,19 @@ +[% + +email_summary = "Nya rapporter i " _ area_name _ " på FixaMinGata" +email_columns = 1; + +PROCESS '_email_settings.html'; + +INCLUDE '_email_top.html'; + +%] + +<th style="[% td_style %][% only_column_style %]"> + <h1 style="[% h1_style %]">Nya rapporter inom [% area_name %]</h1> + [%~ INCLUDE '_email_report_list.html' %] + + <p style="[% p_style %]"><a href="[% unsubscribe_url %]">Avsluta min prenumeration på nya rapporter i [% area_name %]</a></p> +</th> + +[% INCLUDE '_email_bottom.html' %] diff --git a/templates/email/fixamingata/alert-problem.html b/templates/email/fixamingata/alert-problem.html new file mode 100644 index 000000000..a91e3d545 --- /dev/null +++ b/templates/email/fixamingata/alert-problem.html @@ -0,0 +1,19 @@ +[% + +email_summary = "Nya rapporter på FixaMinGata"; +email_columns = 1; + +PROCESS '_email_settings.html'; + +INCLUDE '_email_top.html'; + +%] + +<th style="[% td_style %][% only_column_style %]"> + <h1 style="[% h1_style %]">Nya rapporter på FixaMinGata</h1> + [%~ INCLUDE '_email_report_list.html' %] + + <p style="[% p_style %]"><a href="[% unsubscribe_url %]">Avsluta min prenumeration på nya rapporter</a></p> +</th> + +[% INCLUDE '_email_bottom.html' %] diff --git a/templates/email/fixamingata/alert-update.html b/templates/email/fixamingata/alert-update.html new file mode 100644 index 000000000..e24bb4e31 --- /dev/null +++ b/templates/email/fixamingata/alert-update.html @@ -0,0 +1,25 @@ +[% + +title = title | html; +email_summary = "Ny uppdatering - " _ title; +email_columns = 2; + +PROCESS '_email_settings.html'; + +INCLUDE '_email_top.html'; + +%] + +<th style="[% td_style %][% primary_column_style %]" id="primary_column"> + [% start_padded_box %] + <h1 style="[% h1_style %]">Ny uppdatering i <a href="[% problem_url %]">[% title %]</a></h1> + [%~ INCLUDE '_email_comment_list.html' %] + <p style="[% p_style %]"><a href="[% unsubscribe_url %]">Avsluta min prenumeration kring denna rapport</a></p> + [% end_padded_box %] +</th> +[% WRAPPER '_email_sidebar.html' object = report %] + <h2 style="[% h2_style %]">[% title | html %]</h2> + <p style="[% secondary_p_style %]">[% detail | html %]</p> +[% END %] + +[% INCLUDE '_email_bottom.html' %] diff --git a/templates/email/fixamingata/change_email.html b/templates/email/fixamingata/change_email.html new file mode 100644 index 000000000..c5514fc2f --- /dev/null +++ b/templates/email/fixamingata/change_email.html @@ -0,0 +1,21 @@ +[% + +email_summary = "Klicka på den här länken för att ändra din FixaMinGata-epostadress"; +email_columns = 1; + +PROCESS '_email_settings.html'; + +INCLUDE '_email_top.html'; + +%] + +<th style="[% td_style %][% only_column_style %]"> + <h1 style="[% h1_style %]">Ändra din FixaMinGata-epostadress</h1> + <p style="[% p_style %]">Klicka på länken nedan för att bekräfta att du vill uppdatera din epostadress på FixaMinGata.</p> + <p style="margin: 20px auto; text-align: center"> + <a style="[% button_style %]" href="[% c.uri_for_action( 'auth/token', token ) %]">Ändra min epostadress</a> + </p> + <p style="[% p_style %]">Om du inte vill ändra din epostadress så behöver du inte göra något.</p> +</th> + +[% INCLUDE '_email_bottom.html' %] diff --git a/templates/email/fixamingata/change_email.txt b/templates/email/fixamingata/change_email.txt new file mode 100644 index 000000000..c83c9bd3f --- /dev/null +++ b/templates/email/fixamingata/change_email.txt @@ -0,0 +1,10 @@ +Subject: Uppdatera din e-postadress på [% site_name %] + +Klicka på länken nedan för att bekräfta att du vill uppdatera din +e-postadress på [% site_name %]. + +[% c.uri_for_action( 'auth/token', token ) %] + +[% INCLUDE 'signature.txt' %] + +Det går inte att svara på detta mail. diff --git a/templates/email/fixamingata/confirm_report_sent.txt b/templates/email/fixamingata/confirm_report_sent.txt new file mode 100644 index 000000000..50b28caf4 --- /dev/null +++ b/templates/email/fixamingata/confirm_report_sent.txt @@ -0,0 +1,23 @@ +Subject: [% site_name %] Rapport skickad: [% title %] + +Hej, + +Tack för att du använder [% site_name %] för att skicka din rapport +"[% title %]". + +Din rapport har nu skickats till [% bodies_name %]. + +Din rapport är också tillgänglig på [% url %], där andra kan läsa eller +diskutera kring rapporten. + +Du kan lämna uppdateringar på ovanstående sida, men dessa kommer inte att +skickas till kommunen. + +Om du vill skicka en uppdatering till din kommun, gör då detta då de har +återkopplat till dig, så att du kan svara direkt till kommunen. + +Lycka till med att få ditt problem fixat! + +[% signature %] + +Det går inte att svara på detta mail. diff --git a/templates/email/fixamingata/contact.html b/templates/email/fixamingata/contact.html new file mode 100644 index 000000000..47c828a36 --- /dev/null +++ b/templates/email/fixamingata/contact.html @@ -0,0 +1,38 @@ +[% + +subject_html = subject | html; +name = form_name | html; +email_summary = "“" _ subject_html _ "” – Meddelande från " _ name _ " hos " _ host; +email_footer = "Skickat via " _ host _ " och IP-adressen " _ ip; +email_columns = 1; + +PROCESS '_email_settings.html'; + +INCLUDE '_email_top.html'; + +%] + +<th style="[% td_style %][% contact_meta_style %]"> + <table [% table_reset %]> + <tr> + <th style="[% contact_th_style %]">Från</th> + <td style="[% contact_td_style %]">[% name %] <<a href="mailto:[% em | html %]">[% em | html %]</a>></td> + </tr> + </table> +</th> +</tr> + +<tr> +<th style="[% td_style %][% only_column_style %]"> + <h1 style="[% h1_style %]">[% subject | html %]</h1> + <p style="[% p_style %]">[% message | html %]</p> + [%~ IF complaint %] + <p style="[% secondary_p_style %]"> + [% complaint | html %] + - <a href="[% problem_url %]">Rapport</a> + - <a href="[% admin_url %]">Administratörskontrollpanel</a> + </p> + [%~ END %] +</th> + +[% INCLUDE '_email_bottom.html' %] diff --git a/templates/email/fixamingata/login.html b/templates/email/fixamingata/login.html new file mode 100644 index 000000000..ade57f912 --- /dev/null +++ b/templates/email/fixamingata/login.html @@ -0,0 +1,21 @@ +[% + +email_summary = "Klicka på knappen för att bekräfta din e-postadress och logga in på FixaMinGata"; +email_columns = 1; + +PROCESS '_email_settings.html'; + +INCLUDE '_email_top.html'; + +%] + +<th style="[% td_style %][% only_column_style %]"> + <h1 style="[% h1_style %]">Välkommen till FixaMinGata!</h1> + <p style="[% p_style %]">För att bekräfta din epostadress måste du nu klicka på knappen nedan.</p> + <p style="margin: 20px auto; text-align: center"> + <a style="[% button_style %]" href="[% c.uri_for_action( 'auth/token', token ) %]">Bekräfta min epostadress</a> + </p> + <p style="[% p_style %]">Du kommer sedan att kunna se dina rapporter och hantera dem via sajten.</p> +</th> + +[% INCLUDE '_email_bottom.html' %] diff --git a/templates/email/fixamingata/login.txt b/templates/email/fixamingata/login.txt index defcb57cb..e3d8f9f27 100644 --- a/templates/email/fixamingata/login.txt +++ b/templates/email/fixamingata/login.txt @@ -1,4 +1,4 @@ -Subject: [% loc('Your FixMyStreet.com account details') %] +Subject: Ditt FixaMinGata-konto Välkommen till FixaMinGata! @@ -6,7 +6,6 @@ För att bekräfta din epostadress måste du nu klicka på länken nedan. Du kommer sedan att kunna se dina rapporter och hantera dem via webbsidan. - [% c.uri_for_action( 'auth/token', token ) %] [% INCLUDE 'signature.txt' %] diff --git a/templates/email/fixamingata/other-reported.html b/templates/email/fixamingata/other-reported.html new file mode 100644 index 000000000..3ba29dcb0 --- /dev/null +++ b/templates/email/fixamingata/other-reported.html @@ -0,0 +1,30 @@ +[% + +email_summary = "Tack för att du loggade din rapport"; +email_columns = 2; + +PROCESS '_email_settings.html'; +INCLUDE '_email_top.html'; + +%] + +<th style="[% td_style %][% primary_column_style %]" id="primary_column"> + [% start_padded_box %] + <h1 style="[% h1_style %]">Din rapport har loggats</h1> + <p style="[% p_style %]">Din rapport till [% report.body %] har blivit loggad på [% site_name %]. +[% IF c.cobrand.is_council && !c.cobrand.owns_problem( report ) %] +Eftersom [% c.cobrand.council_name %] inte är ansvarig för den här typen av +rapporter, så kommer rapporten istället att skickas till [% report.body %]. +[% END %] + </p> + <p style="margin: 20px auto; text-align: center"> + <a style="[% button_style %]" href="[% cobrand.base_url_for_report(report) %][% report.url %]">Visa min rapport</a> + </p> + [% end_padded_box %] +</th> +[% WRAPPER '_email_sidebar.html' object = report %] + <h2 style="[% h2_style %]">[% report.title | html %]</h2> + <p style="[% secondary_p_style %]">[% report.detail | html %]</p> +[% END %] + +[% INCLUDE '_email_bottom.html' %] diff --git a/templates/email/fixamingata/other-reported.txt b/templates/email/fixamingata/other-reported.txt new file mode 100644 index 000000000..f530f788e --- /dev/null +++ b/templates/email/fixamingata/other-reported.txt @@ -0,0 +1,26 @@ +Subject: Din rapport har loggats: [% report.title %] + +Hej [% report.name %], + +Din rapport till [% report.body %] har blivit loggad på [% site_name %]. + +[% IF c.cobrand.is_council && !c.cobrand.owns_problem( report ) %] +Eftersom [% c.cobrand.council_name %] inte är ansvarig för den här typen av +rapporter, så kommer rapporten istället att skickas till [% report.body %]. +[% END %] + +Du kan se din rapport på: + +[% cobrand.base_url_for_report(report) %][% report.url %] + +Din rapport har titeln: + +[% report.title %] + +Och detaljerna: + +[% report.detail %] + +[% INCLUDE 'signature.txt' %] + +Det går inte att svara på detta mail. diff --git a/templates/email/fixamingata/other-updated.html b/templates/email/fixamingata/other-updated.html new file mode 100644 index 000000000..7be360ef7 --- /dev/null +++ b/templates/email/fixamingata/other-updated.html @@ -0,0 +1,26 @@ +[% + +email_summary = "Tack för att du loggade din uppdatering"; +email_columns = 2; + +PROCESS '_email_settings.html'; +INCLUDE '_email_top.html'; + +%] + +<th style="[% td_style %][% primary_column_style %]" id="primary_column"> + [% start_padded_box %] + <h1 style="[% h1_style %]">Din uppdatering har loggats</h1> + <p style="[% p_style %]">Din uppdatering har blivit loggad på [% site_name %]:</p> + <p style="margin: 20px auto; text-align: center"> + <a style="[% button_style %]" href="[% cobrand.base_url_for_report(problem) %][% problem.url %]#update_[% update.id %]">Visa min uppdatering</a> + </p> + [% end_padded_box %] +</th> +[% WRAPPER '_email_sidebar.html' + object = update + report = problem %] + <p style="[% secondary_p_style %]">[% update.text | html %]</p> +[% END %] + +[% INCLUDE '_email_bottom.html' %] diff --git a/templates/email/fixamingata/other-updated.txt b/templates/email/fixamingata/other-updated.txt new file mode 100644 index 000000000..2010511e9 --- /dev/null +++ b/templates/email/fixamingata/other-updated.txt @@ -0,0 +1,15 @@ +Subject: Din uppdatering har loggats + +Hej [% update.name %], + +Din uppdatering har blivit loggad på [% site_name %]: + +[% cobrand.base_url_for_report(problem) %][% problem.url %]#update_[% update.id %] + +Din uppdatering: + +[% update.text %] + +[% INCLUDE 'signature.txt' %] + +Det går inte att svara på detta mail. diff --git a/templates/email/fixamingata/problem-confirm-not-sending.html b/templates/email/fixamingata/problem-confirm-not-sending.html new file mode 100644 index 000000000..0a06d2880 --- /dev/null +++ b/templates/email/fixamingata/problem-confirm-not-sending.html @@ -0,0 +1,30 @@ +[% + +email_summary = "Du måste bekräfta din FixaMinGata-rapport innan den kan visas på sajten"; +email_columns = 2; + +PROCESS '_email_settings.html'; + +INCLUDE '_email_top.html'; + +%] + +<th style="[% td_style %][% primary_column_style %]" id="primary_column"> + [% start_padded_box %] + <h1 style="[% h1_style %]">Bekräfta din FixaMinGata-rapport</h1> + <p style="[% p_style %]">För att bekräfta den rapport som du nyligen lade in på FixaMinGata +måste du klicka på nedanstående länk. Notera att din rapport inte kommer att +skickas till kommunen.</p> + <p style="[% p_style %]">Din rapport kommer också att visas på FixaMinGata.</p> + <p style="margin: 20px auto; text-align: center"> + <a style="[% button_style %]" href="[% token_url %]">Skicka min rapport</a> + </p> + <p style="[% p_style %]">Om du inte vill skicka din rapport så behöver du inte göra något.</p> + [% end_padded_box %] +</th> +[% WRAPPER '_email_sidebar.html' object = report %] + <h2 style="[% h2_style %]">[% report.title | html %]</h2> + <p style="[% secondary_p_style %]">[% report.detail | html %]</p> +[% END %] + +[% INCLUDE '_email_bottom.html' %] diff --git a/templates/email/fixamingata/problem-confirm-not-sending.txt b/templates/email/fixamingata/problem-confirm-not-sending.txt new file mode 100644 index 000000000..0ec162063 --- /dev/null +++ b/templates/email/fixamingata/problem-confirm-not-sending.txt @@ -0,0 +1,22 @@ +Subject: Bekräfta din rapport på [% INCLUDE 'site-name.txt' | trim %] + +Hej [% report.name %], + +För att bekräfta den rapport som du nyligen lade in på FixaMinGata +måste du klicka på nedanstående länk. Notera att din rapport inte +kommer att skickas till kommunen. + +[% token_url %] + +Om det inte går att klicka på länken kan du kopiera den och klistra in +i adressfältet på din webläsare. + +Din rapport har titeln: [% report.title %] + +Du har angivit följande information om problemet: + +[% report.detail %] + +[% INCLUDE 'signature.txt' %] + +Det går inte att svara på detta mail. diff --git a/templates/email/fixamingata/problem-confirm.html b/templates/email/fixamingata/problem-confirm.html new file mode 100644 index 000000000..8e2828f25 --- /dev/null +++ b/templates/email/fixamingata/problem-confirm.html @@ -0,0 +1,29 @@ +[% + +email_summary = "Du måste bekräfta din FixaMinGata-rapport innan den kan skickas till ${ report.body }"; +email_columns = 2; + +PROCESS '_email_settings.html'; + +INCLUDE '_email_top.html'; + +%] + +<th style="[% td_style %][% primary_column_style %]" id="primary_column"> + [% start_padded_box %] + <h1 style="[% h1_style %]">Bekräfta din FixaMinGata-rapport</h1> + <p style="[% p_style %]">För att bekräfta den rapport som du nyligen lade in på FixaMinGata +måste du klicka på nedanstående knapp.</p> + <p style="[% p_style %]">Din rapport kommer också att visas på FixaMinGata.</p> + <p style="margin: 20px auto; text-align: center"> + <a style="[% button_style %]" href="[% token_url %]">Skicka min rapport</a> + </p> + <p style="[% p_style %]">Om du inte vill skicka din rapport så behöver du inte göra något.</p> + [% end_padded_box %] +</th> +[% WRAPPER '_email_sidebar.html' object = report %] + <h2 style="[% h2_style %]">[% report.title | html %]</h2> + <p style="[% secondary_p_style %]">[% report.detail | html %]</p> +[% END %] + +[% INCLUDE '_email_bottom.html' %] diff --git a/templates/email/fixamingata/problem-confirm.txt b/templates/email/fixamingata/problem-confirm.txt index 67bc4b82d..8d020ce5d 100644 --- a/templates/email/fixamingata/problem-confirm.txt +++ b/templates/email/fixamingata/problem-confirm.txt @@ -16,5 +16,4 @@ Du har angivit följande information om problemet: [% report.detail %] - [% INCLUDE 'signature.txt' %] diff --git a/templates/email/fixamingata/problem-moderated.html b/templates/email/fixamingata/problem-moderated.html new file mode 100644 index 000000000..02bace72f --- /dev/null +++ b/templates/email/fixamingata/problem-moderated.html @@ -0,0 +1,32 @@ +[% + +email_summary = "Din rapport på " _ site_name _ " har blivit modererad."; +email_columns = 2; + +PROCESS '_email_settings.html'; + +INCLUDE '_email_top.html'; + +%] + +<th style="[% td_style %][% primary_column_style %]" id="primary_column"> + [% start_padded_box %] + <h1 style="[% h1_style %]">Din rapport har blivit modererad</h1> +[% IF types == 'hide' -%] + <p style="[% p_style %]">Din rapport har dolts från sajten.</p> +[% ELSE %] + <p style="[% p_style %]">Följande information har ändrats: <strong>[% types %]</strong></p> + <p style="margin: 20px auto; text-align: center"> + <a style="[% button_style %]" href="[% report_uri %]">Visa min rapport</a> + </p> +[% END -%] + <p style="[% p_style %]">Om du inte tycker att rapporten skulle ha blivit modererad kan du +kontakta FixaMinGata:s support på <a href="[% report_complain_uri %]">[% report_complain_uri %]</a></p> + [% end_padded_box %] +</th> +[% WRAPPER '_email_sidebar.html' object = problem %] + <h2 style="[% h2_style %]">[% problem.moderation_original_data.title | html %]</h2> + <p style="[% secondary_p_style %]">[% problem.moderation_original_data.detail | html %]</p> +[% END %] + +[% INCLUDE '_email_bottom.html' %] diff --git a/templates/email/fixamingata/problem-moderated.txt b/templates/email/fixamingata/problem-moderated.txt new file mode 100644 index 000000000..ad03ba421 --- /dev/null +++ b/templates/email/fixamingata/problem-moderated.txt @@ -0,0 +1,33 @@ +Subject: Din rapport har blivit modererad + +Hej [% user.name %], + +Din rapport på [% site_name %] har blivit modererad. + +[% IF types == 'hide' -%] +Din rapport har dolts från sajten. +[% ELSE %] +Följande information har ändrats: + + [% types %] + +[% END -%] + +Din rapport har titeln: + +[% problem.moderation_original_data.title %] + +Du har angivit följande information om problemet: + +[% problem.moderation_original_data.detail %] + +[% UNLESS types == 'hide' %] +Du kan se rapporten på [% report_uri %] +[% END %] + +Om du inte tycker att rapporten skulle ha blivit modererad kan du kontakta +FixaMinGata:s support på [% report_complain_uri %] + +[% INCLUDE 'signature.txt' %] + +Det går inte att svara på detta mail. diff --git a/templates/email/fixamingata/questionnaire.html b/templates/email/fixamingata/questionnaire.html new file mode 100644 index 000000000..efcfbff89 --- /dev/null +++ b/templates/email/fixamingata/questionnaire.html @@ -0,0 +1,30 @@ +[% + +title = report.title | html; +email_summary = "Har du en minut över? Informera oss om vad som hände med din FixaMinGata-rapport om ${ title }."; +email_columns = 2; + +PROCESS '_email_settings.html'; + +INCLUDE '_email_top.html'; + +%] + +<th style="[% td_style %][% primary_column_style %]" id="primary_column"> + [% start_padded_box %] + <h1 style="[% h1_style %]">Har ditt problem blivit fixat?</h1> + <p style="[% p_style %]">[% created %] sedan lämnade du en rapport på FixaMinGata.</p> + <p style="[% p_style %]">För att hålla alla rapporter uppdaterade skulle vi uppskatta om du kunde informera oss om huruvida problemet har blivit fixat än:</p> + <p style="margin: 20px auto; text-align: center"> + <a style="[% fixed_button_style %]" href="[% url %]">Fixat</a> + <a style="[% notfixed_button_style %]" href="[% url %]">Ej fixat</a> + </p> + <p style="[% p_style %]">Tack! Din feedback är värdefull.</p> + [% end_padded_box %] +</th> +[% WRAPPER '_email_sidebar.html' object = report %] + <h2 style="[% h2_style %]">[% title %]</h2> + <p style="[% secondary_p_style %]">[% report.detail | html %]</p> +[% END %] + +[% INCLUDE '_email_bottom.html' %] diff --git a/templates/email/fixamingata/reply-autoresponse b/templates/email/fixamingata/reply-autoresponse index 7935b1717..aee80078f 100644 --- a/templates/email/fixamingata/reply-autoresponse +++ b/templates/email/fixamingata/reply-autoresponse @@ -2,7 +2,7 @@ Subject: Automatiskt svar på ditt brev till FixaMinGata Hej, -det här ett ett automatiskt svar på ditt brev. Ditt brev har inte +Det här ett ett automatiskt svar på ditt brev. Ditt brev har inte lästs eller levererats till någon. Om du svarar på ett brev om en uppdatering måste du klicka på diff --git a/templates/email/fixamingata/submit.html b/templates/email/fixamingata/submit.html new file mode 100644 index 000000000..da4e7f48f --- /dev/null +++ b/templates/email/fixamingata/submit.html @@ -0,0 +1,57 @@ +[% + +email_summary = "Det här meddelandet rör en rapport om ett problem i gatumiljön som en medborgare lämnat via tjänsten FixaMinGata"; +email_footer = "Föreningen Sambruk som driver tjänsten ansvarar för en användargrupp som det går bra att gå med i för att få tillgång till ytterligare FixaMinGata-relaterade tjänster och support. Bland annat kan varje kategori ha sin egen e-postadress, och FixaMinGata kan även kopplas mot system som Open311"; +email_columns = 2; + +PROCESS '_email_settings.html'; + +INCLUDE '_email_top.html'; + +%] + +<th style="[% td_style %][% primary_column_style %]" id="primary_column"> + [% start_padded_box %] + <h1 style="[% h1_style %]">Ny rapport för [% report.body %]</h1> + <p style="[% p_style %]">[% missing %][% multiple %]Följande rapport +tror medborgaren behöver er uppmärksamhet.</p> + + <p style="margin: 20px auto; text-align: center"> + <a style="[% button_style %]" href="[% url %]">Visa rapporten</a> + </p> + <h2 style="[% h2_style %] margin: 30px 0 10px 0">Rapporterad av:</h2> + <table [% table_reset %]> + <tr> + <th style="[% contact_th_style %]">Namn</th> + <td style="[% contact_td_style %]">[% name | html %]</td> + </tr> + <tr> + <th style="[% contact_th_style %]">Epost</th> + <td style="[% contact_td_style %]"><a href="mailto:[% email | html %]">[% email | html %]</a></td> + </tr> + [%~ IF phone %] + <tr> + <th style="[% contact_th_style %]">Telefon</th> + <td style="[% contact_td_style %]"><a href="tel:[% phone | html %]">[% phone | html %]</a></td> + </tr> + [%~ END %] + </table> + <p style="[% p_style %] margin-top: 0.5em;">Svar på det här brevet kommer att skickas till den person som lämnade rapporten.</p> + [% end_padded_box %] +</th> +[% WRAPPER '_email_sidebar.html' object = report %] + <h2 style="[% h2_style %]">[% title | html %]</h2> + [%~ IF category_line %] + <p style="[% secondary_p_style %]">[% category | html %]</p> + [%~ END %] + <p style="[% secondary_p_style %]">[% detail | html %]</p> + <p style="[% secondary_p_style %]"> + <strong>Plats:</strong> + <a href="[% osm_url %]" title="Se den här platsen på OpenStreetMap"> + [%~ latitude %], [% longitude ~%] + </a> + [% IF closest_address %]<br>[% closest_address | trim | replace("\n\n", "<br>") %][% END %] + </p> +[% END %] + +[% INCLUDE '_email_bottom.html' %] diff --git a/templates/email/fixamingata/update-confirm-donotsend.txt b/templates/email/fixamingata/update-confirm-donotsend.txt new file mode 100644 index 000000000..1dae08ac9 --- /dev/null +++ b/templates/email/fixamingata/update-confirm-donotsend.txt @@ -0,0 +1,2 @@ +Notera att vi inte skickar uppdateringar till [% update.problem.body %] - endast +användare som prenumererar på uppdateringar i ärendet kommer att se ditt inlägg. diff --git a/templates/email/fixamingata/update-confirm.html b/templates/email/fixamingata/update-confirm.html new file mode 100644 index 000000000..3953b16fd --- /dev/null +++ b/templates/email/fixamingata/update-confirm.html @@ -0,0 +1,29 @@ +[% + +email_summary = "Bekräfta din uppdatering på " _ site_name; +email_columns = 2; + +PROCESS '_email_settings.html'; + +INCLUDE '_email_top.html'; + +%] + +<th style="[% td_style %][% primary_column_style %]" id="primary_column"> + [% start_padded_box %] + <h1 style="[% h1_style %]">Bekräfta din uppdatering</h1> + <p style="[% p_style %]">Vänligen klicka på knappen nedan för att bekräfta den uppdatering du just lämnade:</p> + <p style="margin: 20px auto; text-align: center"> + <a style="[% button_style %]" href="[% token_url %]">Bekräfta min uppdatering</a> + </p> + <p style="[% p_style %]">[% INCLUDE 'update-confirm-donotsend.txt' %]</p> + <p style="[% p_style %]">Om du inte vill bekräfta din uppdatering behöver du inte göra något.</p> + [% end_padded_box %] +</th> +[% WRAPPER '_email_sidebar.html' + object = update + report = problem %] + <p style="[% secondary_p_style %]">[% update.text | html %]</p> +[% END %] + +[% INCLUDE '_email_bottom.html' %] diff --git a/templates/email/fixamingata/update-confirm.txt b/templates/email/fixamingata/update-confirm.txt index 6ef35f83d..6670bd0ea 100644 --- a/templates/email/fixamingata/update-confirm.txt +++ b/templates/email/fixamingata/update-confirm.txt @@ -2,7 +2,7 @@ Subject: Bekräfta din uppdatering på [% INCLUDE 'site-name.txt' | trim %] Hej [% update.name %], -vänligen klicka på länken nedan för att bekräfta den uppdatering du +Vänligen klicka på länken nedan för att bekräfta den uppdatering du just lämnade: [% token_url %] diff --git a/templates/web/base/report/new/form_report.html b/templates/web/base/report/new/form_report.html index e85d890c9..1d1a0e289 100644 --- a/templates/web/base/report/new/form_report.html +++ b/templates/web/base/report/new/form_report.html @@ -22,6 +22,8 @@ [% END %] <input class="form-control" type="text" value="[% report.title | html %]" name="title" id="form_title" placeholder="[% loc('10 inch pothole on Example St, near post box') %]" required> +[% TRY %][% PROCESS 'report/new/after_title.html' %][% CATCH file %][% END %] + [% IF c.cobrand.allow_photo_upload %] <input type="hidden" name="upload_fileid" value="[% upload_fileid %]"> <label for="form_photo"> diff --git a/templates/web/fixamingata/about/faq-sv.html b/templates/web/fixamingata/about/faq-sv.html index aea90743b..05ffdaddc 100755 --- a/templates/web/fixamingata/about/faq-sv.html +++ b/templates/web/fixamingata/about/faq-sv.html @@ -21,8 +21,6 @@ markera problemen på en karta. Tjänsten bygger på en förlaga från Storbrita där tjänsten lanserades i Februari 2007. I Norge lanserades den 2011 och i Sverige 2013. </dd> - <dt>Hur kan jag lämna ett förbättringsförslag kring FixaMinGata?</dt> - <dd>Lämna ditt förslag <a href="javascript:UserVoice.showPopupWidget();">här</a>.</dd> <dt>Hur kommer jag i kontakt med FixaMinGata?</dt> <dd>Använd vårt <a href="/contact">kontaktformulär</a>.</dd> <dt>Vilken typ av problem ska jag rapportera i FixaMinGata?</dt> diff --git a/templates/web/fixamingata/footer.html b/templates/web/fixamingata/footer.html index 7fd490129..ad4d6c4a6 100644 --- a/templates/web/fixamingata/footer.html +++ b/templates/web/fixamingata/footer.html @@ -21,7 +21,6 @@ %]>[% loc("Local alerts") %]</[% c.req.uri.path == '/alert' ? 'span' : 'a' %]></li>[% %]<li><[% IF c.req.uri.path == '/faq' %]span[% ELSE %]a href="/faq"[% END %]>[% loc("Help") %]</[% c.req.uri.path == '/faq' ? 'span' : 'a' %]></li> - <!-- <li><a href="javascript:UserVoice.showPopupWidget();">Lämna förslag</a></li> --> </ul> </div> </div> @@ -29,15 +28,6 @@ </div> <!-- .wrapper --> [% INCLUDE 'common_footer_tags.html' %] - -<script type="text/javascript"> - var uvOptions = {}; - (function() { - var uv = document.createElement('script'); uv.type = 'text/javascript'; uv.async = true; - uv.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'widget.uservoice.com/vflswzMnwvfytYBz1rNw.js'; - var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(uv, s); - })(); -</script> </body> </html> diff --git a/templates/web/fixamingata/front/tips.html b/templates/web/fixamingata/front/tips.html index fd309708f..038343d90 100644 --- a/templates/web/fixamingata/front/tips.html +++ b/templates/web/fixamingata/front/tips.html @@ -1 +1 @@ -<div style="height: 329px; padding-top: 20px;"><iframe width="100%" height="329" src="//www.youtube.com/embed/H5knzdalYI0" frameborder="0" allowfullscreen></iframe></div> +<div style="height: 329px; padding-top: 20px;"><iframe width="100%" height="329" src="//www.youtube.com/embed/uyiRyuIV0qY" frameborder="0" allowfullscreen></iframe></div> diff --git a/templates/web/fixamingata/header_opengraph_image.html b/templates/web/fixamingata/header_opengraph_image.html index 7ec1aabb0..7a681484a 100644 --- a/templates/web/fixamingata/header_opengraph_image.html +++ b/templates/web/fixamingata/header_opengraph_image.html @@ -1,4 +1,4 @@ - <meta property="og:image" content="[% c.cobrand.base_url %]/cobrands/fixmystreet/images/fms-og_image.jpg"> + <meta property="og:image" content="[% c.cobrand.base_url %]/cobrands/fixamingata/images/fms-og_image.jpg"> <meta property="og:image:type" content="image/jpeg"> <meta property="og:image:width" content="1200"> <meta property="og:image:height" content="630"> diff --git a/templates/web/fixamingata/report/new/after_title.html b/templates/web/fixamingata/report/new/after_title.html new file mode 100644 index 000000000..ff38624f5 --- /dev/null +++ b/templates/web/fixamingata/report/new/after_title.html @@ -0,0 +1,8 @@ +<div class="description_tips" aria-label="Allmänna riktlinjer kring rapporter"> + <ul class="do"> + <li>Rapportera endast fysiska problem som kan åtgärdas</li> + </ul> + <ul class="dont"> + <li>Använd inte FixaMinGata för rena synpunkter och förslag</li> + </ul> +</div> diff --git a/templates/web/fixamingata/report/new/inline-tips.html b/templates/web/fixamingata/report/new/inline-tips.html index 4fab9c81c..5bce67257 100644 --- a/templates/web/fixamingata/report/new/inline-tips.html +++ b/templates/web/fixamingata/report/new/inline-tips.html @@ -8,7 +8,6 @@ </ul> <ul class="dont"> <li>Vid akut situation används inte FixaMinGata (ex. vattenläckor)</li> - <li>Använd inte FixaMinGata för rena synpunkter och förslag</li> <li>Inkludera inte privata kontaktdetaljer i beskrivningen</li> </ul> </div> diff --git a/templates/web/fixamingata/report/new/notes.html b/templates/web/fixamingata/report/new/notes.html deleted file mode 100644 index 9ec6b0e29..000000000 --- a/templates/web/fixamingata/report/new/notes.html +++ /dev/null @@ -1,8 +0,0 @@ -<ul class="plain-list"> -[% IF all_councils.items.first > 0 %] - <li style="margin-bottom: 0em;">[% id = all_councils.items.first; - tprintf("Kom ihåg att FixaMinGata primärt är avsett för att rapportera fysiska problem som kan åtgärdas. Om ditt problem inte lämpar sig för att rapportera via den här webbsidan kan du kontakta din kommun direkt via <a href='%s'>deras webbsida</a>.", all_body_urls.$id); %]</li> -[% ELSE %] - <li style="margin-bottom: 0em;">[% loc("Remember that FixMyStreet is primarily for reporting physical problems that can be fixed. If your problem is not appropriate for submission via this site remember that you can contact your council directly using their own website.") %]</li> -[% END %] -</ul> diff --git a/templates/web/fixamingata/report/new/sidebar.html b/templates/web/fixamingata/report/new/sidebar.html index 972fccf53..e69de29bb 100644 --- a/templates/web/fixamingata/report/new/sidebar.html +++ b/templates/web/fixamingata/report/new/sidebar.html @@ -1,5 +0,0 @@ -<div id="report-a-problem-sidebar"> - <div class="sidebar-notes"> - [% INCLUDE 'report/new/notes.html' %] - </div> -</div> |