slot gacor
slot gacor
Inline Editing (Parsley Validation) - Bootstrap 4.5 theme - eXtended CRUD & Data Management System
DEMO SITE v1.7.28

Inline Editing (Parsley Validation) Bootstrap 4.5 theme

Inline Editing while doing validation using parsely validator

HIDE CODE
<?php
   
	$xcrud = Xcrud::get_instance();
    $xcrud->table('employees');
	$xcrud->table_name('Employees - Single click cell to edit!');
    $xcrud->set_attr('lastName',array('id'=>'user','data-role'=>'admin'));	
	//Activate parslet validation
	$xcrud->parsley_active(true);
	//Make extension mandatory
	$xcrud->set_attr('extension',array('required'=>'required'));
	//Ensure First Name is alpha numeric	
	$xcrud->set_attr('firstName',array('data-parsley-trigger'=>'change','required'=>'required','id'=>'user','data-parsley-type'=>'alphanum'));
	$xcrud->set_attr('lastName',array('data-parsley-trigger'=>'change','required'=>'required','id'=>'user','data-parsley-type'=>'alphanum'));
	//ensure valid email and display "Email not valid"
	$xcrud->set_attr('email',array('data-parsley-trigger'=>'change','id'=>'user','data-parsley-type'=>'email',
	'data-parsley-error-message'=>"Email not valid"));	
	//ensure office Code is between 3 and 5 number characters
	$xcrud->set_attr('reportsTo',array('id'=>'user','data-parsley-type'=>'digits','data-parsley-length'=>"[3,5]"));
	$xcrud->relation('officeCode','offices','officeCode','city');
	$xcrud->fields_inline('lastName,firstName,extension,email,officeCode,reportsTo,jobTitle');//set the fields to allow inline editing	    
    $xcrud->set_logging(true);
    echo $xcrud->render();
	
?>

Employees - Single click cell to edit!

Add
#LastnameFirstnameExtensionEmailOfficecodeReportstoJobtitle
Actions
1FirrelliJeffx9273jeff.firrelli@myoffice.comParis1002VP Marketing View Edit Remove
2PattersonWilliamx48711wpatterson@classicmodelcars.comBoston1056Sales Manager (APAC) View Edit Remove
3BondurGerardx5408gbondur@classicmodelcars.comParis1056Sale Manager (EMEA) View Edit Remove
4BowAnthonyx5428abow@classicmodelcars.comSan Francisco1056Sales Manager (NA) View Edit Remove
5JenningsLesliex3291ljennings@classicmodelcars.comSan Francisco1143Sales Rep View Edit Remove
6ThompsonLesliex4065lthompson@classicmodelcars.comSan Francisco1143Sales Rep View Edit Remove
7FirrelliJuliex2173jfirrelli@classicmodelcars.comBoston1143Sales Rep View Edit Remove
8PattersonStevex4334spatterson@classicmodelcars.comBoston1143Sales Rep View Edit Remove
9TsengchuFoon Yueo224ftseng@classicmodelcars.comNYC1143Sales Rep View Edit Remove
10VanaufGeorgex4102gvanauf@classicmodelcars.comNYC1143Sales Rep View Edit Remove
Search
 
slot thailand
slot thailand slot gacor
slot gacor