Files
piratepoet/views/form/widget.html
Jonathan Labreuille cabe2d61b7 Form editor update
- when a custom field is updated, the matching form field is now also updated
- ability to toggle "is_required" on First name & Last name
- fixed position of validation errors on segment selection, checkbox and radio
- fixed form subscription not working when using custom fields
- fixed sortable in segment selection after list update (add/remove)
- updated position of messages in form subscription
2016-01-18 17:23:10 +01:00

32 lines
893 B
HTML

<% block content %>
<%= before_widget | raw %>
<% if(title) %>
<h2 class="widget-title"><%= title | raw %></h2>
<% endif %>
<div class="mailpoet_form mailpoet_form_<%= form_type %>">
<%= styles | raw %>
<form
id="<%= form_id %>"
method="post"
<#
action="<%= admin_url('admin-post.php?action=mailpoet_form_subscribe') | raw %>"
#>
class="mailpoet_form mailpoet_form_<%= form_type %>"
novalidate
>
<input type="hidden" name="form_id" value="<%= form.id %>" />
<% if not(form.settings.segments_selected_by == 'user') %>
<% for segment in form.settings.segments %>
<input type="hidden" name="segments[]" value="<%= segment %>" />
<% endfor %>
<% endif %>
<%= html | raw %>
<div class="mailpoet_message"></div>
</form>
</div>
<%= after_widget | raw %>
<% endblock %>