| 1 |
<% extends 'layout.html' %> |
| 2 |
|
| 3 |
<% block content %> |
| 4 |
<div id="forms_container"></div> |
| 5 |
|
| 6 |
<div> |
| 7 |
<p class="mailpoet_sending_methods_help help"> |
| 8 |
<% set allowedHtml = {'a': {'href': [], 'target': [], 'id': []}, 'strong': {}} %> |
| 9 |
<%= __('<strong>Tip:</strong> check out [link]this list[/link] of form plugins that integrate with MailPoet.') |
| 10 |
|replaceLinkTags('https://kb.mailpoet.com/article/198-list-of-forms-plugins-that-work-with-mailpoet?utm_source=plugin&utm_medium=settings&utm_campaign=helpdocs', {'target': '_blank', id: 'mailpoet_helper_link'}) |
| 11 |
|wpKses(allowedHtml) |
| 12 |
%> |
| 13 |
</p> |
| 14 |
</div> |
| 15 |
|
| 16 |
<script type="text/javascript"> |
| 17 |
var mailpoet_listing_per_page = <%= items_per_page %>; |
| 18 |
var mailpoet_segments = <%= json_encode(segments) %>; |
| 19 |
var mailpoet_form_template_selection_url = |
| 20 |
"<%= admin_url('admin.php?page=mailpoet-form-editor-template-selection') %>"; |
| 21 |
var mailpoet_form_edit_url = |
| 22 |
"<%= admin_url('admin.php?page=mailpoet-form-editor&id=') %>"; |
| 23 |
|
| 24 |
var mailpoet_display_nps_poll = <%= json_encode(display_nps_survey) %>; |
| 25 |
|
| 26 |
<%if display_nps_survey %> |
| 27 |
var mailpoet_display_nps_form = true; |
| 28 |
var mailpoet_current_wp_user = <%= json_encode(current_wp_user) %>; |
| 29 |
var mailpoet_current_wp_user_firstname = '<%= current_wp_user_firstname %>'; |
| 30 |
var mailpoet_review_request_illustration_url = '<%= cdn_url('review-request/review-request-illustration.20190815-1427.svg') %>'; |
| 31 |
<%endif%> |
| 32 |
</script> |
| 33 |
|
| 34 |
<%= localize({ |
| 35 |
'pageTitle': __('Forms'), |
| 36 |
'searchLabel': __('Search'), |
| 37 |
'loadingItems': __('Loading forms...'), |
| 38 |
'noItemsFound': __('No forms were found. Why not create a new one?'), |
| 39 |
'permanentlyDeleted': __('%d forms permanently deleted.'), |
| 40 |
'selectBulkAction': __('Select bulk action'), |
| 41 |
'bulkActions': __('Bulk Actions'), |
| 42 |
'apply': __('Apply'), |
| 43 |
'filter': __('Filter'), |
| 44 |
'emptyTrash': __('Empty Trash'), |
| 45 |
'selectAll': __('Select All'), |
| 46 |
'restore': __('Restore'), |
| 47 |
'deletePermanently': __('Delete Permanently'), |
| 48 |
|
| 49 |
'status': __('Status'), |
| 50 |
'active': __('Active'), |
| 51 |
'inactive': __('Not Active'), |
| 52 |
'formActivated': __('Your Form is now activated!'), |
| 53 |
|
| 54 |
'previousPage': __('Previous page'), |
| 55 |
'firstPage': __('First page'), |
| 56 |
'nextPage': __('Next page'), |
| 57 |
'lastPage': __('Last page'), |
| 58 |
'currentPage': __('Current Page'), |
| 59 |
'pageOutOf': __('of'), |
| 60 |
'numberOfItemsSingular': __('1 item'), |
| 61 |
'numberOfItemsMultiple': __('%1$d items'), |
| 62 |
|
| 63 |
'formName': __('Name'), |
| 64 |
'noName': _x('no name', 'fallback for forms without a name in a form list'), |
| 65 |
'segments': __('Lists'), |
| 66 |
'type': __('Type'), |
| 67 |
'userChoice': __('User choice:'), |
| 68 |
'signups': __('Sign-ups'), |
| 69 |
'updatedAt': __('Modified date'), |
| 70 |
'oneFormTrashed': __('1 form was moved to the trash.'), |
| 71 |
'multipleFormsTrashed': __('%1$d forms were moved to the trash.'), |
| 72 |
'oneFormDeleted': __('1 form was permanently deleted.'), |
| 73 |
'multipleFormsDeleted': __('%1$d forms were permanently deleted.'), |
| 74 |
'oneFormRestored': __('1 form has been restored from the trash.'), |
| 75 |
'multipleFormsRestored': __('%1$d forms have been restored from the trash.'), |
| 76 |
'edit': __('Edit'), |
| 77 |
'duplicate': __('Duplicate'), |
| 78 |
'formDuplicated': __('Form "%1$s" has been duplicated.'), |
| 79 |
'trash': __('Trash'), |
| 80 |
'moveToTrash': __('Move to trash'), |
| 81 |
'new': __('New Form'), |
| 82 |
'placeFormBellowPages': _x('Below pages', 'This is a text on a widget that leads to settings for form placement'), |
| 83 |
'placeFixedBarFormOnPages': _x('Fixed bar', 'This is a text on a widget that leads to settings for form placement - form type is fixed bar'), |
| 84 |
'placeSlideInFormOnPages': _x('Slide–in', 'This is a text on a widget that leads to settings for form placement - form type is slide in'), |
| 85 |
'placePopupFormOnPages': _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'), |
| 86 |
'placeFormOthers': _x('Others (widget)', 'Placement of the form using theme widget'), |
| 87 |
'formSettingsCorrupted': __('Form settings of "%1$s" form are corrupted. Please [link]reconfigure the form in the editor[/link].'), |
| 88 |
}) %> |
| 89 |
<% endblock %> |
| 90 |
|
| 91 |
<% block after_javascript %> |
| 92 |
<script type="text/javascript"> |
| 93 |
jQuery('#mailpoet_helper_link').on('click', function() { |
| 94 |
MailPoet.trackEvent('Forms page > link to doc page'); |
| 95 |
}); |
| 96 |
</script> |
| 97 |
<% endblock %> |
| 98 |
|