Files
piratepoet/views/form/editor.html
Pavel Dohnal 3230bff824 Rename global variable to match the old code
[MAILPOET-2453]
2019-12-19 10:24:41 +01:00

102 lines
4.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(
'formEditor.css'
)%>
<% endblock %>
<% block container %>
<div class="block-editor">
<div id="mailpoet_form_edit" class="block-editor__container">
</div>
</div>
<script>
<% autoescape 'js' %>
var mailpoet_form_data = <%= json_encode(form) %>;
var mailpoet_form_exports = <%= json_encode(form_exports) %>;
var mailpoet_form_segments = <%= json_encode(segments) %>;
var mailpoet_form_pages = <%= json_encode(pages) %>;
var mailpoet_custom_fields = <%= json_encode(custom_fields) %>;
var mailpoet_date_types = <%= json_encode(date_types) %>;
var mailpoet_date_formats = <%= json_encode(date_formats) %>;
var mailpoet_month_names = <%= json_encode(month_names) %>;
<% endautoescape %>
</script>
<style id="mailpoet-form-editor-form-styles"></style>
<% endblock %>
<% block translations %>
<%= localize({
'addFormName': _x('Add form name', 'A placeholder for form name input'),
'form': __('Form'),
'formSettings': _x('Settings', 'A settings section heading'),
'customFieldSettings': _x('Custom field settings', 'A settings section heading'),
'customFieldsFormSettings': _x('Form settings', 'A settings section heading'),
'formPlacement': _x('Form Placement', 'A settings section heading'),
'customCss': _x('Custom CSS', 'A settings section heading'),
'formSaved': __('Form saved.'),
'customFieldSaved': __('Custom field saved.'),
'addFormWidgetHint': __('Add this form to your sidebar or footer on the [link]Widgets page[/link].'),
'addFormShortcodeHint': __('Copy and paste this [link]shortcode[/link] on to a post or page.'),
'addFormPhpIframeHint': __('[link]PHP[/link] and [link]iFrame[/link] versions are also available.'),
'settingsListLabel': __('This form adds the subscribers to these lists'),
'settingsAfterSubmit': __('After submit'),
'settingsShowMessage': __('Show message'),
'settingsGoToPage': __('Go to Page'),
'settingsPleaseSelectList': __('Please select a list'),
'fieldsBlocksCategory': __('Fields'),
'customFieldsBlocksCategory': __('Custom Fields'),
'customFieldNumberOfLines': __('Number of lines'),
'customFieldSaveCTA': _x('Update custom field', 'Text on the save button'),
'customFieldDateType': __('Type of date'),
'customFieldDateFormat': __('Order'),
'customFieldDefaultToday': __('Preselect todays date'),
'customFieldDay': __('Day'),
'customFieldMonth': __('Month'),
'customFieldYear': __('Year'),
'customField1Line': _x('1 line', 'Number of rows in textarea'),
'customField2Lines': _x('2 lines', 'Number of rows in textarea'),
'customField3Lines': _x('3 lines', 'Number of rows in textarea'),
'customField4Lines': _x('4 lines', 'Number of rows in textarea'),
'customField5Lines': _x('5 lines', 'Number of rows in textarea'),
'customFieldValidateFor': __('Validate for'),
'customFieldValidateNothing': __('Nothing'),
'customFieldValidateNumbersOnly': __('Numbers only'),
'customFieldValidateAlphanumerical': __('Alphanumerical'),
'customFieldValidatePhoneNumber': __('Phone number, (+,-,#,(,) and spaces allowed)'),
'customFieldAddItem': __('Add item'),
'blockMandatory': __('Mandatory field'),
'blockFirstName': __('First name'),
'blockFirstNameDescription': __('Input field used to catch subscribers first names.'),
'blockLastName': __('Last name'),
'blockLastNameDescription': __('Input field used to catch subscribers last names.'),
'blockSegmentSelect': __('List selection'),
'blockLastNameDescription': __('Allow your subscribers to select which list(s) they want to subscribe to.'),
'blockSegmentSelectLabel': __('Select list(s):'),
'blockSegmentSelectNoLists': __('Please select at least one list'),
'blockSegmentSelectListLabel': __('Select the segment that you want to add'),
'blockEmail': __('Email'),
'blockEmailDescription': __('Input field used to catch subscribers email addresses.'),
'blockSubmit': __('Submit button'),
'blockSubmitDescription': __('Button used to submit the form.'),
'blockSubmitLabel': _x('Subscribe!', 'a default value for a subscription form button'),
'missingObligatoryBlock': __('Email input or submit is missing. Try reloading the form editor.'),
'label': _x('Label', 'settings for a label of an input'),
'displayLabelWithinInput': __('Display label within input'),
'displayLabel': _x('Display label', 'Settings - if label should be displayed'),
'blockDivider': __('Divider'),
'blockCustomHtml' : __('Custom text or HTML'),
'blockCustomHtmlDescription': __('Display custom text or HTML code in your form.'),
'blockCustomHtmlDefault': __('Subscribe to our newsletter and join [mailpoet_subscribers_count] other subscribers.'),
'blockCustomHtmlContentLabel': _x('Custom text', 'Textarea label'),
'blockCustomHtmlNl2br': __('Automatically add paragraphs')
}) %>
<% endblock %>
<% block after_javascript %>
<%= javascript('form_editor.js')%>
<% endblock %>