CoolCMS API

Forms

Table of Contents

Traits

ComplaintFileUploaderTrait
Multi-upload of complaint attachments through a single static dropzone.
ComplaintFormTrait
Add/edit form of a complaint, saved through the generic object-graph `save()`.
ComplaintSolutionFormTrait
Add/edit form of a complaint solution: a multilingual name only (own solution, new goods, goods repair, refund), like `ProductTagFormTrait` without `attributeClass` (no untranslated field).
ComplaintStatusChangeFormTrait
Standalone status-change form of a complaint (like {@see OrderStatusChangeFormTrait}).
ComplaintStatusFormTrait
Add/edit form of a complaint status: like `OrderStatusFormTrait` minus the cross-module select (a complaint has no invoicing).
GiftFormTrait
Add/edit form of a gift: multilingual texts, validity, a double link to sets (`productSet` single picker, `offerSets` multi picker), cart value thresholds per currency ({@see GiftPrice}, like {@see VoucherFormTrait}: an upsert, not a time series) and visibility flags.
OrderCreditNoteFormTrait
Partial credit note form.
OrderFormTrait
Edit/add form of an order, saved through the API instead of the generic Admin `save()`.
OrderStatusChangeFormTrait
Standalone order status change form, separate from {@see OrderFormTrait}.
OrderStatusFormTrait
Edit/add form of an order status: behavior checkboxes (1:1 with {@see OrderStatus}), a cross-module select of the Invoicer invoice type ({@see \App\UI\Admin\Invoicer\Models\Managers\InvoiceTypeManager}) and multilingual texts including the e-mail template (`emailSubject`/`emailBody`, {@see OrderStatusText}).
PaymentMethodFormTrait
Edit/add form of a payment method (checkout code list): VAT, payment gateway, proforma, availability and multilingual texts.
ProducerFormTrait
Edit/add form of a producer: a language-neutral entity (only `name`, no texts). The skeleton (check, domain translator, save/update/cancel buttons and return) comes from {@see \App\Core\Base\Admin\BasePresenter::createForm()}.
ProductCategoryFormTrait
Edit/add form of an eshop category, modeled on {@see \App\UI\Admin\Blog\Presenters\Traits\Forms\CategoryFormTrait}.
ProductFormTrait
Product pivot form, modeled on {@see \App\UI\Admin\Bazaar\Presenters\Traits\Forms\AdvertFormTrait}.
ProductImportAddFormTrait
Import `add` action: one uploaded file plus the job settings form.
ProductImportExportFormTrait
"Catalog export" form on `show`: a learning aid for the import format (languages + sections + `includeIds`), always over the whole catalog. There is no category choice; the `ProductSet`/`Product` grids do that more precisely with their own filters and the bulk action "export to XML" (see {@see \App\UI\Admin\Eshop\Presenters\Traits\CatalogExportDownloadTrait}). The scope is deliberately limited to `ApiProductXmlExporter::DEFAULT_LIMIT` cards, the generator's safe cap, so the form never promises more than the export outputs.
ProductImportSettingsFieldsTrait
Job settings fields shared by two forms: `add` (new job, {@see ProductImportAddFormTrait}) and `edit` (change + "validate again", {@see ProductImportSettingsFormTrait}).
ProductImportSettingsFormTrait
Job settings in `edit` plus the button **"Save settings and validate again"**.
ProductImportStatisticsFormTrait
Period choice for the summaries on `statistics`: 7 / 30 / 90 days. A plain (non-AJAX) form, like {@see \App\UI\Admin\Eshop\Components\StatisticsChartComponent\StatisticsChartControl::createComponentFilterForm()}: `onSuccess` stores the value in the persistent presenter property ({@see \App\UI\Admin\Eshop\Presenters\ProductImportPresenter::$period}) and `redirect('this')` reloads the page (the summary and the table of recent runs are recomputed for the new period). The "runs over time" chart ({@see \App\UI\Admin\Eshop\Components\StatisticsChartComponent\StatisticsChartControl}) has its own independent filter (date range + granularity); the two choices are deliberately not linked.
ProductSetFeeFormTrait
Edit/add form of a fee: multilingual texts (name/description), the fee type (select, {@see ProductSetFeeType}) and a price multiplier per currency ({@see ProductSetFeePrice}, an append-only time series like {@see \App\UI\Admin\Eshop\Models\Entities\ProductSetPrice}). Prices are not a dynamic `Multiplier`: the axis (active System currencies) is small and fixed, so rows are generated by a fixed loop (like `Admin\Bazaar\CategoryFormTrait::addCategoryPriceMatrix`).
ProductSetFeeTypeFormTrait
Edit/add form of a fee type: a purely multilingual entity (name/description) with no untranslated fields of its own. The skeleton (check, domain translator, save/update/cancel buttons and return) comes from {@see \App\Core\Base\Admin\BasePresenter::createForm()}.
ProductSetLinkFormTrait
Edit/add form of a link: a multilingual pair `name` (optional label, nullable) + `value` (required URL/value) and an untranslated link type (select; a small flat code list {@see ProductSetLinkType} needs only a plain Nette select, not a picker, like `Admin\Invoicer\SettingPresenter::billingLineOptions()` / {@see ProductSetFeeFormTrait::addProductSetFeeTypeField()}).
ProductSetLinkTypeFormTrait
Edit/add form of a link type, modeled on {@see \App\UI\Admin\Blog\Presenters\Traits\Forms\TagFormTrait} (a purely multilingual entity: translated `name` + active-translation flag, no description).
ProductStateFormTrait
Edit/add form of a product state: a multilingual entity (translated `name` + optional `description` + active-translation flag). The skeleton (check, domain translator, save/update/cancel buttons and return) comes from {@see \App\Core\Base\Admin\BasePresenter::createForm()}.
ProductTagFormTrait
Edit/add form of a product tag: multilingual texts (name/description), the untranslated `attributeClass` (badge CSS class, see {@see ProductTag}) and three behavior flags (`saleFlag`/`recommendedFlag`/`newFlag`).
ProductTypeFormTrait
Edit/add form of a product type: a multilingual entity (translated `name` + active-translation flag).
ShipperFormTrait
Edit/add form of a shipper: basic fields (e-mail notice on/off, icon CSS class) + multilingual texts including the expedition notice template (`emailSubject`/`emailBody`; the `{$expeditionInformations}`/ `{$expeditionDatetime}`/`{$expeditionCode}` placeholders are substituted only when `OrderEmailGenerator` sends the e-mail, the form just stores the text).
ShipperRegionFormTrait
Edit/add form of a shipper region: a simple multilingual code list (only `name`), like {@see ProductTypeFormTrait}. A tariff references the region by FK.
VoucherFormTrait
Add/edit form of a voucher: code (generated by a client-side button), validity, limits and per-currency thresholds and fixed discounts ({@see VoucherPrice}).
On this page

Search results