Added accept_digging to preorder
This commit is contained in:
@@ -309,7 +309,8 @@
|
||||
<label><input type="checkbox" name="accept_agb" id="accept_agb" value="1" disabled="disabled" checked="checked" /> AGB akzeptiert</label><br />
|
||||
<label><input type="checkbox" name="accept_dsgvo" id="accept_dsgvo" value="1" disabled="disabled" checked="checked" /> DSGVO akzeptiert</label><br />
|
||||
<label><input type="checkbox" name="accept_withdrawal" id="accept_withdrawal" value="1" disabled="disabled" checked="checked" /> Rücktrittsrecht akzeptiert</label><br />
|
||||
<label><input type="checkbox" name="accept_marketing" id="accept_marketing" value="1" <?=($preorder->accept_marketing) ? "checked='checked'" : ""?> /> Datenweitergabe akzeptiert</label>
|
||||
<label><input type="checkbox" name="accept_marketing" id="accept_marketing" value="1" <?=($preorder->accept_marketing) ? "checked='checked'" : ""?> /> Datenweitergabe akzeptiert</label><br />
|
||||
<label><input type="checkbox" name="accept_digging" id="accept_digging" value="1" <?=($preorder->accept_digging) ? "checked='checked'" : ""?> /> Zustimmung zu Grabungsarbeiten</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -508,6 +508,9 @@ class PreorderApicontroller extends mfBaseApicontroller {
|
||||
if($this->post['acceptWithdrawal'] === true) {
|
||||
$preorder_data['accept_withdrawal'] = 1;
|
||||
}
|
||||
if($this->post['acceptDigging'] === true) {
|
||||
$preorder_data['accept_digging'] = 1;
|
||||
}
|
||||
|
||||
if($is_additional_order) {
|
||||
$preorder_data['is_additional_order'] = 1;
|
||||
|
||||
@@ -61,6 +61,7 @@ class Preorder extends mfBaseModel {
|
||||
$a['acceptAgb'] = ($this->accept_agb) ? true : false;
|
||||
$a['acceptDsgvo'] = ($this->accept_dsgvo) ? true : false;
|
||||
$a['acceptWithdrawal'] = ($this->accept_withdrawal) ? true : false;
|
||||
$a['acceptDigging'] = ($this->accept_digging) ? true : false;
|
||||
$a['address_info'] = ($this->address_info) ? $this->address_info : null;
|
||||
|
||||
$address = [];
|
||||
|
||||
@@ -315,6 +315,10 @@ class PreorderController extends mfBaseController {
|
||||
if($r->accept_marketing == 1) {
|
||||
$data['accept_marketing'] = 1;
|
||||
}
|
||||
$data['accept_digging'] = 0;
|
||||
if($r->accept_digging== 1) {
|
||||
$data['accept_digging'] = 1;
|
||||
}
|
||||
|
||||
$data['price'] = ($r->price) ? Layout::commaToDot($r->price) : 0;
|
||||
$data['price_setup'] = ($r->price_setup) ? Layout::commaToDot($r->price_setup) : 0;
|
||||
|
||||
@@ -29,6 +29,7 @@ class PreorderModel {
|
||||
public $accept_dsgvo;
|
||||
public $accept_marketing;
|
||||
public $accept_withdrawal;
|
||||
public $accept_digging;
|
||||
public $contact_type;
|
||||
public $company;
|
||||
public $uid;
|
||||
|
||||
@@ -1109,6 +1109,9 @@ components:
|
||||
acceptWithdrawal:
|
||||
type: boolean
|
||||
description: Informationen zu Rücktrittsrecht akzeptiert
|
||||
acceptDigging:
|
||||
type: boolean
|
||||
description: Zustimmung zu Grabungsarbeiten auf Privatgrund/Privatstraße gegeben
|
||||
address:
|
||||
type: object
|
||||
description: Anschlussadresse
|
||||
@@ -1360,6 +1363,9 @@ components:
|
||||
acceptWithdrawal:
|
||||
type: boolean
|
||||
description: Informationen zu Rücktrittsrecht akzeptiert
|
||||
acceptDigging:
|
||||
type: boolean
|
||||
description: Zustimmung zu Grabungsarbeiten auf Privatgrund/Privatstraße gegeben
|
||||
address_info:
|
||||
type: string
|
||||
description: Zusätzliche Info zur Adresse
|
||||
|
||||
Reference in New Issue
Block a user