PluginProbe
The Innovative Form Builder – IvyForms / 1.5.1
The Innovative Form Builder – IvyForms v1.5.1
1.5.1 1.5 1.4.1 1.4 trunk 0.1.2 0.2 0.2.1 0.3 0.3.1 0.4 0.5 0.6 0.6.1 0.6.1-backup 0.6.1.1 0.7 0.8 0.8.1 0.8.2 0.9 0.9.1 1.0 1.1 1.1.1 All 27 releases
ivyforms / backend / src / Services / Template / CommercialRentalApplicationFormTemplate.php

CommercialRentalApplicationFormTemplate.php in The Innovative Form Builder – IvyForms 1.5.1, at backend/src/Services/Template/CommercialRentalApplicationFormTemplate.php

165 lines 6.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace IvyForms\Services\Template;
4
5 use IvyForms\Services\Translations\BackendStrings;
6
7 class CommercialRentalApplicationFormTemplate
8 {
9 /**
10 * Get template metadata (without form_data)
11 *
12 * @return array<string, mixed>
13 */
14 public static function getTemplateMeta(): array
15 {
16 return [
17 'id' => 'commercial_rental_application_form',
18 'name' => BackendStrings::getTemplateStrings()['commercial_rental_application_form'],
19 'description' => BackendStrings::getTemplateStrings()['commercial_rental_application_form_desc'],
20 'category' => 'application-forms',
21 'subcategory' => 'tenant-application-forms',
22 'is_pro' => false,
23 'screenshot' => IVYFORMS_TEMPLATES_IMAGES_URL . 'commercial-rental-application-form.svg',
24 ];
25 }
26
27 /**
28 * Get the full template including form data
29 *
30 * @return array<string, mixed>
31 */
32 public static function getTemplate(): array
33 {
34 return array_merge(
35 self::getTemplateMeta(),
36 [
37 'form_data' => [
38 'name' => BackendStrings::getTemplateStrings()['commercial_rental_application_form'],
39 'published' => 1,
40 'showTitle' => 1,
41 'storeEntries' => 1,
42 'integrationSettings' => TemplateDefaults::getDefaultIntegrationSettings(),
43 'fields' => [
44 [
45 'id' => 1,
46 'fieldIndex' => 1,
47 'type' => 'text',
48 'label' => BackendStrings::getTemplateStrings()['company_name'],
49 'placeholder' => BackendStrings::getTemplateStrings()['enter_company_name'],
50 'required' => true,
51 'parentId' => null,
52 'defaultValue' => '',
53 'position' => 1,
54 ],
55 [
56 'id' => 2,
57 'fieldIndex' => 2,
58 'type' => 'email',
59 'label' => BackendStrings::getTemplateStrings()['email_address'],
60 'placeholder' => BackendStrings::getTemplateStrings()['enter_your_email_address'],
61 'required' => true,
62 'parentId' => null,
63 'defaultValue' => '',
64 'position' => 2,
65 ],
66 [
67 'id' => 3,
68 'fieldIndex' => 3,
69 'type' => 'select',
70 'label' => BackendStrings::getTemplateStrings()['business_type'],
71 'placeholder' => BackendStrings::getTemplateStrings()['select_business_type'],
72 'required' => true,
73 'parentId' => null,
74 'defaultValue' => '',
75 'position' => 3,
76 'fieldOptions' => [
77 [
78 'id' => 4,
79 'label' => BackendStrings::getTemplateStrings()['retail_business'],
80 'value' => 'Retail',
81 'isDefault' => false,
82 'position' => 1,
83 ], [
84 'id' => 5,
85 'label' => BackendStrings::getTemplateStrings()['office_business'],
86 'value' => 'Office',
87 'isDefault' => false,
88 'position' => 2,
89 ], [
90 'id' => 6,
91 'label' => BackendStrings::getTemplateStrings()['restaurant_business'],
92 'value' => 'Restaurant',
93 'isDefault' => false,
94 'position' => 3,
95 ], [
96 'id' => 7,
97 'label' => BackendStrings::getTemplateStrings()['warehouse_business'],
98 'value' => 'Warehouse',
99 'isDefault' => false,
100 'position' => 4,
101 ], [
102 'id' => 8,
103 'label' => BackendStrings::getTemplateStrings()['other'],
104 'value' => 'Other',
105 'isDefault' => false,
106 'position' => 5,
107 ]
108 ],
109 ],
110 [
111 'id' => 9,
112 'fieldIndex' => 4,
113 'type' => 'file-upload',
114 'label' => BackendStrings::getTemplateStrings()['financial_statements'],
115 'placeholder' => BackendStrings::getCommonStrings()['file_upload_placeholder_drag_here'],
116 'required' => true,
117 'parentId' => null,
118 'defaultValue' => '',
119 'position' => 4,
120 'maxFileSizeMb' => 999,
121 'saveUploadsTo' => 'ivyforms',
122 'allowedFileExtensions' => [],
123 'allowMultiple' => false,
124 'maxUploadCount' => 0,
125 ],
126 [
127 'id' => 10,
128 'fieldIndex' => 5,
129 'type' => 'file-upload',
130 'label' => BackendStrings::getTemplateStrings()['business_registration_document'],
131 'placeholder' => BackendStrings::getCommonStrings()['file_upload_placeholder_drag_here'],
132 'required' => true,
133 'parentId' => null,
134 'defaultValue' => '',
135 'position' => 5,
136 'maxFileSizeMb' => 999,
137 'saveUploadsTo' => 'ivyforms',
138 'allowedFileExtensions' => [],
139 'allowMultiple' => false,
140 'maxUploadCount' => 0,
141 ],
142 [
143 'id' => 11,
144 'fieldIndex' => 6,
145 'type' => 'file-upload',
146 'label' => BackendStrings::getTemplateStrings()['proposal_intent_letter'],
147 'placeholder' => BackendStrings::getCommonStrings()['file_upload_placeholder_drag_here'],
148 'required' => false,
149 'parentId' => null,
150 'defaultValue' => '',
151 'position' => 6,
152 'maxFileSizeMb' => 999,
153 'saveUploadsTo' => 'ivyforms',
154 'allowedFileExtensions' => [],
155 'allowMultiple' => false,
156 'maxUploadCount' => 0,
157 ],
158 ],
159 'settings' => [],
160 ],
161 ]
162 );
163 }
164 }
165