PluginProbe
weForms – Easy Drag & Drop Contact Form Builder For WordPress / 1.5.5
weForms – Easy Drag & Drop Contact Form Builder For WordPress v1.5.5
1.6.7 1.6.8 1.6.9 1.6.12 1.6.13 1.6.14 1.6.15 1.6.16 1.6.17 1.6.18 1.6.19 1.6.2 1.6.20 1.6.21 1.6.22 1.6.23 1.6.24 1.6.25 1.6.26 1.6.27 1.6.28 1.6.3 1.6.4 1.6.5 1.6.6 All 74 releases
← All changes | assets/js-templates/form-components.php +38 -236 1.6.21 → 1.5.5 View file →
@@ -1,5 +1,5 @@
1 -<script type="text/x-template" id="tmpl-wpuf-dynamic-field">
1 +<script type="text/x-template" id="tmpl-wpuf-dynamic-field">
2 2 <div>
3 3
4 4 <div class="panel-field-opt panel-field-opt-text">
5 5 <label>
@@ -27,11 +27,11 @@
27 27 </div>
28 28 </template>
29 29
30 30 </div>
31 -</script>
32 -
33 -<script type="text/x-template" id="tmpl-wpuf-field-name">
31 +</script>
32 +
33 +<script type="text/x-template" id="tmpl-wpuf-field-name">
34 34 <div>
35 35 <div class="panel-field-opt panel-field-name clearfix">
36 36
37 37 <label>
@@ -132,11 +132,11 @@
132 132 <label><?php _e( 'Default Value', 'weforms' ); ?></label>
133 133 </div>
134 134 </div>
135 135 </div>
136 -</script>
137 -
138 -<script type="text/x-template" id="tmpl-wpuf-field-text-with-tag">
136 +</script>
137 +
138 +<script type="text/x-template" id="tmpl-wpuf-field-text-with-tag">
139 139 <div v-if="met_dependencies" class="panel-field-opt panel-field-opt-text field-text-with-tag">
140 140 <label>
141 141 {{ option_field.title }} <help-text v-if="option_field.help_text" :text="option_field.help_text"></help-text>
142 142
@@ -158,11 +158,11 @@
158 158
159 159 <wpuf-merge-tags :filter="option_field.tag_filter" v-on:insert="insertValue"></wpuf-merge-tags>
160 160 </label>
161 161 </div>
162 -</script>
163 -
164 -<script type="text/x-template" id="tmpl-wpuf-form-date_field">
162 +</script>
163 +
164 +<script type="text/x-template" id="tmpl-wpuf-form-date_field">
165 165 <div class="wpuf-fields">
166 166 <input
167 167 type="text"
168 168 :class="class_names('datepicker')"
@@ -170,11 +170,11 @@
170 170 :value="field.default"
171 171 :size="field.size"
172 172 >
173 173 <span v-if="field.help" class="wpuf-help">{{ field.help }}</span>
174 -</div></script>
175 -
176 -<script type="text/x-template" id="tmpl-wpuf-form-name_field">
174 +</div></script>
175 +
176 +<script type="text/x-template" id="tmpl-wpuf-form-name_field">
177 177 <div class="wpuf-fields">
178 178
179 179 <div :class="['wpuf-name-field-wrap', 'format-' + field.format]">
180 180 <div class="wpuf-name-field-first-name">
@@ -212,11 +212,11 @@
212 212 </div>
213 213
214 214 <span v-if="field.help" class="wpuf-help">{{ field.help }}</span>
215 215 </div>
216 -</script>
217 -
218 -<script type="text/x-template" id="tmpl-wpuf-form-notification">
216 +</script>
217 +
218 +<script type="text/x-template" id="tmpl-wpuf-form-notification">
219 219 <div>
220 220 <!-- <pre>{{ notifications.length }}</pre> -->
221 221 <a href="#" class="button button-secondary add-notification" v-on:click.prevent="addNew"><span class="dashicons dashicons-plus-alt"></span> <?php _e( 'Add Notification', 'weforms' ); ?></a>
222 222
@@ -388,11 +388,11 @@
388 388 </div><!-- .notification-edit-area -->
389 389
390 390 </div><!-- .notification-wrap -->
391 391 </div>
392 -</script>
393 -
394 -<script type="text/x-template" id="tmpl-wpuf-integration">
392 +</script>
393 +
394 +<script type="text/x-template" id="tmpl-wpuf-integration">
395 395 <div class="wpuf-integrations-wrap">
396 396
397 397 <template v-if="hasIntegrations">
398 398 <div :class="['wpuf-integration', isAvailable(integration.id) ? '' : 'collapsed']" v-for="integration in integrations">
@@ -457,11 +457,11 @@
457 457 <div v-else>
458 458 <?php _e( 'No integration found.', 'best-contact-form' ); ?>
459 459 </div>
460 460 </div>
461 -</script>
462 -
463 -<script type="text/x-template" id="tmpl-wpuf-integration-erp">
461 +</script>
462 +
463 +<script type="text/x-template" id="tmpl-wpuf-integration-erp">
464 464 <div>
465 465
466 466 <?php if ( !function_exists( 'erp_crm_get_contact_groups' ) ) { ?>
467 467
@@ -551,11 +551,11 @@
551 551 </div>
552 552 </fieldset>
553 553
554 554 <?php } ?>
555 -</div></script>
556 -
557 -<script type="text/x-template" id="tmpl-wpuf-integration-slack">
555 +</div></script>
556 +
557 +<script type="text/x-template" id="tmpl-wpuf-integration-slack">
558 558 <div>
559 559 <div class="wpuf-int-form-row">
560 560 <div class="wpuf-int-field-label">
561 561 <label for="mailchimp-list-id"><?php _e( 'Slack Webhook URL', 'weforms' ); ?></label>
@@ -564,209 +564,11 @@
564 564 <input type="url" class="regular-text" v-model="settings.url" placeholder="https://hooks.slack.com/services/...">
565 565 <p class="help"><?php printf( __( '%sSlack webhook URL%s to send our JSON payloads (%sView documentation%s)', 'weforms' ), '<a href="https://api.slack.com/incoming-webhooks" target="_blank" >', '</a>', '<a href="https://wedevs.com/docs/weforms/integrations/slack/" target="_blank" >', '</a>' ); ?></p>
566 566 </div>
567 567 </div>
568 -</div></script>
569 -
570 -<script type="text/x-template" id="tmpl-wpuf-integration-sprout-invoices">
571 -<div>
572 -
573 - <?php if (!function_exists( 'sprout_invoices_load' )) { ?>
574 -
575 - <p>
576 - <?php printf( __( '<a href="%s" target="_blank">Sprout Invoices</a> plugin is not installed. Please install the plugin first.', 'weforms' ), 'https://wordpress.org/plugins/sprout-invoices/' ); ?>
577 - </p>
578 -
579 - <?php } else { ?>
580 -
581 - <div class="wpuf-int-form-row">
582 - <div class="wpuf-int-field-label">
583 - <label for="sprout-invoices-doctype"><?php _e( 'Create New', 'weforms' ); ?></label>
584 - </div>
585 - <div class="wpuf-int-field">
586 - <select v-model="settings.doctype">
587 - <option value="estimate"><?php _e( 'Quote', 'weforms' ) ?></option>
588 - <option value="invoice"><?php _e( 'Invoice', 'weforms' ) ?></option>
589 - <option value="client"><?php _e( 'Client (only)', 'weforms' ) ?></option>
590 - </select>
591 - </div>
592 - </div>
593 -
594 -
595 - <fieldset>
596 - <legend><?php _e( 'Mapping Fields', 'weforms' ); ?></legend>
597 -
598 - <p class="description" style="padding: 0 0 10px 0;">
599 - <?php _e( 'Please map the form input fields with Sprout Invoices fields', 'weforms' ); ?>
600 - </p>
601 -
602 - <div class="wpuf-int-form-row mapping-fields">
603 - <div class="wpuf-int-field-label">
604 - <label><?php _e( 'Invoice/Quote Title', 'default' ); ?></label>
605 - </div>
606 - <div class="wpuf-int-field">
607 - <div class="wpuf-int-field-small">
608 - <input type="email" class="regular-text" v-model="settings.fields.subject">
609 - <wpuf-merge-tags v-on:insert="insertValue" field="subject"></wpuf-merge-tags>
610 - </div>
611 - </div>
612 - </div>
613 -
614 - <div class="wpuf-int-form-row mapping-fields">
615 - <div class="wpuf-int-field-label">
616 - <label><?php _e( 'Client Name', 'default' ); ?></label>
617 - </div>
618 - <div class="wpuf-int-field">
619 - <div class="wpuf-int-field-small">
620 - <input type="email" class="regular-text" v-model="settings.fields.client_name">
621 - <wpuf-merge-tags v-on:insert="insertValue" field="client_name"></wpuf-merge-tags>
622 - </div>
623 - </div>
624 - </div>
625 -
626 - <div class="wpuf-int-form-row mapping-fields">
627 - <div class="wpuf-int-field-label">
628 - <label><?php _e( 'Email Address', 'default' ); ?></label>
629 - </div>
630 - <div class="wpuf-int-field">
631 - <div class="wpuf-int-field-small">
632 - <input type="email" class="regular-text" v-model="settings.fields.email">
633 - <wpuf-merge-tags filter="email_address" v-on:insert="insertValue"
634 - field="email"></wpuf-merge-tags>
635 - </div>
636 - </div>
637 - </div>
638 -
639 - <div class="wpuf-int-form-row">
640 - <div class="wpuf-int-field-label">
641 - <label><?php _e( 'First Name', 'default' ); ?></label>
642 - </div>
643 - <div class="wpuf-int-field">
644 - <div class="wpuf-int-field-small">
645 - <input type="text" class="regular-text" v-model="settings.fields.first_name">
646 - <wpuf-merge-tags v-on:insert="insertValue" field="first_name"></wpuf-merge-tags>
647 - </div>
648 - </div>
649 - </div>
650 -
651 - <div class="wpuf-int-form-row">
652 - <div class="wpuf-int-field-label">
653 - <label><?php _e( 'Last Name', 'default' ); ?></label>
654 - </div>
655 - <div class="wpuf-int-field">
656 - <div class="wpuf-int-field-small">
657 - <input type="text" class="regular-text" v-model="settings.fields.last_name">
658 - <wpuf-merge-tags v-on:insert="insertValue" field="last_name"></wpuf-merge-tags>
659 - </div>
660 - </div>
661 - </div>
662 -
663 - <?php if (class_exists( 'WeForms_Pro' )) : ?>
664 -
665 - <div class="wpuf-int-form-row">
666 - <div class="wpuf-int-field-label">
667 - <label><?php _e( 'Address', 'default' ); ?></label>
668 - </div>
669 - <div class="wpuf-int-field">
670 - <div class="wpuf-int-field-small">
671 - <input type="text" class="regular-text" v-model="settings.fields.address">
672 - <wpuf-merge-tags v-on:insert="insertValue" field="address"></wpuf-merge-tags>
673 - </div>
674 - </div>
675 - </div>
676 -
677 - <?php endif ?>
678 -
679 - <div class="wpuf-int-form-row">
680 - <div class="wpuf-int-field-label">
681 - <label><?php _e( 'Notes', 'default' ); ?></label>
682 - </div>
683 - <div class="wpuf-int-field">
684 - <div class="wpuf-int-field-small">
685 - <input type="text" class="regular-text" v-model="settings.fields.notes">
686 - <wpuf-merge-tags v-on:insert="insertValue" field="notes"></wpuf-merge-tags>
687 - </div>
688 - </div>
689 - </div>
690 -
691 - <div class="wpuf-int-form-row">
692 - <div class="wpuf-int-field-label">
693 - <label><?php _e( 'Due Date', 'default' ); ?></label>
694 - </div>
695 - <div class="wpuf-int-field">
696 - <div class="wpuf-int-field-small">
697 - <input type="text" class="regular-text" v-model="settings.fields.duedate">
698 - <wpuf-merge-tags filter="date_field" v-on:insert="insertValue"
699 - field="duedate"></wpuf-merge-tags>
700 - </div>
701 - </div>
702 - </div>
703 -
704 - <div class="wpuf-int-form-row">
705 - <div class="wpuf-int-field-label">
706 - <label><?php _e( 'Quote/Invoice #', 'default' ); ?></label>
707 - </div>
708 - <div class="wpuf-int-field">
709 - <div class="wpuf-int-field-small">
710 - <input type="text" class="regular-text" v-model="settings.fields.number">
711 - <wpuf-merge-tags v-on:insert="insertValue" field="number"></wpuf-merge-tags>
712 - </div>
713 - </div>
714 - </div>
715 -
716 -
717 - <div class="wpuf-int-form-row">
718 - <div class="wpuf-int-field-label">
719 - <label><?php _e( 'VAT Number', 'default' ); ?></label>
720 - </div>
721 - <div class="wpuf-int-field">
722 - <div class="wpuf-int-field-small">
723 - <input type="text" class="regular-text" v-model="settings.fields.vat">
724 - <wpuf-merge-tags v-on:insert="insertValue" field="vat"></wpuf-merge-tags>
725 - </div>
726 - </div>
727 - </div>
728 -
729 - <div class="wpuf-int-form-row">
730 - <div class="wpuf-int-field-label">
731 - <label><?php _e( 'Line Items', 'default' ); ?></label>
732 - </div>
733 - <div class="wpuf-int-field">
734 - <div class="wpuf-int-field-small">
735 - <input type="text" class="regular-text" v-model="settings.fields.line_items">
736 - <wpuf-merge-tags v-on:insert="insertValue"
737 - field="line_items"></wpuf-merge-tags>
738 - </div>
739 - </div>
740 - </div>
741 -
742 - </fieldset>
743 -
744 - <div class="wpuf-int-form-row">
745 - <div class="wpuf-int-field">
746 - <label for="create-client-and-user" class="weforms-switch">
747 - <input type="checkbox" id="create-client-and-user" v-model="settings.create_user_and_client">
748 - <span class="switch-slider round"></span>
749 - <?php _e( 'Create Client and User', 'default' ); ?>
750 - </label>
751 - </div>
752 - </div>
753 -
754 - <div class="wpuf-int-form-row">
755 - <div class="wpuf-int-field">
756 - <label for="redirect" class="weforms-switch">
757 - <input type="checkbox" id="redirect" v-model="settings.redirect">
758 - <span class="switch-slider round"></span>
759 - <?php _e( 'Redirect to Quote/Invoice after Submission', 'default' ); ?>
760 - </label>
761 - </div>
762 - </div>
763 -
764 - <?php } ?>
765 -</div>
766 -</script>
767 -
768 -<script type="text/x-template" id="tmpl-wpuf-merge-tags">
568 +</div></script>
569 +
570 +<script type="text/x-template" id="tmpl-wpuf-merge-tags">
769 571 <div class="wpuf-merge-tag-wrap">
770 572 <a href="#" v-on:click.prevent="toggleFields($event)" class="merge-tag-link" title="<?php echo esc_attr( 'Click to toggle merge tags', 'wpuf' ); ?>"><span class="dashicons dashicons-editor-code"></span></a>
771 573
772 574 <!-- <pre>{{ form_fields.length }}</pre> -->
@@ -833,11 +635,11 @@
833 635 ?>
834 636 </template>
835 637 </div><!-- .merge-tags -->
836 638 </div>
837 -</script>
838 -
839 -<script type="text/x-template" id="tmpl-wpuf-modal">
639 +</script>
640 +
641 +<script type="text/x-template" id="tmpl-wpuf-modal">
840 642 <div>
841 643 <div :class="['wpuf-form-template-modal', show ? 'show' : 'hide' ]">
842 644
843 645 <span class="screen-reader-text"><?php _e( 'Modal window. Press escape to close.', 'wpuf' ); ?></span>
@@ -858,11 +660,11 @@
858 660 </footer>
859 661 </div>
860 662 <div :class="['wpuf-form-template-modal-backdrop', show ? 'show' : 'hide' ]"></div>
861 663 </div>
862 -</script>
863 -
864 -<script type="text/x-template" id="tmpl-wpuf-template-modal">
664 +</script>
665 +
666 +<script type="text/x-template" id="tmpl-wpuf-template-modal">
865 667 <div class="wefroms-form-templates">
866 668 <wpuf-modal :show.sync="show" :onClose="onClose">
867 669 <h2 slot="header">
868 670 <?php _e( 'Select a Template', 'weforms' ); ?>
@@ -973,11 +775,11 @@
973 775 }
974 776 ?>
975 777 </div>
976 778 </wpuf-modal>
977 -</div></script>
978 -
979 -<script type="text/x-template" id="tmpl-wpuf-weforms-text-editor">
779 +</div></script>
780 +
781 +<script type="text/x-template" id="tmpl-wpuf-weforms-text-editor">
980 782 <div>
981 783 <textarea :value="value" :id="'wefroms-tinymce-' + editorId" rows="5"></textarea>
982 784 </div>
983 -</script>
785 +</script>