PluginProbe
Fluent Booking – The Ultimate Appointments Scheduling, Events Booking, Events Calendar Solution / 2.5.0
Fluent Booking – The Ultimate Appointments Scheduling, Events Booking, Events Calendar Solution v2.5.0
2.5.0 2.4.0 2.3.0 2.2.5 2.2.0 2.1.2 2.1.1 trunk 1.10.0 1.10.01 1.10.02 1.5.0 1.5.01 1.5.02 1.5.1 1.5.10 1.5.20 1.5.21 1.5.22 1.5.23 1.5.24 1.5.25 1.6.0 1.7.0 1.7.1 All 34 releases
← All changes | app/Services/Integrations/FluentCRM/Bootstrap.php +23 -15 2.1.1 → 2.5.0 View file →
@@ -99,8 +99,10 @@
99 99 unset($fieldOptions['prefix']);
100 100 unset($fieldOptions['full_name']);
101 101 unset($fieldOptions['company_id']);
102 102
103 + $canCreateTaxonomy = \FluentCrm\App\Services\PermissionManager::currentUserCan('fcrm_manage_contact_cats');
104 +
103 105 $fields = [
104 106 [
105 107 'key' => 'name',
106 108 'label' => __('Feed Name', 'fluent-booking'),
@@ -143,25 +145,31 @@
143 145 'field_label_local' => __('Form Field', 'fluent-booking'),
144 146 'options' => $fieldOptions,
145 147 ],
146 148 [
147 - 'key' => 'list_ids',
148 - 'label' => __('FluentCRM Lists', 'fluent-booking'),
149 - 'placeholder' => __('Select FluentCRM Lists', 'fluent-booking'),
150 - 'tips' => __('Select the FluentCRM Lists you would like to add your contacts to.', 'fluent-booking'),
151 - 'component' => 'select',
152 - 'is_multiple' => true,
153 - 'required' => false,
154 - 'options' => $this->getLists(),
149 + 'key' => 'list_ids',
150 + 'label' => __('FluentCRM Lists', 'fluent-booking'),
151 + 'placeholder' => __('Select FluentCRM Lists', 'fluent-booking'),
152 + 'tips' => __('Select the FluentCRM Lists you would like to add your contacts to.', 'fluent-booking'),
153 + 'component' => 'select',
154 + 'is_multiple' => true,
155 + 'required' => false,
156 + 'options' => $this->getLists(),
157 + 'creatable' => $canCreateTaxonomy,
158 + 'taxonomy' => 'lists',
159 + 'create_placeholder' => __('New list name', 'fluent-booking'),
155 160 ],
156 161 [
157 - 'key' => 'tag_ids',
158 - 'require_list' => false,
159 - 'label' => __('Contact Tags', 'fluent-booking'),
160 - 'placeholder' => __('Select Tags', 'fluent-booking'),
161 - 'component' => 'select',
162 - 'is_multiple' => true,
163 - 'options' => $this->getTags(),
162 + 'key' => 'tag_ids',
163 + 'require_list' => false,
164 + 'label' => __('Contact Tags', 'fluent-booking'),
165 + 'placeholder' => __('Select Tags', 'fluent-booking'),
166 + 'component' => 'select',
167 + 'is_multiple' => true,
168 + 'options' => $this->getTags(),
169 + 'creatable' => $canCreateTaxonomy,
170 + 'taxonomy' => 'tags',
171 + 'create_placeholder' => __('New tag name', 'fluent-booking'),
164 172 ],
165 173 [
166 174 'key' => 'skip_if_exists',
167 175 'require_list' => false,