Start Point al 2026
This commit is contained in:
commit
8a76e1db3b
371 files changed
+160283
No files matched your search
@@ -0,0 +1,58 @@
|
||||
<?php namespace App\Controllers;
|
||||
|
||||
use App\Libraries\Crud;
|
||||
|
||||
|
||||
class TipiWork extends CRUDController {
|
||||
|
||||
// Tab: TipiWork = ['twIDTipoWork', 'twDescrizione', 'twOrdinamento'];
|
||||
|
||||
protected $crud;
|
||||
|
||||
function __construct() {
|
||||
|
||||
$params = [
|
||||
'table' => 'TipiWork',
|
||||
'dev' => false,
|
||||
'fields' => $this->field_options(),
|
||||
'form_title_add' => 'Nuova tipologia lavoro',
|
||||
'form_title_update' => 'Edit tipologia',
|
||||
'form_submit' => 'Add',
|
||||
'table_title' => 'Pagina per la tabella TipiWork',
|
||||
'form_submit_update' => 'Update',
|
||||
'base' => '',
|
||||
'UpdatedAt' => '',
|
||||
'DeletedAt' => '',
|
||||
];
|
||||
|
||||
$this->crud = new Crud($params, service('request'));
|
||||
}// __construct
|
||||
|
||||
|
||||
protected function field_options() {
|
||||
|
||||
$fields = [];
|
||||
$fields['twIDTipoWork'] = ['label' => 'ID Tipologia', 'helper' => 'Identificativo univoco della tipologia di lavoro (5 caratteri)', 'required' => true, 'unique' => [true, 'twIDTipoWork']];
|
||||
$fields['twDescrizione'] = ['label' => 'Descrizione', 'helper' => 'Descrizione della tipologia di lavoro', 'required' => true];
|
||||
$fields['twOrdinamento'] = ['label' => 'Ordinamento', 'helper' => 'Ordinamento per la visualizzazione (numero intero)', 'required' => true];
|
||||
|
||||
return $fields;
|
||||
}// field_options
|
||||
|
||||
|
||||
public function index() {
|
||||
return $this->CRUD_view(['twIDTipoWork', 'twDescrizione', 'twOrdinamento']);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
// Auto CRUD terminato
|
||||
//--------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user