Files
piratepoet/views/form/template_selection.html
Pavel Dohnal 565da8b52e Move Template Selection to a separate page
[MAILPOET-2987]
2020-06-25 16:23:16 +02:00

41 lines
902 B
HTML

<% extends 'layout.html' %>
<% block after_css %>
<%= stylesheet('mailpoet-form-editor.css') %>
<% endblock %>
<% block container %>
<script type="text/javascript">
var mailpoet_beacon_articles = [
'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'),
'blankTemplate': _x('Blank template', 'the first item in the templates selection list'),
}) %>
<% endblock %>
<% block after_javascript %>
<%= javascript('form_editor.js')%>
<% endblock %>