dbxapp 4.1.3
CMS, Shop, Workflows und modulare Geschäftsanwendungen
Loading...
Searching...
No Matches
withdrawal_en.fd.php
Go to the documentation of this file.
1<?php
2$messages = array();
3$messages['save_success'] = 'Data was saved';
4$messages['save_succeass'] = $messages['save_success'];
5$messages['save_error'] = 'Data could not be saved';
6$messages['page_title'] = 'Withdrawal';
7$messages['page_subtitle'] = 'Read the withdrawal policy and submit a withdrawal directly.';
8$messages['empty_content'] = 'The CMS page is empty.';
9$messages['bar_title'] = 'Submit withdrawal';
10$messages['bar_subtitle'] = 'Assign the request to the correct order';
11$messages['form_info'] = 'Enter the order number and contact details so that the withdrawal can be assigned.';
12$messages['validation_error'] = 'Please check the highlighted required fields.';
13$messages['withdrawal_success'] = 'Your withdrawal was saved. We will check its assignment to the order.';
14$messages['withdrawal_error'] = 'The withdrawal could not be saved.';
15
16$addField = function($name, $type, $label, $rules, $tpl, $extra = array()) use (&$fields) {
17 $field=array();
18 $field['name']=$name;
19 $field['type']=$type;
20 $field['index']='';
21 $field['length']=$extra['length'] ?? '';
22 $field['default']=$extra['default'] ?? '';
23 $field['label']=$label;
24 $field['rules']=$rules;
25 $field['tooltip']=$extra['tooltip'] ?? '';
26 $field['errormsg']=$extra['errormsg'] ?? '';
27 $field['placeholder']=$extra['placeholder'] ?? '';
28 $field['convert']='';
29 $field['protect']='0';
30 $field['mask']='';
31 $field['data']=$extra['data'] ?? '';
32 $field['options']=$extra['options'] ?? '';
33 $field['tpl']=$tpl;
35};
36
37$addField('order_no','varchar','Order number','parameter|max=40','text-label',array('placeholder'=>'S20260710123456-1234'));
38$addField('customer_name','varchar','Name','*|min=2|max=180','text-label',array('placeholder'=>'Your name'));
39$addField('customer_email','varchar','E-mail','email|max=180','text-label',array('placeholder'=>'name@example.org'));
40$addField('customer_address','mediumtext','Address','*|min=8|max=2000','textarea-label',array('data'=>'rows=4','placeholder'=>"Name\nStreet and house number\nPostal code and city\nCountry"));
41$addField('reason','mediumtext','Message','*|max=3000','textarea-label',array('data'=>'rows=5','placeholder'=>'I hereby withdraw from my order. Optional: affected items or a question.'));
42?>
$messages
Definition config.fd.php:2
if($web->content_permalink_redirect_target() !=='') $tpl