Files
piratepoet/views/form/template_selection.html
Ján Mikláš 0f0ec6b795 Update default Beacon articles
[MAILPOET-3302]
2020-12-22 10:49:47 +01:00

50 lines
1.8 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<% extends 'layout.html' %>
<% block after_css %>
<%= stylesheet('mailpoet-form-editor.css') %>
<% endblock %>
<% block container %>
<script type="text/javascript">
var mailpoet_beacon_articles = [
'5fac13f2cff47e00160b8dff',
'5e43d3ec2c7d3a7e9ae79da9',
];
</script>
<div class="block-editor">
<div id="mailpoet_form_edit_templates">
</div>
</div>
<script>
<% autoescape 'js' %>
var mailpoet_templates = <%= json_encode(templates) %>;
var mailpoet_form_edit_url =
"<%= admin_url('admin.php?page=mailpoet-form-editor&id=') %>";
<% endautoescape %>
</script>
<style id="mailpoet-form-editor-form-styles"></style>
<% endblock %>
<% block translations %>
<%= localize({
'heading': __('Select form template'),
'createBlankTemplate': _x('Skip, start with a blank form', 'a button for skipping form template selection'),
'fixedBarCategory': _x('Fixed bar', 'This is a text on a widget that leads to settings for form placement - form type is fixed bar'),
'slideInCategory': _x('Slidein', 'This is a text on a widget that leads to settings for form placement - form type is slide in'),
'popupCategory': _x('Pop-up', 'This is a text on a widget that leads to settings for form placement - form type is pop-up, it will be displayed on page in a small modal window'),
'belowPagesCategory': _x('Below pages', 'This is a text on a widget that leads to settings for form placement'),
'othersCategory': _x('Others (widget)', 'Placement of the form using theme widget'),
'select': _x('Select', 'Verb'),
'selectTemplate': _x('Select a template', 'Form template selection heading'),
'createFormError': __('Sorry, there was an error, please try again later.'),
}) %>
<% endblock %>
<% block after_javascript %>
<%= javascript('form_editor.js')%>
<% endblock %>