暂无描述

template_selection.html 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <% extends 'layout.html' %>
  2. <% block after_css %>
  3. <%= stylesheet('mailpoet-form-editor.css') %>
  4. <% endblock %>
  5. <% block container %>
  6. <script type="text/javascript">
  7. var mailpoet_beacon_articles = [
  8. '5fac13f2cff47e00160b8dff',
  9. '5e43d3ec2c7d3a7e9ae79da9',
  10. ];
  11. </script>
  12. <div class="block-editor">
  13. <div id="mailpoet_form_edit_templates">
  14. </div>
  15. </div>
  16. <script>
  17. <% autoescape 'js' %>
  18. var mailpoet_templates = <%= json_encode(templates) %>;
  19. var mailpoet_form_edit_url =
  20. "<%= admin_url('admin.php?page=mailpoet-form-editor&template_id=') %>";
  21. <% endautoescape %>
  22. </script>
  23. <style id="mailpoet-form-editor-form-styles"></style>
  24. <% endblock %>
  25. <% block translations %>
  26. <%= localize({
  27. 'heading': __('Select form template'),
  28. 'createBlankTemplate': _x('Skip, start with a blank form', 'a button for skipping form template selection'),
  29. 'fixedBarCategory': _x('Fixed bar', 'This is a text on a widget that leads to settings for form placement - form type is fixed bar'),
  30. 'slideInCategory': _x('Slide–in', 'This is a text on a widget that leads to settings for form placement - form type is slide in'),
  31. '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'),
  32. 'belowPagesCategory': _x('Below pages', 'This is a text on a widget that leads to settings for form placement'),
  33. 'othersCategory': _x('Others (widget)', 'Placement of the form using theme widget'),
  34. 'select': _x('Select', 'Verb'),
  35. 'selectTemplate': _x('Select a template', 'Form template selection heading'),
  36. 'createFormError': __('Sorry, there was an error, please try again later.'),
  37. }) %>
  38. <% endblock %>
  39. <% block after_javascript %>
  40. <%= javascript('form_editor.js')%>
  41. <% endblock %>