Download the PHP package atk14/confirmation-field without Composer
On this page you can find all versions of the php package atk14/confirmation-field. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download atk14/confirmation-field
More information about atk14/confirmation-field
Files in atk14/confirmation-field
Download atk14/confirmation-field
More information about atk14/confirmation-field
Files in atk14/confirmation-field
Vendor atk14
Package confirmation-field
Short Description ConfirmationField is a form field for Atk14 applications. It's like the BooleanField (checkbox) but the ConfirmationField must be ticked.
License MIT
Homepage https://github.com/atk14/ConfirmationField
Package confirmation-field
Short Description ConfirmationField is a form field for Atk14 applications. It's like the BooleanField (checkbox) but the ConfirmationField must be ticked.
License MIT
Homepage https://github.com/atk14/ConfirmationField
Please rate this library. Is it a good library?
Informations about the package confirmation-field
ConfirmationField
ConfirmationField is a form field for ATK14 applications. It's like the BooleanField (checkbox) but the ConfirmationField must be ticked.
It is the right field for an agreement with terms and conditions in your applications.
Installation
Just use the Composer:
cd path/to/your/atk14/project/
composer require atk14/confirmation-field
Optionally you can create a symlink from vendor to your app:
ln -s ../../vendor/atk14/confirmation-field/src/confirmation_field.php app/fields/confirmation_field.php
Usage
In a form:
<?php
// file: app/forms/orders/create_new_form.php
class CreateNewForm extends ApplicationForm {
function set_up(){
// fileds...
$this->add_field("confirmation", new ConfirmationField([
"label" => _("I agree with terms and conditions"),
]))->update_message("required","You have to agree with terms and conditions");
}
function clean(){
list($err,$data) = parent::clean();
// usually it's not required to have the confirmation in the cleaned data
unset($data["confirmation"]);
return [$err,$data];
}
}
License
ConfirmationField is free software distributed under the terms of the MIT license
All versions of confirmation-field with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.0
The package atk14/confirmation-field contains the following files
Loading the files please wait ....