Files
piratepoet/views/form/templates/toolbar/fields.hbs
Jonathan Labreuille b12f7f29de Custom fields
- added listing of custom fields in form editor
- ability to delete a custom field
- mades changes to the form editor in order to accomodate for the new custom fields system
- fix form editor bugs
- cleanup
2015-11-06 16:09:09 +01:00

27 lines
788 B
Handlebars

{{#each fields}}
<li>
<a class="mailpoet_form_field"
wysija_name="{{ name }}"
{{#if id }}wysija_id="{{ id }}"{{/if}}
wysija_unique="{{#if multiple}}0{{else}}1{{/if}}"
wysija_type="{{ type }}"
{{#if params}}wysija_params="{{ json_encode params }}"{{/if}}>
{{ name }}
</a>
{{#unless readonly}}
<a class="mailpoet_form_field_edit settings"
title="<%= __('Edit field') %>"
href="javascript:;"
data-id="{{ id }}">
<span class="dashicons dashicons-admin-generic"></span>
</a>
<a class="mailpoet_form_field_delete delete"
title="<%= __('Delete field') %>"
href="javascript:;"
data-id="{{ id }}">
<span class="dashicons dashicons-dismiss"></span>
</a>
{{/unless}}
</li>
{{/each}}