PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / trunk
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More vtrunk
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
formidable / classes / views / form-templates / modals / create-template-modal.php

create-template-modal.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More trunk, at classes/views/form-templates/modals/create-template-modal.php

73 lines 2.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Form Templates - Create new template modal.
4 *
5 * @package Formidable
6 */
7
8 if ( ! defined( 'ABSPATH' ) ) {
9 die( 'You are not allowed to call this page directly.' );
10 }
11 ?>
12 <div id="frm-create-template-modal" class="frm_wrap frm-form-templates-modal-item frm_hidden">
13 <div class="frm_modal_top">
14 <div class="frm-modal-title">
15 <h2><?php esc_html_e( 'Create New Template', 'formidable' ); ?></h2>
16 </div>
17 </div>
18
19 <div class="inside frm_grid_container frm-fields frm-px-md frm-py-0 frm-mt-sm frm-m-0">
20 <div class="frm_form_field">
21 <label for="frm-create-template-modal-forms-select">
22 <?php esc_html_e( 'Select form for a new template', 'formidable' ); ?>
23 </label>
24
25 <select name="frm-create-template-modal-forms-select" id="frm-create-template-modal-forms-select">
26 <option value=""> </option>
27
28 <?php if ( empty( $published_forms ) ) { ?>
29 <option value="no-forms" disabled>
30 <?php esc_html_e( 'You have not created any forms yet.', 'formidable' ); ?>
31 </option>
32 <?php
33 }
34
35 foreach ( $published_forms as $form ) {
36 if ( is_null( $form->description ) ) {
37 $form_description = '';
38 } else {
39 $form_description = FrmAppHelper::kses( $form->description, array( 'a', 'i', 'span', 'use', 'svg' ) );
40 }
41 ?>
42 <option value="<?php echo esc_attr( $form->id ); ?>" data-name="<?php echo esc_attr( $form->name ); ?>" data-description="<?php echo esc_attr( $form_description ); ?>">
43 <?php echo esc_html( FrmFormsHelper::edit_form_link_label( $form ) ); ?>
44 </option>
45 <?php } ?>
46 </select>
47 </div>
48
49 <div class="frm_form_field">
50 <label for="frm_create_template_name">
51 <?php esc_html_e( 'Template name', 'formidable' ); ?>
52 </label>
53 <input type="text" name="frm_create_template_name" id="frm_create_template_name" disabled />
54 </div>
55
56 <div class="frm_form_field">
57 <label for="frm_create_template_description">
58 <?php esc_html_e( 'Description', 'formidable' ); ?>
59 </label>
60 <textarea name="frm_create_template_description" id="frm_create_template_description" class="frm-rounded-sm" disabled></textarea>
61 </div>
62 </div>
63
64 <div class="frm_modal_footer frm-flex-box frm-justify-between frm-pt-sm frm-pb-md">
65 <a href="#" class="button button-secondary frm-button-secondary frm-modal-close dismiss" role="button">
66 <?php esc_html_e( 'Cancel', 'formidable' ); ?>
67 </a>
68 <a id="frm-create-template-button" href="#" class="button button-primary frm-button-primary disabled" role="button">
69 <?php esc_html_e( 'Create Template', 'formidable' ); ?>
70 </a>
71 </div>
72 </div>
73