Skip to content

Instantly share code, notes, and snippets.

@MonaAghili
Created May 23, 2025 19:51
Show Gist options
  • Select an option

  • Save MonaAghili/fe1a8c53b85d6ceaa188a61b7328a544 to your computer and use it in GitHub Desktop.

Select an option

Save MonaAghili/fe1a8c53b85d6ceaa188a61b7328a544 to your computer and use it in GitHub Desktop.
const formConfig = {
options: {
classes: '',
footer: {
buttons: [
{
type: 'Submit',
name: 'ذخیره',
classes: 'form-submit-button',
},
{
type: 'Button',
name: 'انصراف',
classes: 'form-cancel-button',
path: readonlyRoutes.admin.DRIVERS,
},
],
},
},
ordering: [
{
header: {},
classes: 'three-col-grid',
fields: [
'name',
'father_name',
'date',
'code_melli',
'mobile',
'email',
],
},
],
fields: {
name: {
name: 'نام و نام خانوادگی',
options: {
type: 'InputBox',
inputType: 'text',
fieldName: 'name',
},
},
father_name: {
name: 'نام پدر',
options: {
type: 'InputBox',
inputType: 'text',
fieldName: 'father_name',
},
},
birthday: {
name: '',
options: {
fieldName: 'birthday',
type: 'DatePicker',
fields: {
birthday: {
name: 'تاریخ تولد',
},
},
},
},
code_melli: {
name: 'شماره ملی',
options: {
type: 'InputBox',
inputType: 'number',
fieldName: 'code_melli',
},
},
mobile: {
name: 'شماره موبایل',
options: {
type: 'InputBox',
inputType: 'tell',
fieldName: 'mobile',
},
},
email: {
name: 'آدرس ایمیل',
options: {
type: 'InputBox',
inputType: 'email',
fieldName: 'email',
},
},
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment