PHP Classes

File: site/demos/form-signature.php

Recommend this page to a friend!
  Packages of Boss Ibrahim Mussa   Caelrik   site/demos/form-signature.php   Download  
File: site/demos/form-signature.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Caelrik
Build Web user interface from PHP components
Author: By
Last change:
Date: 8 days ago
Size: 331 bytes
 

 

Contents

Class file image Download
<?php

use Caelrik\Ui\Components\Form;
use Caelrik\Ui\Components\Form\Field;

return Form::make('contract')
    ->action('/contracts/42/sign')
    ->add(
        Field::signature('signature', 'Your signature')
            ->required()
            ->help('It is stored with the contract.'),
    )
    ->submit('Sign the contract');