PluginProbe
weForms – Easy Drag & Drop Contact Form Builder For WordPress / 1.6.1
weForms – Easy Drag & Drop Contact Form Builder For WordPress v1.6.1
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
weforms / includes / templates / class-template-loan-application-form.php

class-template-loan-application-form.php in weForms – Easy Drag & Drop Contact Form Builder For WordPress 1.6.1, at includes/templates/class-template-loan-application-form.php

154 lines 6.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Blank form template
5 */
6 class WeForms_Template_Loan_Application_Form extends WeForms_Form_Template {
7
8 public function __construct() {
9 parent::__construct();
10
11 $this->enabled = class_exists( 'WeForms_Pro' );
12 $this->title = __( 'Loan Application Form', 'weforms' );
13 $this->description = __( 'Use this load application to quickly process loan applications much smoother!', 'weforms' );
14 $this->image = WEFORMS_ASSET_URI . '/images/form-template/loan-application.png';
15 $this->category = 'application';
16 }
17
18 /**
19 * Get the form fields
20 *
21 * @return array
22 */
23 public function get_form_fields() {
24 $all_fields = $this->get_available_fields();
25
26 $form_fields = [
27 array_merge( $all_fields['dropdown_field']->get_field_props(), [
28 'label' => __( 'Title', 'weforms' ),
29 'name' => 'title',
30 'options' => [
31 'mr' => __( 'Ms', 'weforms' ),
32 'mrs' => __( 'Mrs', 'weforms' ),
33 'mrs' => __( 'Mr', 'weforms' ),
34 ],
35 'first' => ' ',
36 ] ),
37
38 array_merge( $all_fields['name_field']->get_field_props(), [
39 'required' => 'yes',
40 'format' => 'first-last',
41
42 'first_name' => [
43 'placeholder' => '',
44 'default' => '',
45 'sub' => __( 'First Name', 'weforms' ),
46 ],
47 'last_name' => [
48 'placeholder' => '',
49 'default' => '',
50 'sub' => __( 'Last Name', 'weforms' ),
51 ],
52 'hide_subs' => false,
53 'name' => 'format',
54 ] ),
55
56 array_merge( $all_fields['date_field']->get_field_props(), [
57 'label' => __( 'Birth Date', 'weforms' ),
58 'name' => 'birth_date',
59 ] ),
60
61 array_merge( $all_fields['radio_field']->get_field_props(), [
62 'label' => __( 'Marital Status', 'weforms' ),
63 'name' => 'marital_status',
64 'options' => [
65 'single' => __( 'Single', 'weforms' ),
66 'married' => __( 'Married', 'weforms' ),
67 'other' => __( 'Other', 'weforms' ),
68 ],
69 ] ),
70
71 array_merge( $all_fields['email_address']->get_field_props(), [
72 'required' => 'yes',
73 'label' => __( 'Email Address', 'weforms' ),
74 'name' => 'email',
75 ] ),
76
77 array_merge( $all_fields['numeric_text_field']->get_field_props(), [
78 'required' => 'yes',
79 'label' => __( 'Phone', 'weforms' ),
80 'name' => 'phone',
81 ] ),
82
83 array_merge( $all_fields['address_field']->get_field_props(), [
84 'required' => 'yes',
85 'label' => __( 'Address', 'weforms' ),
86 'name' => 'address',
87 ] ),
88
89 array_merge( $all_fields['radio_field']->get_field_props(), [
90 'required' => 'yes',
91 'label' => __( 'How long have you lived in your given?', 'weforms' ),
92 'name' => 'duration',
93 'options' => [
94 'one' => __( '0-1 Year', 'weforms' ),
95 'two' => __( '1-2 Year', 'weforms' ),
96 'trhee' => __( '3-4 Year', 'weforms' ),
97 'four' => __( '5+ Year', 'weforms' ),
98 ],
99 ] ),
100
101 array_merge( $all_fields['text_field']->get_field_props(), [
102 'required' => 'yes',
103 'label' => __( 'Gross Monthly Income', 'weforms' ),
104 'name' => 'gross_monthly',
105 ] ),
106
107 array_merge( $all_fields['text_field']->get_field_props(), [
108 'required' => 'yes',
109 'label' => __( 'Monthly rent/mortgage', 'weforms' ),
110 'name' => 'monthly_rently',
111 ] ),
112
113 array_merge( $all_fields['text_field']->get_field_props(), [
114 'required' => 'yes',
115 'label' => __( 'Down Payment Amount', 'weforms' ),
116 'name' => 'payment_amount',
117 ] ),
118
119 array_merge( $all_fields['textarea_field']->get_field_props(), [
120 'label' => __( 'Comments', 'weforms' ),
121 'name' => 'comment',
122 ] ),
123
124 array_merge( $all_fields['custom_html']->get_field_props(), [
125 'html' => sprintf( '<p>%s</p>', __( 'I authorize prospective Credit Grantors/Lending/Leasing Companies to obtain personal and credit information about me from my employer and credit bureau, or credit reporting agency, any person who has or may have any financial dealing with me, or from any references I have provided. This information, as well as that provided by me in the application, will be referred to in connection with this lease and any other relationships we may establish from time to time. Any personal and credit information obtained may be disclosed from time to time to other lenders, credit bureaus or other credit reporting agencies', 'weforms' ) ),
126 ] ),
127
128 array_merge( $all_fields['checkbox_field']->get_field_props(), [
129 'required' => 'yes',
130 'label' => ' ',
131 'name' => 'agrrement',
132 'options' => [
133 'yes' => __( 'Yes', 'weforms' ),
134 ],
135 ] ),
136
137 array_merge( $all_fields['custom_html']->get_field_props(), [
138 'html' => sprintf( '<p>%s</p>', __( 'I hereby agree that the information given is true, accurate and complete as of the date of this application submission. ', 'weforms' ) ),
139 ] ),
140
141 array_merge( $all_fields['checkbox_field']->get_field_props(), [
142 'required' => 'yes',
143 'label' => ' ',
144 'name' => 'agrrement_2',
145 'options' => [
146 'yes' => __( 'Yes', 'weforms' ),
147 ],
148 ] ),
149 ];
150
151 return $form_fields;
152 }
153 }
154