diff --git a/config.json b/config.json index 6ceba82..f489b91 100644 --- a/config.json +++ b/config.json @@ -1,7 +1,8 @@ { - "version": "2.1.2", + "version": "3.0.0", "name": "ExtensionGeneratorPlugin.name", "description": "ExtensionGeneratorPlugin.description", + "icon": "bi bi-puzzle-fill", "authors": [ { "name": "Phillips Data, Inc.", diff --git a/views/default/admin_main.pdt b/views/default/admin_main.pdt index fc4cfee..68b66fd 100644 --- a/views/default/admin_main.pdt +++ b/views/default/admin_main.pdt @@ -1,78 +1,136 @@ - - $this->Widget->clear(); - $this->Widget->create($this->_('AdminMain.index.boxtitle_extensions', true), ['id'=>'admin_main'], (isset($render_section) ? $render_section : null)); - ?> -
| + + _('AdminMain.index.heading_id'); ?> + + | ++ + _('AdminMain.index.heading_name'); ?> + + | ++ + _('AdminMain.index.heading_type'); ?> + + | ++ + _('AdminMain.index.heading_form_type'); ?> + + | ++ + _('AdminMain.index.heading_code_examples'); ?> + + | ++ + _('AdminMain.index.heading_date_updated'); ?> + + | +_('AdminMain.index.heading_options'); ?> | +
|---|---|---|---|---|---|---|
| Html->safe($extension->id ?? ''); ?> | +Html->safe($extension->name ?? ''); ?> | +Html->safe($types[$extension->type] ?? ''); ?> | +Html->safe($form_types[$extension->form_type] ?? ''); ?> | ++ code_examples ?? null) == 1) : ?> + + + + + | +Date->cast($extension->date_updated ?? null, 'date_time'); ?> |
- _('AdminMain.index.option_edit');?>,
- Form->create($this->base_uri . 'plugin/extension_generator/admin_main/delete/');
- $this->Form->fieldHidden('id', (isset($extension->id) ? $extension->id : null));
- ?>
- _('AdminMain.index.option_delete');?>
- Form->end();
- ?>
+
+
+
+
+ Form->create($this->base_uri . 'plugin/extension_generator/admin_main/delete/', ['class' => 'd-inline']);
+ $this->Form->fieldHidden('id', $extension->id ?? null);
+ ?>
+
+ Form->end(); ?>
+
|
_('AdminMain.index.extensions_no_results'); ?>
+_('AdminMain.confirm.text_generation');?>
-_('AdminMain.confirm.text_generation'); ?>
+ +| _('AdminMerchant.basic.author_name');?> | -_('AdminMerchant.basic.author_url');?> | -_('AdminMerchant.basic.text_options');?> | -
| Form->fieldText('authors[name][]', (isset($vars['authors']['name'][$i]) ? $vars['authors']['name'][$i] : null), ['class' => 'stretch', 'placeholder' => $this->_('AdminMerchant.basic.placeholder_author_name', true)]);?> | -Form->fieldText('authors[url][]', (isset($vars['authors']['url'][$i]) ? $vars['authors']['url'][$i] : null), ['class' => 'stretch', 'placeholder' => $this->_('AdminMerchant.basic.placeholder_author_url', true)]);?> | -_('AdminMerchant.basic.text_remove');?> | -
| _('AdminMerchant.fields.name');?>_('AppController.tooltip.text');?> _('AdminMerchant.fields.tooltip_name');?> |
- _('AdminMerchant.fields.label');?>_('AppController.tooltip.text');?> _('AdminMerchant.fields.tooltip_label');?> |
- _('AdminMerchant.fields.type');?>_('AppController.tooltip.text');?> _('AdminMerchant.fields.tooltip_type');?> |
- _('AdminMerchant.fields.tooltip');?>_('AppController.tooltip.text');?> _('AdminMerchant.fields.tooltip_tooltip');?> |
- _('AdminMerchant.fields.encryptable');?>_('AppController.tooltip.text');?> _('AdminMerchant.fields.tooltip_encryptable');?> |
- _('AdminMerchant.fields.text_options');?> | -
| Form->fieldText('fields[name][]', (isset($vars['fields']['name'][$i]) ? $vars['fields']['name'][$i] : null), array_merge(['class' => 'stretch', 'placeholder' => $this->_('AdminMerchant.fields.placeholder_name', true)], $disabled));?> | -Form->fieldText('fields[label][]', (isset($vars['fields']['label'][$i]) ? $vars['fields']['label'][$i] : null), array_merge(['class' => 'stretch', 'placeholder' => $this->_('AdminMerchant.fields.placeholder_label', true)], $disabled));?> | -Form->fieldSelect('fields[type][]', (isset($field_types) ? $field_types : null), (isset($vars['fields']['type'][$i]) ? $vars['fields']['type'][$i] : null), array_merge(['class' => 'stretch'], $disabled));?> | -Form->fieldTextarea('fields[tooltip][]', (isset($vars['fields']['tooltip'][$i]) ? $vars['fields']['tooltip'][$i] : null), array_merge(['class' => 'stretch'], $disabled));?> | -- Form->fieldHidden('fields[encryptable][]', (isset($vars['fields']['encryptable'][$i]) ? $vars['fields']['encryptable'][$i] : 'false'), array_merge(['class' => 'encryptable'], $disabled));?> - Form->fieldCheckbox('', 'true', (isset($vars['fields']['encryptable'][$i]) ? $vars['fields']['encryptable'][$i] : null) == 'true', array_merge(['class' => 'stretch encryptable_checkbox'], $disabled));?> - | -_('AdminMerchant.fields.text_remove');?> | -
| _('AdminModule.basic.author_name');?> | -_('AdminModule.basic.author_url');?> | -_('AdminModule.basic.text_options');?> | -
| Form->fieldText('authors[name][]', (isset($vars['authors']['name'][$i]) ? $vars['authors']['name'][$i] : null), ['class' => 'stretch', 'placeholder' => $this->_('AdminModule.basic.placeholder_author_name', true)]);?> | -Form->fieldText('authors[url][]', (isset($vars['authors']['url'][$i]) ? $vars['authors']['url'][$i] : null), ['class' => 'stretch', 'placeholder' => $this->_('AdminModule.basic.placeholder_author_url', true)]);?> | -_('AdminModule.basic.text_remove');?> | -
| _('AdminModule.features.method_name');?>_('AppController.tooltip.text');?> _('AdminModule.features.tooltip_method_name');?> |
- _('AdminModule.features.label');?>_('AppController.tooltip.text');?> _('AdminModule.features.tooltip_tab_label');?> |
- _('AdminModule.features.level');?>_('AppController.tooltip.text');?> _('AdminModule.features.tooltip_level');?> |
- _('AdminModule.features.text_options');?> | -
| Form->fieldText('service_tabs[method_name][]', (isset($vars['service_tabs']['method_name'][$i]) ? $vars['service_tabs']['method_name'][$i] : null), array_merge(['class' => 'stretch', 'placeholder' => $this->_('AdminModule.features.placeholder_method_name', true)], $disabled));?> | -Form->fieldText('service_tabs[label][]', (isset($vars['service_tabs']['label'][$i]) ? $vars['service_tabs']['label'][$i] : null), array_merge(['class' => 'stretch', 'placeholder' => $this->_('AdminModule.features.placeholder_tab_label', true)], $disabled));?> | -Form->fieldSelect('service_tabs[level][]', (isset($tab_levels) ? $tab_levels : null), (isset($vars['service_tabs']['level'][$i]) ? $vars['service_tabs']['level'][$i] : null), array_merge(['class' => 'stretch'], $disabled));?> | -_('AdminModule.features.text_remove');?> | -
| _('AdminModule.features.name');?>_('AppController.tooltip.text');?> _('AdminModule.features.tooltip_name');?> |
- _('AdminModule.features.label');?>_('AppController.tooltip.text');?> _('AdminModule.features.tooltip_cron_label');?> |
- _('AdminModule.features.description');?>_('AppController.tooltip.text');?> _('AdminModule.features.tooltip_description');?> |
- _('AdminModule.features.type');?>_('AppController.tooltip.text');?> _('AdminModule.features.tooltip_type');?> |
- _('AdminModule.features.time');?>_('AppController.tooltip.text');?> _('AdminModule.features.tooltip_time');?> |
- _('AdminModule.features.text_options');?> | -
| Form->fieldText('cron_tasks[name][]', (isset($vars['cron_tasks']['name'][$i]) ? $vars['cron_tasks']['name'][$i] : null), array_merge(['class' => 'stretch', 'placeholder' => $this->_('AdminModule.features.placeholder_name', true)], $disabled));?> | -Form->fieldText('cron_tasks[label][]', (isset($vars['cron_tasks']['label'][$i]) ? $vars['cron_tasks']['label'][$i] : null), array_merge(['class' => 'stretch', 'placeholder' => $this->_('AdminModule.features.placeholder_cron_label', true)], $disabled));?> | -Form->fieldTextarea('cron_tasks[description][]', (isset($vars['cron_tasks']['description'][$i]) ? $vars['cron_tasks']['description'][$i] : null), array_merge(['class' => 'stretch'], $disabled));?> | -Form->fieldSelect('cron_tasks[type][]', (isset($task_types) ? $task_types : null), (isset($vars['cron_tasks']['type'][$i]) ? $vars['cron_tasks']['type'][$i] : null), array_merge(['class' => 'stretch'], $disabled));?> | -Form->fieldText('cron_tasks[time][]', (isset($vars['cron_tasks']['time'][$i]) ? $vars['cron_tasks']['time'][$i] : null), array_merge(['class' => 'stretch', 'placeholder' => $this->_('AdminModule.features.placeholder_time', true)], $disabled));?> | -_('AdminModule.features.text_remove');?> | -
| + _('AdminModule.features.method_name'); ?> + + | ++ _('AdminModule.features.label'); ?> + + | ++ _('AdminModule.features.level'); ?> + + | +_('AdminModule.features.text_options'); ?> | +
|---|---|---|---|
| + Form->fieldText('service_tabs[method_name][]', $vars['service_tabs']['method_name'][$i] ?? null, array_merge(['class' => 'form-control form-control-sm', 'placeholder' => $this->_('AdminModule.features.placeholder_method_name', true)], $disabled)); ?> + | ++ Form->fieldText('service_tabs[label][]', $vars['service_tabs']['label'][$i] ?? null, array_merge(['class' => 'form-control form-control-sm', 'placeholder' => $this->_('AdminModule.features.placeholder_tab_label', true)], $disabled)); ?> + | ++ Form->fieldSelect('service_tabs[level][]', $tab_levels ?? [], $vars['service_tabs']['level'][$i] ?? null, array_merge(['class' => 'form-select form-select-sm'], $disabled)); ?> + | ++ + | +
| + _('AdminModule.features.name'); ?> + + | ++ _('AdminModule.features.label'); ?> + + | ++ _('AdminModule.features.description'); ?> + + | ++ _('AdminModule.features.type'); ?> + + | ++ _('AdminModule.features.time'); ?> + + | +_('AdminModule.features.text_options'); ?> | +
|---|---|---|---|---|---|
| + Form->fieldText('cron_tasks[name][]', $vars['cron_tasks']['name'][$i] ?? null, array_merge(['class' => 'form-control form-control-sm', 'placeholder' => $this->_('AdminModule.features.placeholder_name', true)], $disabled)); ?> + | ++ Form->fieldText('cron_tasks[label][]', $vars['cron_tasks']['label'][$i] ?? null, array_merge(['class' => 'form-control form-control-sm', 'placeholder' => $this->_('AdminModule.features.placeholder_cron_label', true)], $disabled)); ?> + | ++ Form->fieldTextarea('cron_tasks[description][]', $vars['cron_tasks']['description'][$i] ?? null, array_merge(['class' => 'form-control form-control-sm', 'rows' => 1], $disabled)); ?> + | ++ Form->fieldSelect('cron_tasks[type][]', $task_types ?? [], $vars['cron_tasks']['type'][$i] ?? null, array_merge(['class' => 'form-select form-select-sm'], $disabled)); ?> + | ++ Form->fieldText('cron_tasks[time][]', $vars['cron_tasks']['time'][$i] ?? null, array_merge(['class' => 'form-control form-control-sm', 'placeholder' => $this->_('AdminModule.features.placeholder_time', true)], $disabled)); ?> + | ++ + | +
| _('AdminModule.fields.name');?>_('AppController.tooltip.text');?> _('AdminModule.fields.tooltip_name');?> |
- _('AdminModule.fields.label');?>_('AppController.tooltip.text');?> _('AdminModule.fields.tooltip_label');?> |
- _('AdminModule.fields.type');?>_('AppController.tooltip.text');?> _('AdminModule.fields.tooltip_type');?> |
- _('AdminModule.fields.tooltip');?>_('AppController.tooltip.text');?> _('AdminModule.fields.tooltip_tooltip');?> |
- _('AdminModule.fields.name_key');?>_('AppController.tooltip.text');?> _('AdminModule.fields.tooltip_name_key');?> |
- _('AdminModule.fields.text_options');?> | -
| Form->fieldText('module_rows[name][]', (isset($vars['module_rows']['name'][$i]) ? $vars['module_rows']['name'][$i] : null), array_merge(['class' => 'stretch', 'placeholder' => $this->_('AdminModule.fields.placeholder_module_name', true)], $disabled));?> | -Form->fieldText('module_rows[label][]', (isset($vars['module_rows']['label'][$i]) ? $vars['module_rows']['label'][$i] : null), array_merge(['class' => 'stretch', 'placeholder' => $this->_('AdminModule.fields.placeholder_module_label', true)], $disabled));?> | -Form->fieldSelect('module_rows[type][]', (isset($field_types) ? $field_types : null), (isset($vars['module_rows']['type'][$i]) ? $vars['module_rows']['type'][$i] : null), array_merge(['class' => 'stretch'], $disabled));?> | -Form->fieldTextarea('module_rows[tooltip][]', (isset($vars['module_rows']['tooltip'][$i]) ? $vars['module_rows']['tooltip'][$i] : null), array_merge(['class' => 'stretch'], $disabled));?> | -- Form->fieldHidden('module_rows[name_key][]', (isset($vars['module_rows']['name_key'][$i]) ? $vars['module_rows']['name_key'][$i] : 'true'), array_merge(['class' => 'module_name_key'], $disabled));?> - Form->fieldRadio('module_rows_name_key_placeholder', 'true', (isset($vars['module_rows']['name_key'][$i]) ? $vars['module_rows']['name_key'][$i] : 'true') == 'true', array_merge(['class' => 'module_name_key_radio'], $disabled));?> - | -_('AdminModule.fields.text_remove');?> | -
| _('AdminModule.fields.name');?>_('AppController.tooltip.text');?> _('AdminModule.fields.tooltip_name');?> |
- _('AdminModule.fields.label');?>_('AppController.tooltip.text');?> _('AdminModule.fields.tooltip_label');?> |
- _('AdminModule.fields.type');?>_('AppController.tooltip.text');?> _('AdminModule.fields.tooltip_type');?> |
- _('AdminModule.fields.tooltip');?>_('AppController.tooltip.text');?> _('AdminModule.fields.tooltip_tooltip');?> |
- _('AdminModule.fields.name_key');?>_('AppController.tooltip.text');?> _('AdminModule.fields.tooltip_name_key');?> |
- _('AdminModule.fields.text_options');?> | -
| Form->fieldText('package_fields[name][]', (isset($vars['package_fields']['name'][$i]) ? $vars['package_fields']['name'][$i] : null), array_merge(['class' => 'stretch', 'placeholder' => $this->_('AdminModule.fields.placeholder_package_name', true)], $disabled));?> | -Form->fieldText('package_fields[label][]', (isset($vars['package_fields']['label'][$i]) ? $vars['package_fields']['label'][$i] : null), array_merge(['class' => 'stretch', 'placeholder' => $this->_('AdminModule.fields.placeholder_package_label', true)], $disabled));?> | -Form->fieldSelect('package_fields[type][]', (isset($field_types) ? $field_types : null), (isset($vars['package_fields']['type'][$i]) ? $vars['package_fields']['type'][$i] : null), array_merge(['class' => 'stretch'], $disabled));?> | -Form->fieldTextarea('package_fields[tooltip][]', (isset($vars['package_fields']['tooltip'][$i]) ? $vars['package_fields']['tooltip'][$i] : null), array_merge(['class' => 'stretch'], $disabled));?> | -- Form->fieldHidden('package_fields[name_key][]', (isset($vars['package_fields']['name_key'][$i]) ? $vars['package_fields']['name_key'][$i] : 'true'), array_merge(['class' => 'package_name_key'], $disabled));?> - Form->fieldRadio('package_fields_name_key_placeholder', 'true', (isset($vars['package_fields']['name_key'][$i]) ? $vars['package_fields']['name_key'][$i] : 'true') == 'true', array_merge(['class' => 'package_name_key_radio'], $disabled));?> - | -_('AdminModule.fields.text_remove');?> | -
| _('AdminModule.fields.name');?>_('AppController.tooltip.text');?> _('AdminModule.fields.tooltip_name');?> |
- _('AdminModule.fields.label');?>_('AppController.tooltip.text');?> _('AdminModule.fields.tooltip_label');?> |
- _('AdminModule.fields.type');?>_('AppController.tooltip.text');?> _('AdminModule.fields.tooltip_type');?> |
- _('AdminModule.fields.tooltip');?>_('AppController.tooltip.text');?> _('AdminModule.fields.tooltip_tooltip');?> |
- _('AdminModule.fields.name_key');?>_('AppController.tooltip.text');?> _('AdminModule.fields.tooltip_name_key');?> |
- _('AdminModule.fields.text_options');?> | -
| Form->fieldText('service_fields[name][]', (isset($vars['service_fields']['name'][$i]) ? $vars['service_fields']['name'][$i] : null), array_merge(['class' => 'stretch', 'placeholder' => $this->_('AdminModule.fields.placeholder_service_name', true)], $disabled));?> | -Form->fieldText('service_fields[label][]', (isset($vars['service_fields']['label'][$i]) ? $vars['service_fields']['label'][$i] : null), array_merge(['class' => 'stretch', 'placeholder' => $this->_('AdminModule.fields.placeholder_service_label', true)], $disabled));?> | -Form->fieldSelect('service_fields[type][]', (isset($field_types) ? $field_types : null), (isset($vars['service_fields']['type'][$i]) ? $vars['service_fields']['type'][$i] : null), array_merge(['class' => 'stretch'], $disabled));?> | -Form->fieldTextarea('service_fields[tooltip][]', (isset($vars['service_fields']['tooltip'][$i]) ? $vars['service_fields']['tooltip'][$i] : null), array_merge(['class' => 'stretch'], $disabled));?> | -- Form->fieldHidden('service_fields[name_key][]', ($vars['service_fields']['name_key'][$i] ?? 'false'), array_merge(['class' => 'service_name_key'], $disabled));?> - Form->fieldRadio('service_fields_name_key_placeholder', 'true', ($vars['service_fields']['name_key'][$i] ?? 'true') == 'true', array_merge(['class' => 'service_name_key_radio'], $disabled));?> - | -_('AdminModule.fields.text_remove');?> | -
| + _('AdminModule.fields.name'); ?> + + | ++ _('AdminModule.fields.label'); ?> + + | ++ _('AdminModule.fields.type'); ?> + + | ++ _('AdminModule.fields.tooltip'); ?> + + | ++ _('AdminModule.fields.name_key'); ?> + + | +_('AdminModule.fields.text_options'); ?> | +
|---|---|---|---|---|---|
| + Form->fieldText('module_rows[name][]', $vars['module_rows']['name'][$i] ?? null, array_merge(['class' => 'form-control form-control-sm', 'placeholder' => $this->_('AdminModule.fields.placeholder_module_name', true)], $disabled)); ?> + | ++ Form->fieldText('module_rows[label][]', $vars['module_rows']['label'][$i] ?? null, array_merge(['class' => 'form-control form-control-sm', 'placeholder' => $this->_('AdminModule.fields.placeholder_module_label', true)], $disabled)); ?> + | ++ Form->fieldSelect('module_rows[type][]', $field_types ?? [], $vars['module_rows']['type'][$i] ?? null, array_merge(['class' => 'form-select form-select-sm'], $disabled)); ?> + | ++ Form->fieldTextarea('module_rows[tooltip][]', $vars['module_rows']['tooltip'][$i] ?? null, array_merge(['class' => 'form-control form-control-sm', 'rows' => 1], $disabled)); ?> + | ++ Form->fieldHidden('module_rows[name_key][]', $vars['module_rows']['name_key'][$i] ?? 'true', array_merge(['class' => 'name-key-value'], $disabled)); ?> + Form->fieldRadio('module_rows_name_key_placeholder', 'true', ($vars['module_rows']['name_key'][$i] ?? 'true') == 'true', array_merge(['class' => 'form-check-input name-key-radio', 'data-field-type' => 'module'], $disabled)); ?> + | ++ + | +
| + _('AdminModule.fields.name'); ?> + + | ++ _('AdminModule.fields.label'); ?> + + | ++ _('AdminModule.fields.type'); ?> + + | ++ _('AdminModule.fields.tooltip'); ?> + + | ++ _('AdminModule.fields.name_key'); ?> + + | +_('AdminModule.fields.text_options'); ?> | +
|---|---|---|---|---|---|
| + Form->fieldText('package_fields[name][]', $vars['package_fields']['name'][$i] ?? null, array_merge(['class' => 'form-control form-control-sm', 'placeholder' => $this->_('AdminModule.fields.placeholder_package_name', true)], $disabled)); ?> + | ++ Form->fieldText('package_fields[label][]', $vars['package_fields']['label'][$i] ?? null, array_merge(['class' => 'form-control form-control-sm', 'placeholder' => $this->_('AdminModule.fields.placeholder_package_label', true)], $disabled)); ?> + | ++ Form->fieldSelect('package_fields[type][]', $field_types ?? [], $vars['package_fields']['type'][$i] ?? null, array_merge(['class' => 'form-select form-select-sm'], $disabled)); ?> + | ++ Form->fieldTextarea('package_fields[tooltip][]', $vars['package_fields']['tooltip'][$i] ?? null, array_merge(['class' => 'form-control form-control-sm', 'rows' => 1], $disabled)); ?> + | ++ Form->fieldHidden('package_fields[name_key][]', $vars['package_fields']['name_key'][$i] ?? 'true', array_merge(['class' => 'name-key-value'], $disabled)); ?> + Form->fieldRadio('package_fields_name_key_placeholder', 'true', ($vars['package_fields']['name_key'][$i] ?? 'true') == 'true', array_merge(['class' => 'form-check-input name-key-radio', 'data-field-type' => 'package'], $disabled)); ?> + | ++ + | +
| + _('AdminModule.fields.name'); ?> + + | ++ _('AdminModule.fields.label'); ?> + + | ++ _('AdminModule.fields.type'); ?> + + | ++ _('AdminModule.fields.tooltip'); ?> + + | ++ _('AdminModule.fields.name_key'); ?> + + | +_('AdminModule.fields.text_options'); ?> | +
|---|---|---|---|---|---|
| + Form->fieldText('service_fields[name][]', $vars['service_fields']['name'][$i] ?? null, array_merge(['class' => 'form-control form-control-sm', 'placeholder' => $this->_('AdminModule.fields.placeholder_service_name', true)], $disabled)); ?> + | ++ Form->fieldText('service_fields[label][]', $vars['service_fields']['label'][$i] ?? null, array_merge(['class' => 'form-control form-control-sm', 'placeholder' => $this->_('AdminModule.fields.placeholder_service_label', true)], $disabled)); ?> + | ++ Form->fieldSelect('service_fields[type][]', $field_types ?? [], $vars['service_fields']['type'][$i] ?? null, array_merge(['class' => 'form-select form-select-sm'], $disabled)); ?> + | ++ Form->fieldTextarea('service_fields[tooltip][]', $vars['service_fields']['tooltip'][$i] ?? null, array_merge(['class' => 'form-control form-control-sm', 'rows' => 1], $disabled)); ?> + | ++ Form->fieldHidden('service_fields[name_key][]', $vars['service_fields']['name_key'][$i] ?? 'false', array_merge(['class' => 'name-key-value'], $disabled)); ?> + Form->fieldRadio('service_fields_name_key_placeholder', 'true', ($vars['service_fields']['name_key'][$i] ?? 'true') == 'true', array_merge(['class' => 'form-check-input name-key-radio', 'data-field-type' => 'service'], $disabled)); ?> + | ++ + | +
| _('AdminNonmerchant.basic.author_name');?> | -_('AdminNonmerchant.basic.author_url');?> | -_('AdminNonmerchant.basic.text_options');?> | -
| Form->fieldText('authors[name][]', (isset($vars['authors']['name'][$i]) ? $vars['authors']['name'][$i] : null), ['class' => 'stretch', 'placeholder' => $this->_('AdminNonmerchant.basic.placeholder_author_name', true)]);?> | -Form->fieldText('authors[url][]', (isset($vars['authors']['url'][$i]) ? $vars['authors']['url'][$i] : null), ['class' => 'stretch', 'placeholder' => $this->_('AdminNonmerchant.basic.placeholder_author_url', true)]);?> | -_('AdminNonmerchant.basic.text_remove');?> | -
| _('AdminNonmerchant.fields.name');?>_('AppController.tooltip.text');?> _('AdminNonmerchant.fields.tooltip_name');?> |
- _('AdminNonmerchant.fields.label');?>_('AppController.tooltip.text');?> _('AdminNonmerchant.fields.tooltip_label');?> |
- _('AdminNonmerchant.fields.type');?>_('AppController.tooltip.text');?> _('AdminNonmerchant.fields.tooltip_type');?> |
- _('AdminNonmerchant.fields.tooltip');?>_('AppController.tooltip.text');?> _('AdminNonmerchant.fields.tooltip_tooltip');?> |
- _('AdminNonmerchant.fields.encryptable');?>_('AppController.tooltip.text');?> _('AdminMerchant.fields.tooltip_encryptable');?> |
- _('AdminNonmerchant.fields.text_options');?> | -
| Form->fieldText('fields[name][]', (isset($vars['fields']['name'][$i]) ? $vars['fields']['name'][$i] : null), array_merge(['class' => 'stretch', 'placeholder' => $this->_('AdminNonmerchant.fields.placeholder_name', true)], $disabled));?> | -Form->fieldText('fields[label][]', (isset($vars['fields']['label'][$i]) ? $vars['fields']['label'][$i] : null), array_merge(['class' => 'stretch', 'placeholder' => $this->_('AdminNonmerchant.fields.placeholder_label', true)], $disabled));?> | -Form->fieldSelect('fields[type][]', (isset($field_types) ? $field_types : null), (isset($vars['fields']['type'][$i]) ? $vars['fields']['type'][$i] : null), array_merge(['class' => 'stretch'], $disabled));?> | -Form->fieldTextarea('fields[tooltip][]', (isset($vars['fields']['tooltip'][$i]) ? $vars['fields']['tooltip'][$i] : null), array_merge(['class' => 'stretch'], $disabled));?> | -- Form->fieldHidden('fields[encryptable][]', (isset($vars['fields']['encryptable'][$i]) ? $vars['fields']['encryptable'][$i] : 'false'), array_merge(['class' => 'encryptable'], $disabled));?> - Form->fieldCheckbox('', 'true', (isset($vars['fields']['encryptable'][$i]) ? $vars['fields']['encryptable'][$i] : null) == 'true', array_merge(['class' => 'stretch encryptable_checkbox'], $disabled));?> - | -_('AdminNonmerchant.fields.text_remove');?> | -
| _('AdminPlugin.basic.author_name');?> | -_('AdminPlugin.basic.author_url');?> | -_('AdminPlugin.basic.text_options');?> | -
| Form->fieldText('authors[name][]', (isset($vars['authors']['name'][$i]) ? $vars['authors']['name'][$i] : null), ['class' => 'stretch', 'placeholder' => $this->_('AdminPlugin.basic.placeholder_author_name', true)]);?> | -Form->fieldText('authors[url][]', (isset($vars['authors']['url'][$i]) ? $vars['authors']['url'][$i] : null), ['class' => 'stretch', 'placeholder' => $this->_('AdminPlugin.basic.placeholder_author_url', true)]);?> | -_('AdminPlugin.basic.text_remove');?> | -
-
| _('AdminPlugin.database.column_name');?>_('AppController.tooltip.text');?> _('AdminPlugin.database.tooltip_column_name');?> |
- _('AdminPlugin.database.type');?>_('AppController.tooltip.text');?> _('AdminPlugin.database.tooltip_type');?> |
- _('AdminPlugin.database.length');?>_('AppController.tooltip.text');?> _('AdminPlugin.database.tooltip_length');?> |
- _('AdminPlugin.database.default');?>_('AppController.tooltip.text');?> _('AdminPlugin.database.tooltip_default');?> |
- _('AdminPlugin.database.nullable');?>_('AppController.tooltip.text');?> _('AdminPlugin.database.tooltip_nullable');?> |
- _('AdminPlugin.database.primary');?>_('AppController.tooltip.text');?> _('AdminPlugin.database.tooltip_primary');?> |
- _('AdminPlugin.database.text_options');?> | -
| + _('AdminPlugin.database.column_name'); ?> + + | ++ _('AdminPlugin.database.type'); ?> + + | ++ _('AdminPlugin.database.length'); ?> + + | ++ _('AdminPlugin.database.default'); ?> + + | ++ _('AdminPlugin.database.nullable'); ?> + + | ++ _('AdminPlugin.database.primary'); ?> + + | +_('AdminPlugin.database.text_options'); ?> | +
|---|---|---|---|---|---|---|
| Form->fieldText('tables[' . $i . '][columns][c' . $j . '][name]', (isset($vars['tables'][$i]['columns'][$j]['name']) ? $vars['tables'][$i]['columns'][$j]['name'] : null), array_merge(['class' => 'stretch', 'placeholder' => $this->_('AdminPlugin.database.placeholder_column_name', true)], $disabled));?> | -Form->fieldSelect('tables[' . $i . '][columns][c' . $j . '][type]', (isset($column_types) ? $column_types : []), $type, array_merge(['class' => 'type'], $disabled));?> | -Form->fieldText('tables[' . $i . '][columns][c' . $j . '][length]', (isset($vars['tables'][$i]['columns'][$j]['length']) ? $vars['tables'][$i]['columns'][$j]['length'] : null), array_merge(['class' => 'stretch length', 'placeholder' => $this->_('AdminPlugin.database.placeholder_length', true)], in_array($type, $no_length_types) ? ['disabled' => 'disabled'] : $disabled));?> | -Form->fieldTextarea('tables[' . $i . '][columns][c' . $j . '][default]', (isset($vars['tables'][$i]['columns'][$j]['default']) ? $vars['tables'][$i]['columns'][$j]['default'] : null), array_merge(['class' => 'stretch'], $disabled));?> | -Form->fieldCheckbox('tables[' . $i . '][columns][c' . $j . '][nullable]', 'true', (isset($vars['tables'][$i]['columns'][$j]['nullable']) ? $vars['tables'][$i]['columns'][$j]['nullable'] : 'true') == 'true', $disabled);?> | -Form->fieldRadio('tables[' . $i . '][columns][c' . $j . '][primary]', 'true', (isset($vars['tables'][$i]['columns'][$j]['primary']) ? $vars['tables'][$i]['columns'][$j]['primary'] : 'true') == 'true', array_merge(['class' => 'primary_key'], in_array($type, $no_length_types) ? ['disabled' => 'disabled'] : $disabled));?> | -_('AdminPlugin.database.text_remove');?> | +
| + Form->fieldText('tables[' . $i . '][columns][c' . $j . '][name]', $vars['tables'][$i]['columns'][$j]['name'] ?? null, array_merge(['class' => 'form-control form-control-sm', 'placeholder' => $this->_('AdminPlugin.database.placeholder_column_name', true)], $disabled)); ?> + | ++ Form->fieldSelect('tables[' . $i . '][columns][c' . $j . '][type]', $column_types ?? [], $type, array_merge(['class' => 'form-select form-select-sm column-type-select'], $disabled)); ?> + | ++ Form->fieldText('tables[' . $i . '][columns][c' . $j . '][length]', $vars['tables'][$i]['columns'][$j]['length'] ?? null, array_merge(['class' => 'form-control form-control-sm column-length', 'placeholder' => $this->_('AdminPlugin.database.placeholder_length', true)], in_array($type, $no_length_types) ? ['disabled' => 'disabled'] : $disabled)); ?> + | ++ Form->fieldTextarea('tables[' . $i . '][columns][c' . $j . '][default]', $vars['tables'][$i]['columns'][$j]['default'] ?? null, array_merge(['class' => 'form-control form-control-sm', 'rows' => 1], $disabled)); ?> + | ++ Form->fieldCheckbox('tables[' . $i . '][columns][c' . $j . '][nullable]', 'true', ($vars['tables'][$i]['columns'][$j]['nullable'] ?? 'true') == 'true', array_merge(['class' => 'form-check-input'], $disabled)); ?> + | ++ Form->fieldRadio('tables[' . $i . '][columns][c' . $j . '][primary]', 'true', ($vars['tables'][$i]['columns'][$j]['primary'] ?? 'true') == 'true', array_merge(['class' => 'form-check-input primary-key'], in_array($type, $no_length_types) ? ['disabled' => 'disabled'] : $disabled)); ?> + | ++ + |
| _('AdminPlugin.features.method_name');?>_('AppController.tooltip.text');?> _('AdminPlugin.features.tooltip_method_name');?> |
- _('AdminPlugin.features.label');?>_('AppController.tooltip.text');?> _('AdminPlugin.features.tooltip_tab_label');?> |
- _('AdminPlugin.features.level');?>_('AppController.tooltip.text');?> _('AdminPlugin.features.tooltip_level');?> |
- _('AdminPlugin.features.text_options');?> | -
| Form->fieldText('service_tabs[method_name][]', (isset($vars['service_tabs']['method_name'][$i]) ? $vars['service_tabs']['method_name'][$i] : null), array_merge(['class' => 'stretch', 'placeholder' => $this->_('AdminPlugin.features.placeholder_method_name', true)], $disabled));?> | -Form->fieldText('service_tabs[label][]', (isset($vars['service_tabs']['label'][$i]) ? $vars['service_tabs']['label'][$i] : null), array_merge(['class' => 'stretch', 'placeholder' => $this->_('AdminPlugin.features.placeholder_tab_label', true)], $disabled));?> | -Form->fieldSelect('service_tabs[level][]', (isset($tab_levels) ? $tab_levels : null), (isset($vars['service_tabs']['level'][$i]) ? $vars['service_tabs']['level'][$i] : null), array_merge(['class' => 'stretch'], $disabled));?> | -_('AdminPlugin.features.text_remove');?> | -
| _('AdminPlugin.features.name');?>_('AppController.tooltip.text');?> _('AdminPlugin.features.tooltip_name');?> |
- _('AdminPlugin.features.label');?>_('AppController.tooltip.text');?> _('AdminPlugin.features.tooltip_cron_label');?> |
- _('AdminPlugin.features.description');?>_('AppController.tooltip.text');?> _('AdminPlugin.features.tooltip_description');?> |
- _('AdminPlugin.features.type');?>_('AppController.tooltip.text');?> _('AdminPlugin.features.tooltip_type');?> |
- _('AdminPlugin.features.time');?>_('AppController.tooltip.text');?> _('AdminPlugin.features.tooltip_time');?> |
- _('AdminPlugin.features.text_options');?> | -
| Form->fieldText('cron_tasks[name][]', (isset($vars['cron_tasks']['name'][$i]) ? $vars['cron_tasks']['name'][$i] : null), array_merge(['class' => 'stretch', 'placeholder' => $this->_('AdminPlugin.features.placeholder_name', true)], $disabled));?> | -Form->fieldText('cron_tasks[label][]', (isset($vars['cron_tasks']['label'][$i]) ? $vars['cron_tasks']['label'][$i] : null), array_merge(['class' => 'stretch', 'placeholder' => $this->_('AdminPlugin.features.placeholder_cron_label', true)], $disabled));?> | -Form->fieldTextarea('cron_tasks[description][]', (isset($vars['cron_tasks']['description'][$i]) ? $vars['cron_tasks']['description'][$i] : null), array_merge(['class' => 'stretch'], $disabled));?> | -Form->fieldSelect('cron_tasks[type][]', (isset($task_types) ? $task_types : null), (isset($vars['cron_tasks']['type'][$i]) ? $vars['cron_tasks']['type'][$i] : null), array_merge(['class' => 'stretch'], $disabled));?> | -Form->fieldText('cron_tasks[time][]', (isset($vars['cron_tasks']['time'][$i]) ? $vars['cron_tasks']['time'][$i] : null), array_merge(['class' => 'stretch', 'placeholder' => $this->_('AdminPlugin.features.placeholder_time', true)], $disabled));?> | -_('AdminPlugin.features.text_remove');?> | -
| + _('AdminPlugin.features.method_name'); ?> + + | ++ _('AdminPlugin.features.label'); ?> + + | ++ _('AdminPlugin.features.level'); ?> + + | +_('AdminPlugin.features.text_options'); ?> | +
|---|---|---|---|
| + Form->fieldText('service_tabs[method_name][]', $vars['service_tabs']['method_name'][$i] ?? null, array_merge(['class' => 'form-control form-control-sm', 'placeholder' => $this->_('AdminPlugin.features.placeholder_method_name', true)], $disabled)); ?> + | ++ Form->fieldText('service_tabs[label][]', $vars['service_tabs']['label'][$i] ?? null, array_merge(['class' => 'form-control form-control-sm', 'placeholder' => $this->_('AdminPlugin.features.placeholder_tab_label', true)], $disabled)); ?> + | ++ Form->fieldSelect('service_tabs[level][]', $tab_levels ?? [], $vars['service_tabs']['level'][$i] ?? null, array_merge(['class' => 'form-select form-select-sm'], $disabled)); ?> + | ++ + | +
| + _('AdminPlugin.features.name'); ?> + + | ++ _('AdminPlugin.features.label'); ?> + + | ++ _('AdminPlugin.features.description'); ?> + + | ++ _('AdminPlugin.features.type'); ?> + + | ++ _('AdminPlugin.features.time'); ?> + + | +_('AdminPlugin.features.text_options'); ?> | +
|---|---|---|---|---|---|
| + Form->fieldText('cron_tasks[name][]', $vars['cron_tasks']['name'][$i] ?? null, array_merge(['class' => 'form-control form-control-sm', 'placeholder' => $this->_('AdminPlugin.features.placeholder_name', true)], $disabled)); ?> + | ++ Form->fieldText('cron_tasks[label][]', $vars['cron_tasks']['label'][$i] ?? null, array_merge(['class' => 'form-control form-control-sm', 'placeholder' => $this->_('AdminPlugin.features.placeholder_cron_label', true)], $disabled)); ?> + | ++ Form->fieldTextarea('cron_tasks[description][]', $vars['cron_tasks']['description'][$i] ?? null, array_merge(['class' => 'form-control form-control-sm', 'rows' => 1], $disabled)); ?> + | ++ Form->fieldSelect('cron_tasks[type][]', $task_types ?? [], $vars['cron_tasks']['type'][$i] ?? null, array_merge(['class' => 'form-select form-select-sm'], $disabled)); ?> + | ++ Form->fieldText('cron_tasks[time][]', $vars['cron_tasks']['time'][$i] ?? null, array_merge(['class' => 'form-control form-control-sm', 'placeholder' => $this->_('AdminPlugin.features.placeholder_time', true)], $disabled)); ?> + | ++ + | +
| _('AdminPlugin.integrations.location');?>_('AppController.tooltip.text');?> _('AdminPlugin.integrations.tooltip_location');?> |
- _('AdminPlugin.integrations.controller');?>_('AppController.tooltip.text');?> _('AdminPlugin.integrations.tooltip_controller');?> |
- _('AdminPlugin.integrations.action');?>_('AppController.tooltip.text');?> _('AdminPlugin.integrations.tooltip_action');?> |
- _('AdminPlugin.integrations.name');?>_('AppController.tooltip.text');?> _('AdminPlugin.integrations.tooltip_name');?> |
- _('AdminPlugin.integrations.text_options');?> | -
| Form->fieldSelect('actions[location][]', (isset($action_locations) ? $action_locations : null), (isset($vars['actions']['location'][$i]) ? $vars['actions']['location'][$i] : null), array_merge(['class' => 'stretch'], $disabled));?> | -Form->fieldText('actions[controller][]', (isset($vars['actions']['controller'][$i]) ? $vars['actions']['controller'][$i] : null), array_merge(['class' => 'stretch', 'placeholder' => $this->_('AdminPlugin.integrations.placeholder_controller', true)], $disabled));?> | -Form->fieldText('actions[action][]', (isset($vars['actions']['action'][$i]) ? $vars['actions']['action'][$i] : null), array_merge(['class' => 'stretch', 'placeholder' => $this->_('AdminPlugin.integrations.placeholder_action', true)], $disabled));?> | -Form->fieldText('actions[name][]', (isset($vars['actions']['name'][$i]) ? $vars['actions']['name'][$i] : null), array_merge(['class' => 'stretch', 'placeholder' => $this->_('AdminPlugin.integrations.placeholder_name', true)], $disabled));?> | -_('AdminPlugin.integrations.text_remove');?> | -
| _('AdminPlugin.integrations.event');?>_('AppController.tooltip.text');?> _('AdminPlugin.integrations.tooltip_event');?> |
- _('AdminPlugin.integrations.event_callback');?>_('AppController.tooltip.text');?> _('AdminPlugin.integrations.tooltip_event_callback');?> |
- _('AdminPlugin.integrations.text_options');?> | -
| Form->fieldText('events[event][]', (isset($vars['events']['event'][$i]) ? $vars['events']['event'][$i] : null), array_merge(['class' => 'stretch', 'placeholder' => $this->_('AdminPlugin.integrations.placeholder_event', true)], $disabled));?> | -Form->fieldText('events[callback][]', (isset($vars['events']['callback'][$i]) ? $vars['events']['callback'][$i] : null), array_merge(['class' => 'stretch', 'placeholder' => $this->_('AdminPlugin.integrations.placeholder_event_callback', true)], $disabled));?> | -_('AdminPlugin.integrations.text_remove');?> | -
| _('AdminPlugin.integrations.level');?>_('AppController.tooltip.text');?> _('AdminPlugin.integrations.tooltip_name');?> |
- _('AdminPlugin.integrations.card_callback');?>_('AppController.tooltip.text');?> _('AdminPlugin.integrations.tooltip_card_callback');?> |
- _('AdminPlugin.integrations.label');?>_('AppController.tooltip.text');?> _('AdminPlugin.integrations.tooltip_label');?> |
- _('AdminPlugin.integrations.link');?>_('AppController.tooltip.text');?> _('AdminPlugin.integrations.tooltip_link');?> |
- _('AdminPlugin.integrations.text_options');?> | -
| Form->fieldSelect('cards[level][]', (isset($card_levels) ? $card_levels : null), (isset($vars['cards']['level'][$i]) ? $vars['cards']['level'][$i] : null), array_merge(['class' => 'stretch'], $disabled));?> | -Form->fieldText('cards[callback][]', (isset($vars['cards']['callback'][$i]) ? $vars['cards']['callback'][$i] : null), array_merge(['class' => 'stretch', 'placeholder' => $this->_('AdminPlugin.integrations.placeholder_card_callback', true)], $disabled));?> | -Form->fieldText('cards[label][]', (isset($vars['cards']['label'][$i]) ? $vars['cards']['label'][$i] : null), array_merge(['class' => 'stretch', 'placeholder' => $this->_('AdminPlugin.integrations.placeholder_label', true)], $disabled));?> | -Form->fieldText('cards[link][]', (isset($vars['cards']['link'][$i]) ? $vars['cards']['link'][$i] : null), array_merge(['class' => 'stretch', 'placeholder' => $this->_('AdminPlugin.integrations.placeholder_link', true)], $disabled));?> | -_('AdminPlugin.integrations.text_remove');?> | -
| + _('AdminPlugin.integrations.location'); ?> + + | ++ _('AdminPlugin.integrations.controller'); ?> + + | ++ _('AdminPlugin.integrations.action'); ?> + + | ++ _('AdminPlugin.integrations.name'); ?> + + | +_('AdminPlugin.integrations.text_options'); ?> | +
|---|---|---|---|---|
| + Form->fieldSelect('actions[location][]', $action_locations ?? [], $vars['actions']['location'][$i] ?? null, array_merge(['class' => 'form-select form-select-sm'], $disabled)); ?> + | ++ Form->fieldText('actions[controller][]', $vars['actions']['controller'][$i] ?? null, array_merge(['class' => 'form-control form-control-sm', 'placeholder' => $this->_('AdminPlugin.integrations.placeholder_controller', true)], $disabled)); ?> + | ++ Form->fieldText('actions[action][]', $vars['actions']['action'][$i] ?? null, array_merge(['class' => 'form-control form-control-sm', 'placeholder' => $this->_('AdminPlugin.integrations.placeholder_action', true)], $disabled)); ?> + | ++ Form->fieldText('actions[name][]', $vars['actions']['name'][$i] ?? null, array_merge(['class' => 'form-control form-control-sm', 'placeholder' => $this->_('AdminPlugin.integrations.placeholder_name', true)], $disabled)); ?> + | ++ + | +
| + _('AdminPlugin.integrations.event'); ?> + + | ++ _('AdminPlugin.integrations.event_callback'); ?> + + | +_('AdminPlugin.integrations.text_options'); ?> | +
|---|---|---|
| + Form->fieldText('events[event][]', $vars['events']['event'][$i] ?? null, array_merge(['class' => 'form-control form-control-sm', 'placeholder' => $this->_('AdminPlugin.integrations.placeholder_event', true)], $disabled)); ?> + | ++ Form->fieldText('events[callback][]', $vars['events']['callback'][$i] ?? null, array_merge(['class' => 'form-control form-control-sm', 'placeholder' => $this->_('AdminPlugin.integrations.placeholder_event_callback', true)], $disabled)); ?> + | ++ + | +
| + _('AdminPlugin.integrations.level'); ?> + + | ++ _('AdminPlugin.integrations.card_callback'); ?> + + | ++ _('AdminPlugin.integrations.label'); ?> + + | ++ _('AdminPlugin.integrations.link'); ?> + + | +_('AdminPlugin.integrations.text_options'); ?> | +
|---|---|---|---|---|
| + Form->fieldSelect('cards[level][]', $card_levels ?? [], $vars['cards']['level'][$i] ?? null, array_merge(['class' => 'form-select form-select-sm'], $disabled)); ?> + | ++ Form->fieldText('cards[callback][]', $vars['cards']['callback'][$i] ?? null, array_merge(['class' => 'form-control form-control-sm', 'placeholder' => $this->_('AdminPlugin.integrations.placeholder_card_callback', true)], $disabled)); ?> + | ++ Form->fieldText('cards[label][]', $vars['cards']['label'][$i] ?? null, array_merge(['class' => 'form-control form-control-sm', 'placeholder' => $this->_('AdminPlugin.integrations.placeholder_label', true)], $disabled)); ?> + | ++ Form->fieldText('cards[link][]', $vars['cards']['link'][$i] ?? null, array_merge(['class' => 'form-control form-control-sm', 'placeholder' => $this->_('AdminPlugin.integrations.placeholder_link', true)], $disabled)); ?> + | ++ + | +