-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cfed6e5
commit 08aa19c
Showing
98 changed files
with
230 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Calculation package. | ||
* | ||
* (c) bibi.nu <bibi@bibi.nu> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\Form\Admin; | ||
|
||
use App\Form\AbstractHelperType; | ||
use App\Form\FormHelper; | ||
|
||
class CustomerParameterType extends AbstractHelperType | ||
{ | ||
public function __construct() | ||
{ | ||
} | ||
|
||
public function getBlockPrefix(): string | ||
{ | ||
return 'customer'; | ||
} | ||
|
||
protected function addFormFields(FormHelper $helper): void | ||
{ | ||
$helper->field('name') | ||
->updateOption('prepend_icon', 'fa-solid fa-user-group') | ||
->addTextType(); | ||
$helper->field('address') | ||
->updateOption('prepend_icon', 'fa-solid fa-location-dot') | ||
->notRequired() | ||
->addTextType(); | ||
$helper->field('zipCity') | ||
->updateOption('prepend_icon', 'fa-solid fa-map-location-dot') | ||
->notRequired() | ||
->addTextType(); | ||
$helper->field('phone') | ||
->updateOption('prepend_title', 'parameters.fields.customer_phone_title') | ||
->notRequired() | ||
->addTelType(); | ||
$helper->field('fax') | ||
->notRequired() | ||
->addFaxType(); | ||
$helper->field('email') | ||
->updateOption('prepend_title', 'parameters.fields.customer_email_title') | ||
->notRequired() | ||
->addEmailType(); | ||
$helper->field('url') | ||
->updateOption('prepend_title', 'parameters.fields.customer_url_title') | ||
->notRequired() | ||
->addUrlType(); | ||
} | ||
|
||
protected function getLabelPrefix(): ?string | ||
{ | ||
return 'parameters.fields.customer_'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Calculation package. | ||
* | ||
* (c) bibi.nu <bibi@bibi.nu> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\Form\Parameters; | ||
|
||
use App\Form\AbstractHelperType; | ||
use App\Form\FormHelper; | ||
|
||
class OptionParameterType extends AbstractHelperType | ||
{ | ||
public function getBlockPrefix(): string | ||
{ | ||
return 'option'; | ||
} | ||
|
||
protected function addFormFields(FormHelper $helper): void | ||
{ | ||
$helper->field('printAddress') | ||
// ->updateAttribute('data-default', $this->getDefaultValue('printAddress')) | ||
->help('parameters.helps.qr_code') | ||
->addCheckboxType(); | ||
|
||
$helper->field('qrCode') | ||
// ->updateAttribute('data-default', $this->getDefaultValue('qrCode')) | ||
->help('parameters.helps.print_address') | ||
->addCheckboxType(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{% extends 'cards/card_edit.html.twig' %} | ||
{%- set title = 'parameters.title' -%} | ||
{%- set title_icon = 'cogs' -%} | ||
{%- set title_description = 'parameters.description' -%} | ||
{# javascript #} | ||
{% block javascripts -%} | ||
{{ parent() }} | ||
{{- asset_js('js/application/validation_edit.js') }} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.